Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qfontsubset_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 QFONTSUBSET_P_H
5#define QFONTSUBSET_P_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/qtguiglobal_p.h>
19#include "private/qfontengine_p.h"
20
22
24{
25public:
26 explicit QFontSubset(QFontEngine *fe, uint obj_id = 0)
28 {
30#ifndef QT_NO_PDF
31 addGlyph(0);
32#endif
33 }
35 if (!fontEngine->ref.deref())
36 delete fontEngine;
37 }
38
39 QByteArray toTruetype() const;
40#ifndef QT_NO_PDF
41 QByteArray widthArray() const;
44
45 static QByteArray glyphName(unsigned short unicode, bool symbol);
46
48#endif
50 bool noEmbed;
53 mutable int downloaded_glyphs;
54 mutable bool standard_font;
55 qsizetype nGlyphs() const { return glyph_indices.size(); }
58};
59
61
62#endif // QFONTSUBSET_P_H
bool ref() noexcept
bool deref() noexcept
\inmodule QtCore
Definition qbytearray.h:57
QAtomicInt ref
static QByteArray glyphName(unsigned short unicode, bool symbol)
int downloaded_glyphs
qsizetype nGlyphs() const
QFontEngine * fontEngine
QByteArray toTruetype() const
QFixed emSquare
QList< int > getReverseMap() const
QList< QFixed > widths
QByteArray createToUnicodeMap() const
QList< uint > glyph_indices
QByteArray widthArray() const
const uint object_id
QFontSubset(QFontEngine *fe, uint obj_id=0)
qsizetype addGlyph(uint index)
Definition qlist.h:74
qsizetype size() const noexcept
Definition qlist.h:386
Combined button and popup list for selecting options.
GLuint index
[2]
ptrdiff_t qsizetype
Definition qtypes.h:70
unsigned int uint
Definition qtypes.h:29