![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qfontdatabase.h"#include "qfontdatabase_p.h"#include "qloggingcategory.h"#include "qalgorithms.h"#include "qguiapplication.h"#include "qvarlengtharray.h"#include "qthread.h"#include "qmutex.h"#include "qfile.h"#include "qfileinfo.h"#include "qfontengine_p.h"#include <qpa/qplatformintegration.h>#include <QtGui/private/qguiapplication_p.h>#include <qpa/qplatformfontdatabase.h>#include <qpa/qplatformtheme.h>#include <QtCore/qcache.h>#include <QtCore/qmath.h>#include <stdlib.h>#include <algorithm>#include <qtgui_tracepoints_p.h>#include "moc_qfontdatabase.cpp"Go to the source code of this file.
Classes | |
| struct | QtFontDesc |
Macros | |
| #define | SMOOTH_SCALABLE 0xffff |
Functions | |
| Q_TRACE_POINT (qtgui, QFontDatabase_loadEngine, const QString &families, int pointSize) | |
| Q_TRACE_POINT (qtgui, QFontDatabasePrivate_addAppFont, const QString &fileName) | |
| Q_TRACE_POINT (qtgui, QFontDatabase_addApplicationFont, const QString &fileName) | |
| Q_TRACE_POINT (qtgui, QFontDatabase_load, const QString &family, int pointSize) | |
| static int | getFontWeight (const QString &weightString) |
| static bool | equalsCaseInsensitive (const QString &aa, const QString &bb) |
| Q_GUI_EXPORT int | qt_script_for_writing_system (QFontDatabase::WritingSystem writingSystem) |
| static bool | familySupportsWritingSystem (QtFontFamily *family, size_t writingSystem) |
| Q_GUI_EXPORT QFontDatabase::WritingSystem | qt_writing_system_for_script (int script) |
| static void | parseFontName (const QString &namename, QString &foundry, QString &family) |
| static void | initFontDef (const QtFontDesc &desc, const QFontDef &request, QFontDef *fontDef, bool multi) |
| static QStringList | familyList (const QFontDef &req) |
| void | qt_cleanupFontDatabase () |
| QRecursiveMutex * | qt_fontdatabase_mutex () |
| void | qt_registerFont (const QString &familyName, const QString &stylename, const QString &foundryname, int weightweight, QFont::Style style, int stretch, bool antialiased, bool scalable, int pixelSize, bool fixedPitch, bool colorFont, const QSupportedWritingSystems &writingSystems, void *handlehandle) |
| void | qt_registerFontFamily (const QString &familyName) |
| void | qt_registerAliasToFontFamily (const QString &familyName, const QString &alias) |
| QString | qt_resolveFontFamilyAlias (const QString &alias) |
| bool | qt_isFontFamilyPopulated (const QString &familyName) |
| static QStringList | fallbacksForFamily (const QString &family, QFont::Style style, QFont::StyleHint styleHint, QFontDatabasePrivate::ExtendedScript script) |
| QStringList | qt_fallbacksForFamily (const QString &family, QFont::Style style, QFont::StyleHint styleHint, QFontDatabasePrivate::ExtendedScript script) |
| static QtFontStyle * | bestStyle (QtFontFoundry *foundry, const QtFontStyle::Key &styleKey, const QString &styleName=QString()) |
| static bool | matchFamilyName (const QString &familyName, QtFontFamily *ff) |
| static QString | styleStringHelper (int weightweight, QFont::Style style) |
| Q_GUI_EXPORT QByteArray | qt_fontdata_from_index (int indexindex) |
| Q_GUI_EXPORT QStringList | qt_sort_families_by_writing_system (QFontDatabasePrivate::ExtendedScript script, const QStringList &families) |
Variables | |
| static const int | scriptForWritingSystem [] |
| #define SMOOTH_SCALABLE 0xffff |
Definition at line 40 of file qfontdatabase.cpp.
|
static |
Definition at line 881 of file qfontdatabase.cpp.
Definition at line 261 of file qfontdatabase.cpp.
|
static |
Definition at line 708 of file qfontdatabase.cpp.
|
static |
Definition at line 513 of file qfontdatabase.cpp.
|
static |
Tests if the given family family supports writing system writingSystem, including the special case for Han script mapping to several subsequent writing systems
Definition at line 409 of file qfontdatabase.cpp.
|
static |
Definition at line 56 of file qfontdatabase.cpp.
|
static |
Definition at line 485 of file qfontdatabase.cpp.
|
static |
Definition at line 1057 of file qfontdatabase.cpp.
This makes sense of the font family name:
if the family name contains a '[' and a ']', then we take the text between the square brackets as the foundry, and the text before the square brackets as the family (ie. "Arial [Monotype]")
Definition at line 441 of file qfontdatabase.cpp.
| Q_TRACE_POINT | ( | qtgui | , |
| QFontDatabase_addApplicationFont | , | ||
| const QString & | fileName ) |
| Q_TRACE_POINT | ( | qtgui | , |
| QFontDatabase_load | , | ||
| const QString & | family, | ||
| int | pointSize ) |
| Q_TRACE_POINT | ( | qtgui | , |
| QFontDatabase_loadEngine | , | ||
| const QString & | families, | ||
| int | pointSize ) |
| Q_TRACE_POINT | ( | qtgui | , |
| QFontDatabasePrivate_addAppFont | , | ||
| const QString & | fileName ) |
| void qt_cleanupFontDatabase | ( | ) |
Definition at line 528 of file qfontdatabase.cpp.
| QStringList qt_fallbacksForFamily | ( | const QString & | family, |
| QFont::Style | style, | ||
| QFont::StyleHint | styleHint, | ||
| QFontDatabasePrivate::ExtendedScript | script ) |
Definition at line 745 of file qfontdatabase.cpp.
| Q_GUI_EXPORT QByteArray qt_fontdata_from_index | ( | int | index | ) |
Definition at line 2213 of file qfontdatabase.cpp.
| QRecursiveMutex * qt_fontdatabase_mutex | ( | ) |
Definition at line 536 of file qfontdatabase.cpp.
| bool qt_isFontFamilyPopulated | ( | const QString & | familyName | ) |
Definition at line 622 of file qfontdatabase.cpp.
Definition at line 593 of file qfontdatabase.cpp.
| void qt_registerFont | ( | const QString & | familyName, |
| const QString & | stylename, | ||
| const QString & | foundryname, | ||
| int | weight, | ||
| QFont::Style | style, | ||
| int | stretch, | ||
| bool | antialiased, | ||
| bool | scalable, | ||
| int | pixelSize, | ||
| bool | fixedPitch, | ||
| bool | colorFont, | ||
| const QSupportedWritingSystems & | writingSystems, | ||
| void * | handle ) |
Definition at line 547 of file qfontdatabase.cpp.
Definition at line 585 of file qfontdatabase.cpp.
Definition at line 611 of file qfontdatabase.cpp.
| int qt_script_for_writing_system | ( | QFontDatabase::WritingSystem | writingSystem | ) |
Definition at line 397 of file qfontdatabase.cpp.
References scriptForWritingSystem.
| Q_GUI_EXPORT QStringList qt_sort_families_by_writing_system | ( | QFontDatabasePrivate::ExtendedScript | script, |
| const QStringList & | families ) |
Definition at line 2967 of file qfontdatabase.cpp.
| QT_BEGIN_NAMESPACE Q_GUI_EXPORT QFontDatabase::WritingSystem qt_writing_system_for_script | ( | int | script | ) |
Definition at line 423 of file qfontdatabase.cpp.
|
static |
Definition at line 1159 of file qfontdatabase.cpp.
|
static |
Definition at line 358 of file qfontdatabase.cpp.
Referenced by qt_script_for_writing_system().