![]() |
Qt 6.x
The Qt SDK
|
#include <qfontsubset_p.h>
Public Member Functions | |
QFontSubset (QFontEngine *fe, uint obj_id=0) | |
~QFontSubset () | |
QByteArray | toTruetype () const |
QByteArray | widthArray () const |
QByteArray | createToUnicodeMap () const |
QList< int > | getReverseMap () const |
qsizetype | addGlyph (uint index) |
qsizetype | nGlyphs () const |
Static Public Member Functions | |
static QByteArray | glyphName (unsigned short unicode, bool symbol) |
Public Attributes | |
const uint | object_id |
bool | noEmbed |
QFontEngine * | fontEngine |
QList< uint > | glyph_indices |
int | downloaded_glyphs |
bool | standard_font |
QFixed | emSquare |
QList< QFixed > | widths |
Definition at line 23 of file qfontsubset_p.h.
|
inlineexplicit |
Definition at line 26 of file qfontsubset_p.h.
References addGlyph(), fontEngine, QBasicAtomicInteger< T >::ref(), and QFontEngine::ref.
|
inline |
Definition at line 34 of file qfontsubset_p.h.
References QBasicAtomicInteger< T >::deref(), fontEngine, and QFontEngine::ref.
Definition at line 251 of file qfontsubset.cpp.
References QList< T >::append(), glyph_indices, QListSpecialMethodsBase< T >::indexOf(), and QList< T >::size().
Referenced by QFontSubset().
QByteArray QFontSubset::createToUnicodeMap | ( | ) | const |
Definition at line 159 of file qfontsubset.cpp.
References QList< T >::at(), checkRanges(), getReverseMap(), i, nGlyphs(), and QPdf::toHex().
QList< int > QFontSubset::getReverseMap | ( | ) | const |
Definition at line 148 of file qfontsubset.cpp.
References QList< T >::at(), fontEngine, glyph_indices, QFontEngine::glyphIndex(), and QListSpecialMethodsBase< T >::indexOf().
Referenced by createToUnicodeMap().
|
static |
Definition at line 63 of file qfontsubset.cpp.
References symbol_map, and QPdf::toHex().
|
inline |
Definition at line 55 of file qfontsubset_p.h.
References glyph_indices, and QList< T >::size().
Referenced by createToUnicodeMap(), toTruetype(), and widthArray().
QByteArray QFontSubset::toTruetype | ( | ) | const |
Definition at line 1109 of file qfontsubset.cpp.
References QTtfGlyph::advanceWidth, QList< T >::append(), QList< T >::at(), bindFont(), QTtfTable::data, emSquare, QFontDef::families, font, QFontEngine::fontDef, fontEngine, generateGlyph(), generateGlyphTables(), generateHead(), generateHhea(), generateMaxp(), generateName(), QFontEngine::getSfntTable(), QFontEngine::getUnscaledGlyph(), glyph_indices, i, QByteArray::isEmpty(), QTtfGlyph::lsb, MAKE_TAG, QFontEngine::maxCharWidth(), QFontEngine::minLeftBearing(), QFontEngine::minRightBearing(), nGlyphs(), noEmbed, QFont::Normal, QTtfGlyph::numContours, QTtfGlyph::numPoints, QFontDef::pixelSize, QFontEngine::properties(), properties, qMax(), qMin(), qRound(), QList< T >::reserve(), QList< T >::resize(), QFontDef::styleHint, QFont::StyleNormal, QTtfTable::tag, TO_TTF, QFixed::toReal(), QFontDef::weight, widths, glyph_metrics_t::x, QTtfGlyph::xMax, QTtfGlyph::xMin, glyph_metrics_t::xoff, QTtfGlyph::yMax, and QTtfGlyph::yMin.
QByteArray QFontSubset::widthArray | ( | ) | const |
Definition at line 81 of file qfontsubset.cpp.
References emSquare, fontEngine, i, QList< T >::isEmpty(), nGlyphs(), QFontEngine::properties(), properties, Q_ASSERT, qRound(), QFixed::toInt(), toInt(), and widths.
|
mutable |
Definition at line 53 of file qfontsubset_p.h.
|
mutable |
Definition at line 56 of file qfontsubset_p.h.
Referenced by toTruetype(), and widthArray().
QFontEngine* QFontSubset::fontEngine |
Definition at line 51 of file qfontsubset_p.h.
Referenced by QFontSubset(), ~QFontSubset(), getReverseMap(), toTruetype(), and widthArray().
Definition at line 52 of file qfontsubset_p.h.
Referenced by addGlyph(), getReverseMap(), nGlyphs(), and toTruetype().
bool QFontSubset::noEmbed |
Definition at line 50 of file qfontsubset_p.h.
Referenced by toTruetype().
const uint QFontSubset::object_id |
Definition at line 49 of file qfontsubset_p.h.
|
mutable |
Definition at line 54 of file qfontsubset_p.h.
Definition at line 57 of file qfontsubset_p.h.
Referenced by toTruetype(), and widthArray().