Qt 4.8
|
#include <qcoretextfontdatabase.h>
Public Functions | |
QStringList | fallbacksForFamily (const QString family, const QFont::Style &style, const QFont::StyleHint &styleHint, const QUnicodeTables::Script &script) const |
Returns a list of alternative fonts for the specified family and style and script using the styleHint given. More... | |
QFontEngine * | fontEngine (const QFontDef &fontDef, QUnicodeTables::Script script, void *handle) |
Returns the font engine that can be used to render the font described by the font definition, fontDef, in the specified script. More... | |
void | populateFontDatabase () |
This function is called once at startup by Qts internal fontdatabase. More... | |
Public Functions inherited from QPlatformFontDatabase | |
virtual QStringList | addApplicationFont (const QByteArray &fontData, const QString &fileName) |
Adds an application font described by the font contained supplied fontData or using the font contained in the file referenced by fileName. More... | |
virtual QString | fontDir () const |
Returns the path to the font directory. More... | |
virtual QFontEngine * | fontEngine (const QByteArray &fontData, qreal pixelSize, QFont::HintingPreference hintingPreference) |
virtual void | releaseHandle (void *handle) |
Releases the font handle and deletes any associated data loaded from a file. More... | |
Properties | |
QHash< QFont::StyleHint, QStringList > | fallbackLists |
Additional Inherited Members | |
Static Public Functions inherited from QPlatformFontDatabase | |
static void | registerFont (const QString &familyname, const QString &foundryname, QFont::Weight weight, QFont::Style style, QFont::Stretch stretch, bool antialiased, bool scalable, int pixelSize, const QSupportedWritingSystems &writingSystems, void *handle) |
Registers a font with the given set of attributes describing the font's foundry, family name, style and stretch information, pixel size, and supported writing systems. More... | |
static void | registerQPF2Font (const QByteArray &dataArray, void *handle) |
Registers the pre-rendered QPF2 font contained in the given dataArray. More... | |
Definition at line 49 of file qcoretextfontdatabase.h.
|
virtual |
Returns a list of alternative fonts for the specified family and style and script using the styleHint given.
Reimplemented from QPlatformFontDatabase.
Definition at line 52 of file qcoretextfontdatabase.mm.
|
virtual |
Returns the font engine that can be used to render the font described by the font definition, fontDef, in the specified script.
Reimplemented from QPlatformFontDatabase.
Definition at line 208 of file qcoretextfontdatabase.mm.
|
virtual |
This function is called once at startup by Qts internal fontdatabase.
Reimplement this function in a subclass for a convenient place to initialise the internal fontdatabase.
The default implementation looks in the fontDir() location and registers all qpf2 fonts.
Reimplemented from QPlatformFontDatabase.
Definition at line 112 of file qcoretextfontdatabase.mm.
|
private |
Definition at line 61 of file qcoretextfontdatabase.h.
Referenced by fallbacksForFamily(), and populateFontDatabase().