Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QWASMFONTDATABASE_H
6
#
define
QWASMFONTDATABASE_H
7
8
#
include
<
QtGui
/
private
/
qfreetypefontdatabase_p
.
h
>
9
10
#
include
<
emscripten
/
val
.
h
>
11
12
QT_BEGIN_NAMESPACE
13
14
class
QWasmFontDatabase :
public
QFreeTypeFontDatabase
15
{
16
public
:
17
QWasmFontDatabase();
18
static
QWasmFontDatabase *get();
19
20
void
populateFontDatabase() override;
21
QFontEngine *fontEngine(
const
QFontDef &fontDef,
void
*handle) override;
22
QStringList fallbacksForFamily(
const
QString &family, QFont::Style style,
23
QFont::StyleHint styleHint,
24
QFontDatabasePrivate::ExtendedScript script)
const
override;
25
void
releaseHandle(
void
*handle) override;
26
QFont defaultFont()
const
override;
27
28
void
populateLocalfonts();
29
void
populateLocalFontFamilies(emscripten::val families);
30
void
populateLocalFontFamilies(
const
QStringList &famliies,
bool
allFamilies);
31
32
static
void
refFontFileLoading();
33
static
void
derefFontFileLoading();
34
static
void
endAllFontFileLoading();
35
36
private
:
37
bool
m_localFontsApiSupported =
false
;
38
bool
m_queryLocalFontsPermission =
false
;
39
enum
FontFamilyLoadSet {
40
NoFontFamilies,
41
DefaultFontFamilies,
42
AllFontFamilies,
43
};
44
FontFamilyLoadSet m_localFontFamilyLoadSet;
45
QStringList m_extraLocalFontFamilies;
46
};
47
QT_END_NAMESPACE
48
#
endif
QWasmIntegration
Definition
qwasmintegration.h:41
QWasmIntegration::get
static QWasmIntegration * get()
Definition
qwasmintegration.h:77
emscripten
Definition
qwasmwindowtreenode.h:12
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
plugins
platforms
wasm
qwasmfontdatabase.h
Generated on
for Qt by
1.18.0