4#ifndef QFONTDATABASE_P_H
5#define QFONTDATABASE_P_H
18#include <QtCore/qcache.h>
20#include <QtGui/qfontdatabase.h>
21#include <QtCore/private/qglobal_p.h>
37 return lhs.script == rhs.script &&
38 lhs.styleHint == rhs.styleHint &&
39 lhs.style == rhs.style &&
40 lhs.family == rhs.family;
71 : style(
QFont::StyleNormal)
89 (stretch == 0 ||
other.stretch == 0 || stretch ==
other.stretch));
100 , bitmapScalable(
false)
101 , smoothScalable(
false)
131 delete styles[
count];
147 Unsupported = UnsupportedFT
156 memset(writingSystems, 0,
sizeof(writingSystems));
160 delete foundries[
count];
174 bool matchesFamilyName(
const QString &familyName)
const;
177 bool ensurePopulated();
193 void clearFamilies();
205 bool populated =
false;
239 bool preferScriptOverFamily =
false);
248 unsigned int *resultingScore =
nullptr);
250 static unsigned int bestFoundry(
int script,
unsigned int score,
int styleStrategy,
QList< ApplicationFont > applicationFonts
QCache< QtFontFallbacksCacheKey, QStringList > fallbacksCache
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
QHash< int, QWidget * > hash
[35multi]
Combined button and popup list for selecting options.
static const QCssKnownValue properties[NumProperties - 1]
static void parseFontName(const QString &name, QString &foundry, QString &family)
bool operator==(const QtFontFallbacksCacheKey &lhs, const QtFontFallbacksCacheKey &rhs) noexcept
size_t qHash(const QtFontFallbacksCacheKey &key, size_t seed=0) noexcept
bool operator!=(const QtFontFallbacksCacheKey &lhs, const QtFontFallbacksCacheKey &rhs) noexcept
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei count
GLuint GLuint GLfloat weight
GLenum GLsizeiptr const void * fontData
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
static bool match(const uchar *found, uint foundLen, const char *target, uint targetLen)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QNetworkRequest request(url)
QList< Properties > properties
QFont::StyleHint styleHint
QtFontFoundry ** foundries
QtFontFamily(const QString &n)
QtFontFoundry(const QString &n)
bool operator!=(const Key &other) const noexcept
bool operator==(const Key &other) const noexcept
QtFontStyle(const Key &k)