Qt 4.8
|
#include <qfontconfigdatabase.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 QBasicUnixFontDatabase | |
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... | |
void | releaseHandle (void *handle) |
Releases the font handle and deletes any associated data loaded from a file. More... | |
Public Functions inherited from QPlatformFontDatabase | |
virtual QString | fontDir () const |
Returns the path to the font directory. More... | |
virtual QFontEngine * | fontEngine (const QByteArray &fontData, qreal pixelSize, QFont::HintingPreference hintingPreference) |
Additional Inherited Members | |
Static Public Functions inherited from QBasicUnixFontDatabase | |
static QStringList | addTTFile (const QByteArray &fontData, const QByteArray &file) |
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 48 of file qfontconfigdatabase.h.
|
virtual |
Returns a list of alternative fonts for the specified family and style and script using the styleHint given.
Reimplemented from QBasicUnixFontDatabase.
Definition at line 557 of file qfontconfigdatabase.cpp.
|
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 QBasicUnixFontDatabase.
Definition at line 479 of file qfontconfigdatabase.cpp.
|
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 QBasicUnixFontDatabase.
Definition at line 296 of file qfontconfigdatabase.cpp.