Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qandroidplatformfontdatabase.h
Go to the documentation of this file.
1// Copyright (C) 2012 BogDan Vatra <bogdan@kde.org>
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 QANDROIDPLATFORMFONTDATABASE_H
5#define QANDROIDPLATFORMFONTDATABASE_H
6
7#include <QtGui/private/qfreetypefontdatabase_p.h>
8
10
12{
13public:
14 QString fontDir() const override;
15 void populateFontDatabase() override;
16 QFont defaultFont() const override;
18 QFont::Style style,
19 QFont::StyleHint styleHint,
20 QChar::Script script) const override;
21};
22
24
25#endif // QANDROIDPLATFORMFONTDATABASE_H
QString fontDir() const override
Returns the directory containing the fonts used by the database.
void populateFontDatabase() override
This function is called once at startup by Qt's internal font database.
QStringList fallbacksForFamily(const QString &family, QFont::Style style, QFont::StyleHint styleHint, QChar::Script script) const override
Returns a list of alternative fonts for the specified family and style and script using the styleHint...
QFont defaultFont() const override
Returns the default system font.
\reentrant
Definition qfont.h:22
StyleHint
Style hints are used by the \l{QFont}{font matching} algorithm to find an appropriate default family ...
Definition qfont.h:25
Style
This enum describes the different styles of glyphs that are used to display text.
Definition qfont.h:76
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.