summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqfont_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqfont_x11.cpp')
-rw-r--r--src/kernel/tqfont_x11.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kernel/tqfont_x11.cpp b/src/kernel/tqfont_x11.cpp
index 92cd8b113..4a91f65dc 100644
--- a/src/kernel/tqfont_x11.cpp
+++ b/src/kernel/tqfont_x11.cpp
@@ -69,7 +69,7 @@
#define TQFONTLOADER_DEBUG
#define TQFONTLOADER_DEBUG_VERBOSE
-TQ_EXPORT bool tqt_has_xft = FALSE;
+TQ_EXPORT bool tqt_has_xft = false;
#ifndef TQT_NO_XFTFREETYPE
TQt::HANDLE qt_xft_handle(const TQFont &font)
@@ -197,7 +197,7 @@ void TQFont::initialize()
#ifndef TQT_NO_CODECS
#ifndef TQT_NO_BIG_CODECS
- static bool codecs_once = FALSE;
+ static bool codecs_once = false;
if ( ! codecs_once ) {
(void) new TQFontJis0201Codec;
(void) new TQFontJis0208Codec;
@@ -208,7 +208,7 @@ void TQFont::initialize()
(void) new TQFontBig5Codec;
(void) new TQFontBig5hkscsCodec;
(void) new TQFontLaoCodec;
- codecs_once = TRUE;
+ codecs_once = true;
}
#endif // TQT_NO_BIG_CODECS
#endif // TQT_NO_CODECS
@@ -419,8 +419,8 @@ void TQFontPrivate::load( TQFont::Script script )
}
/*!
- Returns TRUE if the font attributes have been changed and the font
- has to be (re)loaded; otherwise returns FALSE.
+ Returns true if the font attributes have been changed and the font
+ has to be (re)loaded; otherwise returns false.
*/
bool TQFont::dirty() const
{
@@ -507,7 +507,7 @@ void TQFont::setRawName( const TQString &name )
#endif // QT_CHECK_STATE
setFamily( name );
- setRawMode( TRUE );
+ setRawMode( true );
} else {
d->mask = TQFontPrivate::Complete;
}
@@ -581,7 +581,7 @@ static const char * const tryFonts[] = {
0
};
-// Returns TRUE if the font exists, FALSE otherwise
+// Returns true if the font exists, false otherwise
static bool fontExists( const TQString &fontName )
{
int count;
@@ -666,7 +666,7 @@ int TQFontMetrics::width( TQChar ch ) const
glyph_t glyphs[8];
advance_t advances[8];
int nglyphs = 7;
- engine->stringToCMap( &ch, 1, glyphs, advances, &nglyphs, FALSE );
+ engine->stringToCMap( &ch, 1, glyphs, advances, &nglyphs, false );
// ### can nglyphs != 1 happen at all? Not currently I think
if ( uc < TQFontEngineData::widthCacheSize && advances[0] > 0 && advances[0] < 0x100 )
@@ -720,7 +720,7 @@ int TQFontMetrics::charWidth( const TQString &str, int pos ) const
glyph_t glyphs[8];
advance_t advances[8];
int nglyphs = 7;
- engine->stringToCMap( &ch, isSurrogate ? 2 : 1, glyphs, advances, &nglyphs, FALSE );
+ engine->stringToCMap( &ch, isSurrogate ? 2 : 1, glyphs, advances, &nglyphs, false );
width = advances[0];
}
if ( uc < TQFontEngineData::widthCacheSize && width > 0 && width < 0x100 )