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 "qwindowsfontdatabase_p.h"
#include "qwindowsfontdatabase_ft_p.h"
#include "qwindowsfontengine_p.h"
#include <QtCore/qt_windows.h>
#include <QtGui/QFont>
#include <QtGui/QGuiApplication>
#include <QtGui/private/qtgui-config_p.h>
#include <QtCore/qmath.h>
#include <QtCore/QDebug>
#include <QtCore/QFile>
#include <QtCore/QtEndian>
#include <QtCore/QStandardPaths>
#include <QtCore/private/qduplicatetracker_p.h>
#include <QtCore/private/qwinregistry_p.h>
#include <wchar.h>
#include <mutex>
Go to the source code of this file.
Functions | |
QDebug | operator<< (QDebug d, const QFontDef &def) |
QDebug | operator<< (QDebug d, const LOGFONT &lf) |
static QFontDatabase::WritingSystem | writingSystemFromCharSet (uchar charSet) |
bool | qt_localizedName (const QString &name) |
QString | qt_getEnglishName (const QString &familyName, bool includeStyle) |
QFontNames | qt_getCanonicalFontNames (const LOGFONT &lf) |
static bool | addFontToDatabase (QString familyName, QString styleName, const LOGFONT &logFont, const TEXTMETRIC *textmetric, const FONTSIGNATURE *signature, int type, StoreFontPayload *sfp) |
static int QT_WIN_CALLBACK | storeFont (const LOGFONT *logFont, const TEXTMETRIC *textmetric, DWORD type, LPARAM lparam) |
static int QT_WIN_CALLBACK | populateFontFamilies (const LOGFONT *logFont, const TEXTMETRIC *textmetric, DWORD, LPARAM) |
static QList< quint32 > | getTrueTypeFontOffsets (const uchar *fontData, const uchar *fileEndSentinel) |
static void | getFontTable (const uchar *fileBegin, const uchar *fileEndSentinel, const uchar *data, quint32 tag, const uchar **table, quint32 *length) |
static void | getFamiliesAndSignatures (const QByteArray &fontData, QList< QFontNames > *families, QList< FONTSIGNATURE > *signatures, QList< QFontValues > *values) |
|
static |
Definition at line 450 of file qwindowsfontdatabase.cpp.
References QFontDatabase::Any, QString::at(), QFont::Bold, QFont::DemiBold, QString::isEmpty(), QPlatformFontDatabase::isFamilyPopulated(), QWindowsFontDatabase::populateFamily(), Q_ASSERT, qCDebug, qt_getCanonicalFontNames(), qt_localizedName(), QPlatformFontDatabase::registerAliasToFontFamily(), QPlatformFontDatabase::registerFont(), QSupportedWritingSystems::setSupported(), SMOOTH_SCALABLE, QString::startsWith(), str, QFont::StyleItalic, QFont::StyleNormal, QSupportedWritingSystems::supported(), QFontDatabase::Thai, QFont::Unstretched, writingSystemFromCharSet(), and QPlatformFontDatabase::writingSystemsFromTrueTypeBits().
Referenced by QWindowsFontDatabase::addApplicationFont(), and storeFont().
|
static |
Definition at line 926 of file qwindowsfontdatabase.cpp.
References font, getFontTable(), getTrueTypeFontOffsets(), i, qFromBigEndian(), qt_getCanonicalFontNames(), and QFontValues::weight.
Referenced by QWindowsFontDatabase::addApplicationFont().
|
static |
Definition at line 893 of file qwindowsfontdatabase.cpp.
References i, qCWarning, and tag.
Referenced by getFamiliesAndSignatures().
|
static |
Definition at line 856 of file qwindowsfontdatabase.cpp.
References i, qCWarning, and qFromBigEndian().
Referenced by getFamiliesAndSignatures().
Definition at line 147 of file qwindowsfontdatabase.cpp.
References d, and QWindowsFontDatabase::debugFormat().
Definition at line 126 of file qwindowsfontdatabase.cpp.
References d, QFontDef::families, QFontDef::hintingPreference, QString::isEmpty(), QFontDef::pixelSize, QFontDef::pointSize, QFontDef::stretch, QFontDef::styleHint, QFontDef::styleName, and QFontDef::weight.
|
static |
Definition at line 638 of file qwindowsfontdatabase.cpp.
References QString::fromWCharArray(), qt_getEnglishName(), qt_localizedName(), QPlatformFontDatabase::registerAliasToFontFamily(), and QPlatformFontDatabase::registerFontFamily().
Referenced by QWindowsFontDatabaseFT::populateFontDatabase(), and QWindowsFontDatabase::populateFontDatabase().
QFontNames qt_getCanonicalFontNames | ( | const LOGFONT & | lf | ) |
Definition at line 405 of file qwindowsfontdatabase.cpp.
References qFromBigEndian(), and qt_getCanonicalFontNames().
Referenced by addFontToDatabase(), addFontToDatabase(), getFamiliesAndSignatures(), qt_getCanonicalFontNames(), and qt_getEnglishName().
Definition at line 350 of file qwindowsfontdatabase.cpp.
References error, qFromBigEndian(), qt_getCanonicalFontNames(), QString::size(), QString::toWCharArray(), and QString::truncate().
Referenced by addFontToDatabase(), populateFontFamilies(), and populateFontFamilies().
bool qt_localizedName | ( | const QString & | name | ) |
Definition at line 194 of file qwindowsfontdatabase.cpp.
References i.
Referenced by addFontToDatabase(), addFontToDatabase(), populateFontFamilies(), and populateFontFamilies().
|
static |
Definition at line 579 of file qwindowsfontdatabase.cpp.
References addFontToDatabase(), QString::fromWCharArray(), and Q_ASSERT.
Referenced by QWindowsFontDatabaseFT::populateFamily(), and QWindowsFontDatabase::populateFamily().
|
inlinestatic |
Definition at line 157 of file qwindowsfontdatabase.cpp.
References QFontDatabase::Any, QFontDatabase::Arabic, QFontDatabase::Cyrillic, QFontDatabase::Greek, QFontDatabase::Hebrew, QFontDatabase::Japanese, QFontDatabase::Korean, QFontDatabase::Latin, QFontDatabase::SimplifiedChinese, QFontDatabase::Symbol, QFontDatabase::Thai, QFontDatabase::TraditionalChinese, and QFontDatabase::Vietnamese.
Referenced by addFontToDatabase().