
Definition at line 319 of file qfontdatabase.cpp.
Public Types | |
| enum | WritingSystemStatus |
Public Member Functions | |
| QtFontFamily (const QString &n) | |
| ~QtFontFamily () | |
| QtFontFoundry * | foundry (const QString &f, bool=false) |
Public Attributes | |
| bool | fixedPitch: 1 |
| bool | ftWritingSystemCheck: 1 |
| bool | xlfdLoaded: 1 |
| bool | synthetic: 1 |
| bool | symbol_checked |
| QString | name |
| QString | rawName |
| QByteArray | fontFilename |
| int | fontFileIndex |
| int | count |
| QtFontFoundry ** | foundries |
| unsigned char | writingSystems [QFontDatabase::WritingSystemsCount] |
Definition at line 321 of file qfontdatabase.cpp.
00321 { 00322 Unknown = 0, 00323 Supported = 1, 00324 UnsupportedFT = 2, 00325 UnsupportedXLFD = 4, 00326 Unsupported = UnsupportedFT | UnsupportedXLFD 00327 };
| QtFontFamily::QtFontFamily | ( | const QString & | n | ) | [inline] |
Definition at line 329 of file qfontdatabase.cpp.
References writingSystems.
00330 : 00331 #ifdef Q_WS_X11 00332 fixedPitch(true), ftWritingSystemCheck(false), 00333 xlfdLoaded(false), synthetic(false), symbol_checked(false), 00334 #else 00335 fixedPitch(false), 00336 #endif 00337 #ifdef Q_WS_WIN 00338 writingSystemCheck(false), 00339 loaded(false), 00340 #endif 00341 #if !defined(QWS) && defined(Q_OS_MAC) 00342 fixedPitchComputed(false), 00343 #endif 00344 name(n), count(0), foundries(0) { 00345 memset(writingSystems, 0, sizeof(writingSystems)); 00346 } ~QtFontFamily() {
| QtFontFamily::~QtFontFamily | ( | ) | [inline] |
| QtFontFoundry * QtFontFamily::foundry | ( | const QString & | f, | |
| bool | = false | |||
| ) |
Definition at line 399 of file qfontdatabase.cpp.
References count, foundries, i, QString::isNull(), name, and ucstricmp().
Referenced by loadFontConfig(), and loadXlfds().
00400 { 00401 if (f.isNull() && count == 1) 00402 return foundries[0]; 00403 00404 for (int i = 0; i < count; i++) { 00405 if (ucstricmp(foundries[i]->name, f) == 0) 00406 return foundries[i]; 00407 } 00408 if (!create) 00409 return 0; 00410 00411 if (!(count % 8)) 00412 foundries = (QtFontFoundry **) 00413 realloc(foundries, 00414 (((count+8) >> 3) << 3) * sizeof(QtFontFoundry *)); 00415 00416 foundries[count] = new QtFontFoundry(f); 00417 return foundries[count++]; 00418 }
Here is the call graph for this function:

Definition at line 353 of file qfontdatabase.cpp.
Referenced by getFcPattern(), initFontDef(), QFontDatabase::isFixedPitch(), loadFontConfig(), and loadXlfds().
Definition at line 370 of file qfontdatabase.cpp.
Referenced by bestFoundry(), QFontDatabase::families(), foundry(), and initFontDef().
Definition at line 371 of file qfontdatabase.cpp.
Referenced by checkSymbolFont(), and loadFontConfig().
Definition at line 373 of file qfontdatabase.cpp.
Referenced by checkSymbolFont(), and loadFontConfig().
Definition at line 374 of file qfontdatabase.cpp.
Referenced by checkSymbolFont(), loadFontConfig(), and loadXlfds().
Definition at line 379 of file qfontdatabase.cpp.
Referenced by bestFoundry(), QFontDatabase::bold(), QFontDatabase::families(), QFontDatabase::font(), foundry(), initializeDb(), QFontDatabase::isBitmapScalable(), QFontDatabase::isSmoothlyScalable(), QFontDatabase::italic(), QFontDatabase::pointSizes(), QFontDatabase::smoothSizes(), QFontDatabase::styles(), QFontDatabase::weight(), QFontDatabase::writingSystems(), and ~QtFontFamily().
Definition at line 380 of file qfontdatabase.cpp.
Referenced by bestFoundry(), QFontDatabase::bold(), QFontDatabase::families(), QFontDatabase::font(), foundry(), initializeDb(), QFontDatabase::isBitmapScalable(), QFontDatabase::isSmoothlyScalable(), QFontDatabase::italic(), QFontDatabase::pointSizes(), QFontDatabase::smoothSizes(), QFontDatabase::styles(), QFontDatabase::weight(), and ~QtFontFamily().
| unsigned char QtFontFamily::writingSystems[QFontDatabase::WritingSystemsCount] |
Definition at line 382 of file qfontdatabase.cpp.
Referenced by checkSymbolFont(), QFontDatabase::families(), loadFontConfig(), loadXlfds(), QtFontFamily(), and QFontDatabase::writingSystems().
1.5.1