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
QFontSubset Class Reference

#include <qfontsubset_p.h>

+ Collaboration diagram for QFontSubset:

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
 
QFontEnginefontEngine
 
QList< uintglyph_indices
 
int downloaded_glyphs
 
bool standard_font
 
QFixed emSquare
 
QList< QFixedwidths
 

Detailed Description

Definition at line 23 of file qfontsubset_p.h.

Constructor & Destructor Documentation

◆ QFontSubset()

QFontSubset::QFontSubset ( QFontEngine * fe,
uint obj_id = 0 )
inlineexplicit

Definition at line 26 of file qfontsubset_p.h.

References addGlyph(), fontEngine, QBasicAtomicInteger< T >::ref(), and QFontEngine::ref.

+ Here is the call graph for this function:

◆ ~QFontSubset()

QFontSubset::~QFontSubset ( )
inline

Definition at line 34 of file qfontsubset_p.h.

References QBasicAtomicInteger< T >::deref(), fontEngine, and QFontEngine::ref.

+ Here is the call graph for this function:

Member Function Documentation

◆ addGlyph()

qsizetype QFontSubset::addGlyph ( uint index)

Definition at line 251 of file qfontsubset.cpp.

References QList< T >::append(), glyph_indices, QListSpecialMethodsBase< T >::indexOf(), and QList< T >::size().

Referenced by QFontSubset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createToUnicodeMap()

QByteArray QFontSubset::createToUnicodeMap ( ) const

Definition at line 159 of file qfontsubset.cpp.

References checkRanges(), getReverseMap(), i, nGlyphs(), and QPdf::toHex().

+ Here is the call graph for this function:

◆ getReverseMap()

QList< int > QFontSubset::getReverseMap ( ) const

Definition at line 148 of file qfontsubset.cpp.

References fontEngine, glyph_indices, QFontEngine::glyphIndex(), and QListSpecialMethodsBase< T >::indexOf().

Referenced by createToUnicodeMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ glyphName()

QByteArray QFontSubset::glyphName ( unsigned short unicode,
bool symbol )
static

Definition at line 63 of file qfontsubset.cpp.

References symbol_map, and QPdf::toHex().

+ Here is the call graph for this function:

◆ nGlyphs()

qsizetype QFontSubset::nGlyphs ( ) const
inline

Definition at line 55 of file qfontsubset_p.h.

References glyph_indices, and QList< T >::size().

Referenced by createToUnicodeMap(), toTruetype(), and widthArray().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toTruetype()

◆ widthArray()

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.

+ Here is the call graph for this function:

Member Data Documentation

◆ downloaded_glyphs

int QFontSubset::downloaded_glyphs
mutable

Definition at line 53 of file qfontsubset_p.h.

◆ emSquare

QFixed QFontSubset::emSquare
mutable

Definition at line 56 of file qfontsubset_p.h.

Referenced by toTruetype(), and widthArray().

◆ fontEngine

QFontEngine* QFontSubset::fontEngine

Definition at line 51 of file qfontsubset_p.h.

Referenced by QFontSubset(), ~QFontSubset(), getReverseMap(), toTruetype(), and widthArray().

◆ glyph_indices

QList<uint> QFontSubset::glyph_indices

Definition at line 52 of file qfontsubset_p.h.

Referenced by addGlyph(), getReverseMap(), nGlyphs(), and toTruetype().

◆ noEmbed

bool QFontSubset::noEmbed

Definition at line 50 of file qfontsubset_p.h.

Referenced by toTruetype().

◆ object_id

const uint QFontSubset::object_id

Definition at line 49 of file qfontsubset_p.h.

◆ standard_font

bool QFontSubset::standard_font
mutable

Definition at line 54 of file qfontsubset_p.h.

◆ widths

QList<QFixed> QFontSubset::widths
mutable

Definition at line 57 of file qfontsubset_p.h.

Referenced by toTruetype(), and widthArray().


The documentation for this class was generated from the following files: