Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsfontdatabase_ft_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSFONTDATABASEFT_H
5#define QWINDOWSFONTDATABASEFT_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qfreetypefontdatabase_p.h>
19#include <QtCore/QSharedPointer>
20#include <QtCore/qt_windows.h>
21
23
25{
26public:
27 void populateFontDatabase() override;
28 bool populateFamilyAliases(const QString &familyName) override;
29 void populateFamily(const QString &familyName) override;
30 QFontEngine *fontEngine(const QFontDef &fontDef, void *handle) override;
32 QFont::HintingPreference hintingPreference) override;
33
35 QFont::StyleHint styleHint,
36 QChar::Script script) const override;
37
38 QString fontDir() const override;
39 QFont defaultFont() const override;
40
41 bool m_hasPopulatedAliases = false;
42};
43
45
46#endif // QWINDOWSFONTDATABASEFT_H
\inmodule QtCore
Definition qbytearray.h:57
Script
Definition qchar.h:144
\reentrant
Definition qfont.h:20
StyleHint
Style hints are used by the \l{QFont}{font matching} algorithm to find an appropriate default family ...
Definition qfont.h:23
HintingPreference
Definition qfont.h:52
Style
This enum describes the different styles of glyphs that are used to display text.
Definition qfont.h:73
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,...
void populateFontDatabase() override
This function is called once at startup by Qt's internal font database.
virtual QFont defaultFont() const
Returns the default system font.
virtual bool populateFamilyAliases(const QString &missingFamily)
virtual QString fontDir() const
Returns the directory containing the fonts used by the database.
virtual QStringList fallbacksForFamily(const QString &family, QFont::Style style, QFont::StyleHint styleHint, QChar::Script script) const
Returns a list of alternative fonts for the specified family and style and script using the styleHint...
virtual void populateFamily(const QString &familyName)
This function is called whenever a lazily populated family, populated through registerFontFamily(),...
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
GLuint64 GLenum void * handle
GLenum GLsizeiptr const void * fontData
double qreal
Definition qtypes.h:92