4#ifndef QPLATFORMFONTDATABASE_H
5#define QPLATFORMFONTDATABASE_H
16#include <QtGui/qtguiglobal.h>
17#include <QtCore/qloggingcategory.h>
18#include <QtCore/QString>
19#include <QtCore/QStringList>
20#include <QtCore/QList>
21#include <QtGui/QFontDatabase>
22#include <QtGui/private/qfontengine_p.h>
23#include <QtGui/private/qfont_p.h>
24#include <QtGui/private/qfontdatabase_p.h>
51#ifndef QT_NO_DEBUG_STREAM
59#ifndef QT_NO_DEBUG_STREAM
63class QFontRequestPrivate;
70 virtual void populateFontDatabase();
72 virtual void populateFamily(
const QString &familyName);
73 virtual void invalidate();
81 virtual void releaseHandle(
void *
handle);
83 virtual QString fontDir()
const;
85 virtual QFont defaultFont()
const;
86 virtual bool isPrivateFontFamily(
const QString &family)
const;
88 virtual QString resolveFontFamilyAlias(
const QString &family)
const;
89 virtual bool fontsAlwaysScalable()
const;
97 static void registerFont(
const QString &familyname,
const QString &stylename,
100 bool scalable,
int pixelSize,
bool fixedPitch,
103 static void registerFontFamily(
const QString &familyName);
104 static void registerAliasToFontFamily(
const QString &familyName,
const QString &alias);
106 static void repopulateFontDatabase();
108 static bool isFamilyPopulated(
const QString &familyName);
WritingSystem
\value Any \value Latin \value Greek \value Cyrillic \value Armenian \value Hebrew \value Arabic \val...
StyleHint
Style hints are used by the \l{QFont}{font matching} algorithm to find an appropriate default family ...
Stretch
Predefined stretch values that follow the CSS naming convention.
Weight
Qt uses a weighting scale from 1 to 1000 compatible with OpenType.
Style
This enum describes the different styles of glyphs that are used to display text.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QSupportedWritingSystems class is used when registering fonts with the internal Qt fontdatabase.
Combined button and popup list for selecting options.
constexpr bool operator!=(const timespec &t1, const timespec &t2)
static QStringList fallbacksForFamily(const QString &family, QFont::Style style, QFont::StyleHint styleHint, QChar::Script script)
#define Q_DECLARE_EXPORTED_LOGGING_CATEGORY(name, export_macro)
GLuint64 GLenum void * handle
GLenum GLuint GLenum GLsizei length
GLuint GLuint GLfloat weight
GLenum GLsizeiptr const void * fontData
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)