Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qwasmfontdatabase.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWASMFONTDATABASE_H
5#define QWASMFONTDATABASE_H
6
7#include <QtGui/private/qfreetypefontdatabase_p.h>
8
10
12{
13public:
14 void populateFontDatabase() override;
15 QFontEngine *fontEngine(const QFontDef &fontDef, void *handle) override;
17 QFont::StyleHint styleHint,
18 QChar::Script script) const override;
19 void releaseHandle(void *handle) override;
20 QFont defaultFont() const override;
21
22 void populateLocalfonts();
23
24 static void notifyFontsChanged();
25};
27#endif
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
Style
This enum describes the different styles of glyphs that are used to display text.
Definition qfont.h:73
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
void populateFontDatabase() override
This function is called once at startup by Qt's internal font database.
QFont defaultFont() const override
Returns the default system font.
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,...
static void notifyFontsChanged()
void releaseHandle(void *handle) override
Releases the specified font handle.
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...
Combined button and popup list for selecting options.
GLuint64 GLenum void * handle