4#ifndef QWINDOWSFONTDATABASE_H
5#define QWINDOWSFONTDATABASE_H
20#include <qpa/qplatformfontdatabase.h>
21#include <QtCore/QSharedPointer>
22#include <QtCore/QLoggingCategory>
23#include <QtCore/qhashfunctions.h>
24#include <QtCore/qt_windows.h>
36 DontUseDirectWriteFonts = 0x40,
37 DontUseColorFonts = 0x80
59 void derefUniqueFont(
const QString &uniqueFont);
60 void refUniqueFont(
const QString &uniqueFont);
69 static void setFontOptions(
unsigned options);
70 static unsigned fontOptions();
72#ifndef QT_NO_DEBUG_STREAM
73 static void debugFormat(
QDebug &
d,
const LOGFONT &lf);
77 void removeApplicationFonts();
78 void addDefaultEUDCFont();
80 struct WinApplicationFont {
87 struct UniqueFontData {
94 static unsigned m_fontOptions;
96 bool m_hasPopulatedAliases =
false;
99#ifndef QT_NO_DEBUG_STREAM
137 {
return lhs.font == rhs.font && lhs.style == rhs.style; }
StyleHint
Style hints are used by the \l{QFont}{font matching} algorithm to find an appropriate default family ...
Style
This enum describes the different styles of glyphs that are used to display text.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QFont systemDefaultFont()
QFontEngine * fontEngine(const QFontDef &fontDef, void *handle) override
Returns the font engine that can be used to render the font described by the font definition,...
Font database for Windows.
QFont defaultFont() const override
Returns the default system font.
void ensureFamilyPopulated(const QString &familyName)
Combined button and popup list for selecting options.
Engine * createEngine(QGeoServiceProviderPrivate *)
static Q_CONSTINIT qreal fontSmoothingGamma
constexpr QtPrivate::QHashMultiReturnType< T... > qHashMulti(size_t seed, const T &... args) noexcept(std::conjunction_v< QtPrivate::QNothrowHashable< T >... >)
GLuint64 GLenum void * handle
GLuint GLuint GLfloat weight
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLsizeiptr const void * fontData
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
quint16 qt_getUShort(const unsigned char *p)
QFontNames qt_getCanonicalFontNames(const LOGFONT &lf)
QString qt_getEnglishName(const QString &familyName, bool includeStyle=false)
QDebug operator<<(QDebug, const QFontDef &def)
size_t qHash(const FontAndStyle &key, size_t seed) noexcept
bool qt_localizedName(const QString &name)
QNetworkRequest request(url)
friend bool operator!=(const FontAndStyle &lhs, const FontAndStyle &rhs) noexcept
friend bool operator==(const FontAndStyle &lhs, const FontAndStyle &rhs) noexcept