Qt 4.8
|
#include <qbasicunixfontdatabase.h>
Public Functions | |
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... | |
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... | |
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) |
Static Public Functions | |
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 55 of file qbasicunixfontdatabase.h.
|
virtual |
Adds an application font described by the font contained supplied fontData or using the font contained in the file referenced by fileName.
Returns a list of family names, or an empty list if the font could not be added.
Reimplemented from QPlatformFontDatabase.
Definition at line 249 of file qbasicunixfontdatabase.cpp.
|
static |
Definition at line 260 of file qbasicunixfontdatabase.cpp.
Referenced by addApplicationFont(), and populateFontDatabase().
|
virtual |
Returns a list of alternative fonts for the specified family and style and script using the styleHint given.
Reimplemented from QPlatformFontDatabase.
Reimplemented in QFontconfigDatabase.
Definition at line 240 of file qbasicunixfontdatabase.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 QPlatformFontDatabase.
Reimplemented in QFontconfigDatabase.
Definition at line 210 of file qbasicunixfontdatabase.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 QPlatformFontDatabase.
Reimplemented in QFontconfigDatabase.
Definition at line 188 of file qbasicunixfontdatabase.cpp.
|
virtual |
Releases the font handle and deletes any associated data loaded from a file.
Reimplemented from QPlatformFontDatabase.
Definition at line 254 of file qbasicunixfontdatabase.cpp.