![]() |
Qt 6.x
The Qt SDK
|
#include "qwindowsfontdatabase_ft_p.h"
#include "qwindowsfontdatabase_p.h"
#include <QtGui/private/qfontengine_ft_p.h>
#include <ft2build.h>
#include <QtCore/QDir>
#include <QtCore/QDirIterator>
#include <QtCore/QSettings>
#include <QtCore/private/qduplicatetracker_p.h>
#include <QtGui/QGuiApplication>
#include <QtGui/QFontDatabase>
#include <wchar.h>
Go to the source code of this file.
Typedefs | |
using | FontKeys = QList< FontKey > |
Functions | |
static QFontDatabase::WritingSystem | writingSystemFromCharSet (uchar charSet) |
static FontFile * | createFontFile (const QString &fileName, int index) |
static FontKeys & | fontKeys () |
static const FontKey * | findFontKey (const QString &name, int *indexIn=nullptr) |
static bool | addFontToDatabase (QString familyName, QString styleName, const QString &fullName, const LOGFONT &logFont, const TEXTMETRIC *textmetric, const FONTSIGNATURE *signature, int type) |
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) |
Definition at line 82 of file qwindowsfontdatabase_ft.cpp.
|
static |
Definition at line 136 of file qwindowsfontdatabase_ft.cpp.
References QFontDatabase::Any, QString::at(), QFont::Bold, QLocale::C, createFontFile(), QFile::decodeName(), QFont::DemiBold, QLocale::English, findFontKey(), fullName, QDir::isAbsolutePath(), QString::isEmpty(), QFontNames::name, QFontNames::preferredName, QFontNames::preferredStyle, QString::prepend(), Q_ASSERT, qCDebug, qgetenv(), qt_getCanonicalFontNames(), qt_getEnglishName(), qt_localizedName(), QPlatformFontDatabase::registerAliasToFontFamily(), QPlatformFontDatabase::registerFont(), QSupportedWritingSystems::setSupported(), SMOOTH_SCALABLE, QString::startsWith(), str, QFont::StyleItalic, QFont::StyleNormal, QSupportedWritingSystems::supported(), QLocale::system(), systemLocale(), QFontDatabase::Thai, QFont::Unstretched, writingSystemFromCharSet(), and QPlatformFontDatabase::writingSystemsFromTrueTypeBits().
Definition at line 66 of file qwindowsfontdatabase_ft.cpp.
References FontFile::fileName, fileName, and FontFile::indexValue.
Referenced by addFontToDatabase().
Definition at line 120 of file qwindowsfontdatabase_ft.cpp.
References fontKeys(), it, and keys.
Referenced by addFontToDatabase(), and populateFontFamilies().
|
static |
Definition at line 84 of file qwindowsfontdatabase_ft.cpp.
References QSettings::allKeys(), allKeys(), i, QRegularExpression::isValid(), keys, QSettings::NativeFormat, Q_ASSERT, QStringLiteral, QString::remove(), QStringView::split(), QVariant::toString(), QStringView::trimmed(), and QSettings::value().
Referenced by findFontKey().
|
static |
Definition at line 342 of file qwindowsfontdatabase_ft.cpp.
References findFontKey(), QString::fromWCharArray(), QString::isEmpty(), qt_getEnglishName(), qt_localizedName(), QPlatformFontDatabase::registerAliasToFontFamily(), and QPlatformFontDatabase::registerFontFamily().
|
static |
Definition at line 272 of file qwindowsfontdatabase_ft.cpp.
References QString::fromWCharArray(), and fullName.
|
inlinestatic |
Definition at line 29 of file qwindowsfontdatabase_ft.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().