![]() |
Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qfontconfigdatabase_p.h"
#include "qfontenginemultifontconfig_p.h"
#include <QtGui/private/qfontengine_ft_p.h>
#include <QtCore/QList>
#include <QtCore/QElapsedTimer>
#include <QtCore/QFile>
#include <qpa/qplatformnativeinterface.h>
#include <qpa/qplatformscreen.h>
#include <qpa/qplatformintegration.h>
#include <qpa/qplatformservices.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/qguiapplication.h>
#include <QtCore/private/qduplicatetracker_p.h>
#include <fontconfig/fontconfig.h>
Go to the source code of this file.
Functions | |
static QT_BEGIN_NAMESPACE int | mapToQtWeightForRange (int fcweight, int fcLower, int fcUpper, int qtLower, int qtUpper) |
static int | weightFromFcWeight (int fcweight) |
static int | stretchFromFcWidth (int fcwidth) |
static const char * | getFcFamilyForStyleHint (const QFont::StyleHint style) |
static bool | requiresOpenType (int writingSystem) |
static void | populateFromPattern (FcPattern *pattern, QFontDatabasePrivate::ApplicationFont *applicationFont=nullptr, FT_Face face=nullptr, QFontconfigDatabase *db=nullptr) |
static bool | isDprScaling () |
static FcPattern * | queryFont (const FcChar8 *file, const QByteArray &data, int id, FcBlanks *blanks, int *count, FT_Face *face) |
Variables | |
static const char | specialLanguages [][6] |
static const char | languageForWritingSystem [][6] |
|
static |
Definition at line 336 of file qfontconfigdatabase.cpp.
References QFont::Cursive, QFont::Fantasy, QFont::Monospace, QFont::SansSerif, QFont::Serif, and QFont::TypeWriter.
Referenced by QFontconfigDatabase::fallbacksForFamily().
|
static |
Definition at line 547 of file qfontconfigdatabase.cpp.
References qApp, and qFuzzyCompare().
|
inlinestatic |
Definition at line 31 of file qfontconfigdatabase.cpp.
Referenced by weightFromFcWeight().
|
static |
Definition at line 368 of file qfontconfigdatabase.cpp.
References db, FontFile::fileName, QString::fromLocal8Bit(), QString::fromUtf8(), j, languageForWritingSystem, QFontDatabase::Other, properties, QByteArray(), QPlatformFontDatabase::registerAliasToFontFamily(), QPlatformFontDatabase::registerFont(), requiresOpenType(), QSupportedWritingSystems::setSupported(), stretchFromFcWidth(), QFont::StyleItalic, QFont::StyleNormal, QFont::StyleOblique, weightFromFcWeight(), and QFontDatabase::WritingSystemsCount.
Referenced by QFontconfigDatabase::addApplicationFont(), and QFontconfigDatabase::populateFontDatabase().
|
static |
Definition at line 836 of file qfontconfigdatabase.cpp.
References file, Q_UNUSED, and qt_getFreetype().
Referenced by QFontconfigDatabase::addApplicationFont().
|
inlinestatic |
Definition at line 362 of file qfontconfigdatabase.cpp.
References QFontDatabase::Khmer, QFontDatabase::Nko, QFontDatabase::Sinhala, and QFontDatabase::Syriac.
Referenced by populateFromPattern().
|
inlinestatic |
Definition at line 69 of file qfontconfigdatabase.cpp.
Referenced by populateFromPattern().
|
inlinestatic |
Definition at line 36 of file qfontconfigdatabase.cpp.
References QFont::Black, QFont::Bold, QFont::DemiBold, QFont::ExtraBold, QFont::ExtraLight, QFont::Light, mapToQtWeightForRange(), QFont::Medium, QFont::Normal, QFONT_WEIGHT_MAX, and QFont::Thin.
Referenced by populateFromPattern().
|
static |
Definition at line 255 of file qfontconfigdatabase.cpp.
Referenced by populateFromPattern().
|
static |
Definition at line 85 of file qfontconfigdatabase.cpp.
Referenced by QFontconfigDatabase::fallbacksForFamily().