Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QFontEngine Class Referenceabstract

#include <qfontengine_p.h>

+ Inheritance diagram for QFontEngine:
+ Collaboration diagram for QFontEngine:

Classes

struct  FaceData
 
struct  FaceId
 
struct  Glyph
 
class  Holder
 
struct  KernPair
 
struct  Properties
 

Public Types

enum  Type {
  Box , Multi , Win , Mac ,
  Freetype , QPF1 , QPF2 , Proxy ,
  DirectWrite , TestFontEngine = 0x1000
}
 
enum  GlyphFormat {
  Format_None , Format_Render = Format_None , Format_Mono , Format_A8 ,
  Format_A32 , Format_ARGB
}
 
enum  ShaperFlag { DesignMetrics = 0x0002 , GlyphIndicesOnly = 0x0004 }
 
enum  SynthesizedFlags { SynthesizedItalic = 0x1 , SynthesizedBold = 0x2 , SynthesizedStretch = 0x4 }
 
enum  HintStyle { HintNone , HintLight , HintMedium , HintFull }
 
enum  SubpixelAntialiasingType {
  Subpixel_None , Subpixel_RGB , Subpixel_BGR , Subpixel_VRGB ,
  Subpixel_VBGR
}
 

Public Member Functions

virtual ~QFontEngine ()
 
Type type () const
 
virtual Properties properties () const
 
virtual void getUnscaledGlyph (glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics)
 
QByteArray getSfntTable (uint tag) const
 
virtual bool getSfntTableData (uint tag, uchar *buffer, uint *length) const
 Returns true if the font table idetified by tag exists in the font; returns false otherwise.
 
virtual FaceId faceId () const
 
virtual int synthesized () const
 
bool supportsSubPixelPositions () const
 
virtual bool supportsHorizontalSubPixelPositions () const
 
virtual bool supportsVerticalSubPixelPositions () const
 
virtual QFixedPoint subPixelPositionFor (const QFixedPoint &position) const
 
QFixed subPixelPositionForX (QFixed x) const
 
virtual QFixed emSquareSize () const
 
virtual glyph_t glyphIndex (uint ucs4) const =0
 
virtual bool stringToCMap (const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs, ShaperFlags flags) const =0
 
virtual void recalcAdvances (QGlyphLayout *, ShaperFlags) const
 
virtual void doKerning (QGlyphLayout *, ShaperFlags) const
 
virtual void addGlyphsToPath (glyph_t *glyphs, QFixedPoint *positions, int nglyphs, QPainterPath *path, QTextItem::RenderFlags flags)
 
void getGlyphPositions (const QGlyphLayout &glyphs, const QTransform &matrix, QTextItem::RenderFlags flags, QVarLengthArray< glyph_t > &glyphs_out, QVarLengthArray< QFixedPoint > &positions)
 
virtual void addOutlineToPath (qreal, qreal, const QGlyphLayout &, QPainterPath *, QTextItem::RenderFlags flags)
 
void addBitmapFontToPath (qreal x, qreal y, const QGlyphLayout &, QPainterPath *, QTextItem::RenderFlags)
 
virtual QImage alphaMapForGlyph (glyph_t)
 
virtual QImage alphaMapForGlyph (glyph_t glyph, const QFixedPoint &subPixelPosition)
 
virtual QImage alphaMapForGlyph (glyph_t, const QTransform &t)
 
virtual QImage alphaMapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &t)
 
virtual QImage alphaRGBMapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &t)
 
virtual QImage bitmapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &t, const QColor &color=QColor())
 
virtual GlyphglyphData (glyph_t glyph, const QFixedPoint &subPixelPosition, GlyphFormat neededFormat, const QTransform &t)
 
virtual bool hasInternalCaching () const
 
virtual glyph_metrics_t alphaMapBoundingBox (glyph_t glyph, const QFixedPoint &, const QTransform &matrix, GlyphFormat)
 
virtual void removeGlyphFromCache (glyph_t)
 
virtual glyph_metrics_t boundingBox (const QGlyphLayout &glyphs)
 
virtual glyph_metrics_t boundingBox (glyph_t glyph)=0
 
virtual glyph_metrics_t boundingBox (glyph_t glyph, const QTransform &matrix)
 
glyph_metrics_t tightBoundingBox (const QGlyphLayout &glyphs)
 
virtual QFixed ascent () const
 
virtual QFixed capHeight () const =0
 
virtual QFixed descent () const
 
virtual QFixed leading () const
 
virtual QFixed xHeight () const
 
virtual QFixed averageCharWidth () const
 
virtual QFixed lineThickness () const
 
virtual QFixed underlinePosition () const
 
virtual qreal maxCharWidth () const =0
 
virtual qreal minLeftBearing () const
 
virtual qreal minRightBearing () const
 
virtual void getGlyphBearings (glyph_t glyph, qreal *leftBearing=nullptr, qreal *rightBearing=nullptr)
 
bool canRender (uint ucs4) const
 
virtual bool canRender (const QChar *str, int len) const
 
virtual bool supportsTransformation (const QTransform &transform) const
 
virtual int glyphCount () const
 
virtual int glyphMargin (GlyphFormat format)
 
virtual QFontEnginecloneWithSize (qreal) const
 
virtual Qt::HANDLE handle () const
 
voidharfbuzzFont () const
 
voidharfbuzzFace () const
 
bool supportsScript (QChar::Script script) const
 
virtual int getPointInOutline (glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints)
 
void clearGlyphCache (const void *key)
 
void setGlyphCache (const void *key, QFontEngineGlyphCache *data)
 
QFontEngineGlyphCacheglyphCache (const void *key, GlyphFormat format, const QTransform &transform, const QColor &color=QColor()) const
 
virtual bool hasUnreliableGlyphOutline () const
 
virtual bool expectsGammaCorrectedBlending () const
 
virtual void setDefaultHintStyle (HintStyle)
 
void loadKerningPairs (QFixed scalingFactor)
 

Static Public Member Functions

static bool scriptRequiresOpenType (QChar::Script script)
 
static const uchargetCMap (const uchar *table, uint tableSize, bool *isSymbolFont, int *cmapSize)
 
static quint32 getTrueTypeGlyphIndex (const uchar *cmap, int cmapSize, uint unicode)
 
static QByteArray convertToPostscriptFontFamilyName (const QByteArray &fontFamily)
 

Public Attributes

QAtomicInt ref
 
QFontDef fontDef
 
Holder font_
 
Holder face_
 
struct QFontEngine::FaceData faceData
 
uint cache_cost
 
uint fsType: 16
 
bool symbol
 
bool isSmoothlyScalable
 
QList< KernPairkerning_pairs
 
GlyphFormat glyphFormat
 
int m_subPixelPositionCount
 

Protected Member Functions

 QFontEngine (Type type)
 
QFixed firstLeftBearing (const QGlyphLayout &glyphs)
 
QFixed lastRightBearing (const QGlyphLayout &glyphs)
 
QFixed calculatedCapHeight () const
 
virtual void initializeHeightMetrics () const
 
bool processHheaTable () const
 
bool processOS2Table () const
 

Protected Attributes

QFixed m_ascent
 
QFixed m_descent
 
QFixed m_leading
 
bool m_heightMetricsQueried
 

Detailed Description

Definition at line 51 of file qfontengine_p.h.

Member Enumeration Documentation

◆ GlyphFormat

Enumerator
Format_None 
Format_Render 
Format_Mono 
Format_A8 
Format_A32 
Format_ARGB 

Definition at line 75 of file qfontengine_p.h.

◆ HintStyle

Enumerator
HintNone 
HintLight 
HintMedium 
HintFull 

Definition at line 249 of file qfontengine_p.h.

◆ ShaperFlag

Enumerator
DesignMetrics 
GlyphIndicesOnly 

Definition at line 84 of file qfontengine_p.h.

◆ SubpixelAntialiasingType

Enumerator
Subpixel_None 
Subpixel_RGB 
Subpixel_BGR 
Subpixel_VRGB 
Subpixel_VBGR 

Definition at line 257 of file qfontengine_p.h.

◆ SynthesizedFlags

Enumerator
SynthesizedItalic 
SynthesizedBold 
SynthesizedStretch 

Definition at line 137 of file qfontengine_p.h.

◆ Type

Enumerator
Box 
Multi 
Win 
Mac 
Freetype 
QPF1 
QPF2 
Proxy 
DirectWrite 
TestFontEngine 

Definition at line 54 of file qfontengine_p.h.

Constructor & Destructor Documentation

◆ ~QFontEngine()

QFontEngine::~QFontEngine ( )
virtual

Definition at line 125 of file qfontengine.cpp.

References QList< T >::removeOne().

+ Here is the call graph for this function:

◆ QFontEngine()

QFontEngine::QFontEngine ( Type  type)
explicitprotected

Definition at line 100 of file qfontengine.cpp.

References QList< T >::append(), cache_cost, faceData, Format_None, fsType, QFontEngine::FaceData::get_font_table, glyphFormat, isSmoothlyScalable, m_subPixelPositionCount, qt_get_font_table_default(), symbol, and QFontEngine::FaceData::user_data.

+ Here is the call graph for this function:

Member Function Documentation

◆ addBitmapFontToPath()

void QFontEngine::addBitmapFontToPath ( qreal  x,
qreal  y,
const QGlyphLayout glyphs,
QPainterPath path,
QTextItem::RenderFlags  flags 
)

Definition at line 716 of file qfontengine.cpp.

References QGlyphLayout::advances, alphaMapForGlyph(), QImage::bits(), boundingBox(), QImage::bytesPerLine(), QImage::depth(), QImage::Format_Mono, QFixed::fromReal(), QGlyphLayout::glyphs, QImage::height(), i, imageData, QGlyphLayout::numGlyphs, QGlyphLayout::offsets, Q_UNUSED, qt_addBitmapToPath(), and QImage::width().

Referenced by addGlyphsToPath(), and QWindowsFontEngine::addOutlineToPath().

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

◆ addGlyphsToPath()

void QFontEngine::addGlyphsToPath ( glyph_t glyphs,
QFixedPoint positions,
int  nglyphs,
QPainterPath path,
QTextItem::RenderFlags  flags 
)
virtual

Reimplemented in QFontEngineFT, QWindowsFontEngine, QWindowsFontEngineDirectWrite, and QCoreTextFontEngine.

Definition at line 765 of file qfontengine.cpp.

References addBitmapFontToPath(), QFixed::fromReal(), i, maxCharWidth(), and positions.

Referenced by addOutlineToPath(), alphaMapForGlyph(), QTextureGlyphCache::calculateSubPixelPositionCount(), QPaintEngineEx::drawStaticTextItem(), getUnscaledGlyph(), QRawFont::pathForGlyph(), and QDistanceField::setGlyph().

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

◆ addOutlineToPath()

void QFontEngine::addOutlineToPath ( qreal  x,
qreal  y,
const QGlyphLayout glyphs,
QPainterPath path,
QTextItem::RenderFlags  flags 
)
virtual

Reimplemented in QFontEngineFT, QFontEngineBox, QWindowsFontEngine, and QFontEngineMulti.

Definition at line 609 of file qfontengine.cpp.

References addGlyphsToPath(), QVarLengthArray< T, Prealloc >::data(), QTransform::fromTranslate(), getGlyphPositions(), QGlyphLayout::numGlyphs, positions, and QVLABaseBase::size().

Referenced by QFontEngineFT::addOutlineToPath(), QWindowsFontEngine::addOutlineToPath(), QPainterPath::addText(), and QPaintEngine::drawTextItem().

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

◆ alphaMapBoundingBox()

virtual glyph_metrics_t QFontEngine::alphaMapBoundingBox ( glyph_t  glyph,
const QFixedPoint ,
const QTransform matrix,
GlyphFormat   
)
inlinevirtual

Reimplemented in QCoreTextFontEngine, QWindowsFontEngine, QWindowsFontEngineDirectWrite, and QFontEngineFT.

Definition at line 185 of file qfontengine_p.h.

Referenced by QCoreTextFontEngine::alphaMapBoundingBox(), and QTextureGlyphCache::populate().

+ Here is the caller graph for this function:

◆ alphaMapForGlyph() [1/4]

QImage QFontEngine::alphaMapForGlyph ( glyph_t  glyph,
const QFixedPoint subPixelPosition 
)
virtual

Reimplemented in QFontEngineMulti, QWindowsFontEngineDirectWrite, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 782 of file qfontengine.cpp.

References alphaMapForGlyph().

+ Here is the call graph for this function:

◆ alphaMapForGlyph() [2/4]

QImage QFontEngine::alphaMapForGlyph ( glyph_t  glyph)
virtual

Create a qimage with the alpha values for the glyph. Returns an image indexed_8 with index values ranging from 0=fully transparent to 255=opaque

Reimplemented in QFontEngineFT, QWindowsFontEngine, QFontEngineBox, and QFontEngineMulti.

Definition at line 863 of file qfontengine.cpp.

References addGlyphsToPath(), QPainter::Antialiasing, Qt::black, boundingBox(), QImage::constScanLine(), QImage::fill(), QImage::Format_Alpha8, QImage::Format_ARGB32_Premultiplied, QImage::height(), glyph_metrics_t::height, Qt::NoPen, qAlpha(), qCeil(), qFloor(), QImage::scanLine(), QFixed::toReal(), Qt::transparent, QImage::width(), glyph_metrics_t::width, Qt::WindingFill, QFixedPoint::x, glyph_metrics_t::x, QFixedPoint::y, and glyph_metrics_t::y.

Referenced by addBitmapFontToPath(), alphaMapForGlyph(), QCoreTextFontEngine::alphaMapForGlyph(), alphaMapForGlyph(), alphaMapForGlyph(), QRawFont::alphaMapForGlyph(), alphaRGBMapForGlyph(), qt_fontHasNarrowOutlines(), and QTextureGlyphCache::textureMapForGlyph().

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

◆ alphaMapForGlyph() [3/4]

QImage QFontEngine::alphaMapForGlyph ( glyph_t  glyph,
const QFixedPoint subPixelPosition,
const QTransform t 
)
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngineDirectWrite, and QFontEngineMulti.

Definition at line 798 of file qfontengine.cpp.

References alphaMapForGlyph(), QImage::Format_Alpha8, i, Q_ASSERT, supportsHorizontalSubPixelPositions(), supportsVerticalSubPixelPositions(), and QTransform::TxTranslate.

+ Here is the call graph for this function:

◆ alphaMapForGlyph() [4/4]

QImage QFontEngine::alphaMapForGlyph ( glyph_t  glyph,
const QTransform t 
)
virtual

Reimplemented in QFontEngineMulti, and QWindowsFontEngine.

Definition at line 788 of file qfontengine.cpp.

References alphaMapForGlyph(), QImage::Format_Alpha8, i, Q_ASSERT, and QTransform::TxTranslate.

+ Here is the call graph for this function:

◆ alphaRGBMapForGlyph()

QImage QFontEngine::alphaRGBMapForGlyph ( glyph_t  glyph,
const QFixedPoint subPixelPosition,
const QTransform t 
)
virtual

Reimplemented in QWindowsFontEngine, QWindowsFontEngineDirectWrite, QCoreTextFontEngine, QFontEngineFT, and QFontEngineMulti.

Definition at line 811 of file qfontengine.cpp.

References alphaMapForGlyph(), QImage::constScanLine(), QImage::Format_RGB32, QImage::height(), qRgb(), QImage::scanLine(), and QImage::width().

Referenced by QRawFont::alphaMapForGlyph(), QCoreTextFontEngine::alphaRGBMapForGlyph(), QFontEngineFT::alphaRGBMapForGlyph(), and QTextureGlyphCache::textureMapForGlyph().

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

◆ ascent()

QFixed QFontEngine::ascent ( ) const
virtual

Reimplemented in QFontEngineBox, and QFontEngineMulti.

Definition at line 474 of file qfontengine.cpp.

References initializeHeightMetrics(), m_ascent, and m_heightMetricsQueried.

Referenced by _hb_qt_get_font_h_extents(), QPainterPath::addText(), QRawFont::ascent(), boundingBox(), QFontEngineFT::boundingBox(), QWindowsFontEngineDirectWrite::boundingBox(), QPaintEnginePrivate::drawBoxTextItem(), QPaintEngine::drawTextItem(), drawTextItemDecoration(), processHheaTable(), properties(), QFontMetrics::xHeight(), and QFontMetricsF::xHeight().

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

◆ averageCharWidth()

QFixed QFontEngine::averageCharWidth ( ) const
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QFontEngineMulti, and QWindowsFontEngine.

Definition at line 238 of file qfontengine.cpp.

References boundingBox(), glyphIndex(), and glyph_metrics_t::xoff.

Referenced by QRawFont::averageCharWidth(), QFontEngineFT::averageCharWidth(), and QCoreTextFontEngine::init().

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

◆ bitmapForGlyph()

QImage QFontEngine::bitmapForGlyph ( glyph_t  ,
const QFixedPoint subPixelPosition,
const QTransform t,
const QColor color = QColor() 
)
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, and QWindowsFontEngineDirectWrite.

Definition at line 828 of file qfontengine.cpp.

References Q_UNUSED.

Referenced by QRawFont::alphaMapForGlyph(), QCoreTextFontEngine::bitmapForGlyph(), QPaintEngine::drawTextItem(), and QTextureGlyphCache::textureMapForGlyph().

+ Here is the caller graph for this function:

◆ boundingBox() [1/3]

glyph_metrics_t QFontEngine::boundingBox ( const QGlyphLayout glyphs)
virtual

Reimplemented in QFontEngineFT, QFontEngineBox, QFontEngineMulti, and QWindowsFontEngineDirectWrite.

Definition at line 572 of file qfontengine.cpp.

References ascent(), descent(), QGlyphLayout::effectiveAdvance(), firstLeftBearing(), i, lastRightBearing(), and QGlyphLayout::numGlyphs.

Referenced by _hb_qt_font_get_glyph_extents(), addBitmapFontToPath(), alphaMapForGlyph(), averageCharWidth(), boundingBox(), QRawFont::boundingRect(), calculatedCapHeight(), firstLeftBearing(), getGlyphBearings(), getUnscaledGlyph(), lastRightBearing(), minRightBearing(), qt_draw_decoration_for_glyphs(), tightBoundingBox(), visibleGlyphRange(), and xHeight().

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

◆ boundingBox() [2/3]

virtual glyph_metrics_t QFontEngine::boundingBox ( glyph_t  glyph)
pure virtual

◆ boundingBox() [3/3]

glyph_metrics_t QFontEngine::boundingBox ( glyph_t  glyph,
const QTransform matrix 
)
virtual

Reimplemented in QWindowsFontEngine, and QFontEngineFT.

Definition at line 214 of file qfontengine.cpp.

References boundingBox(), and QTransform::TxTranslate.

+ Here is the call graph for this function:

◆ calculatedCapHeight()

QFixed QFontEngine::calculatedCapHeight ( ) const
protected

Definition at line 224 of file qfontengine.cpp.

References boundingBox(), glyphIndex(), and glyph_metrics_t::height.

Referenced by QCoreTextFontEngine::capHeight(), QFontEngineFT::capHeight(), QWindowsFontEngine::capHeight(), and QWindowsFontEngineDirectWrite::capHeight().

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

◆ canRender() [1/2]

bool QFontEngine::canRender ( const QChar str,
int  len 
) const
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineBox, and QFontEngineMulti.

Definition at line 203 of file qfontengine.cpp.

References glyphIndex(), it, and str.

+ Here is the call graph for this function:

◆ canRender() [2/2]

bool QFontEngine::canRender ( uint  ucs4) const
inline

Definition at line 213 of file qfontengine_p.h.

Referenced by QRawFont::supportsCharacter().

+ Here is the caller graph for this function:

◆ capHeight()

virtual QFixed QFontEngine::capHeight ( ) const
pure virtual

Implemented in QCoreTextFontEngine, QFontEngineFT, QFontEngineBox, QFontEngineMulti, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Referenced by QRawFont::capHeight().

+ Here is the caller graph for this function:

◆ clearGlyphCache()

void QFontEngine::clearGlyphCache ( const void key)

Definition at line 961 of file qfontengine.cpp.

References context, and QHash< Key, T >::remove().

+ Here is the call graph for this function:

◆ cloneWithSize()

virtual QFontEngine * QFontEngine::cloneWithSize ( qreal  ) const
inlinevirtual

Reimplemented in QCoreTextRawFontEngine, QCoreTextFontEngine, QFontEngineFT, QFontEngineBox, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 221 of file qfontengine_p.h.

Referenced by QTextEngine::fontEngine(), qt_fontHasNarrowOutlines(), and QRawFont::setPixelSize().

+ Here is the caller graph for this function:

◆ convertToPostscriptFontFamilyName()

QByteArray QFontEngine::convertToPostscriptFontFamilyName ( const QByteArray fontFamily)
static

Definition at line 1446 of file qfontengine.cpp.

References QByteArray::replace().

Referenced by properties(), QFontEngineFT::properties(), and QWindowsFontEngine::properties().

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

◆ descent()

QFixed QFontEngine::descent ( ) const
virtual

Reimplemented in QFontEngineBox, and QFontEngineMulti.

Definition at line 482 of file qfontengine.cpp.

References initializeHeightMetrics(), m_descent, and m_heightMetricsQueried.

Referenced by _hb_qt_get_font_h_extents(), boundingBox(), QFontEngineFT::boundingBox(), QWindowsFontEngineDirectWrite::boundingBox(), QRawFont::descent(), drawTextItemDecoration(), processHheaTable(), and properties().

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

◆ doKerning()

void QFontEngine::doKerning ( QGlyphLayout ,
ShaperFlags   
) const
virtual

Reimplemented in QFontEngineFT, QFontEngineMulti, and QCoreTextFontEngine.

Definition at line 1027 of file qfontengine.cpp.

References QGlyphLayout::advances, DesignMetrics, QGlyphLayout::glyphs, i, kerning(), kerning_pairs, QGlyphLayout::numGlyphs, and qRound().

Referenced by _hb_qt_font_get_glyph_h_kerning(), QRawFont::advancesForGlyphIndexes(), QFontEngineFT::doKerning(), and QCoreTextFontEngine::doKerning().

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

◆ emSquareSize()

virtual QFixed QFontEngine::emSquareSize ( ) const
inlinevirtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 155 of file qfontengine_p.h.

Referenced by _hb_qt_face_create(), QWindowsFontEngineDirectWrite::emSquareSize(), minRightBearing(), processHheaTable(), processOS2Table(), and QRawFont::unitsPerEm().

+ Here is the caller graph for this function:

◆ expectsGammaCorrectedBlending()

bool QFontEngine::expectsGammaCorrectedBlending ( ) const
virtual

Reimplemented in QCoreTextFontEngine, and QFontEngineFT.

Definition at line 250 of file qfontengine.cpp.

Referenced by QRasterPaintEngine::drawCachedGlyphs().

+ Here is the caller graph for this function:

◆ faceId()

virtual FaceId QFontEngine::faceId ( ) const
inlinevirtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 136 of file qfontengine_p.h.

Referenced by _hb_qt_face_create(), QFontEngineMulti::createMultiFontEngine(), QPdfEnginePrivate::drawTextItem(), and QSGDefaultRenderContext::fontKey().

+ Here is the caller graph for this function:

◆ firstLeftBearing()

QFixed QFontEngine::firstLeftBearing ( const QGlyphLayout glyphs)
protected

Definition at line 1472 of file qfontengine.cpp.

References boundingBox(), QGlyphLayout::glyphs, i, glyph_metrics_t::isValid(), glyph_metrics_t::leftBearing(), QGlyphLayout::numGlyphs, and glyph_metrics_t::width.

Referenced by boundingBox(), and QWindowsFontEngineDirectWrite::boundingBox().

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

◆ getCMap()

const uchar * QFontEngine::getCMap ( const uchar table,
uint  tableSize,
bool *  isSymbolFont,
int *  cmapSize 
)
static

Definition at line 1154 of file qfontengine.cpp.

References getTrueTypeGlyphIndex(), header(), Invalid, and qSafeFromBigEndian().

Referenced by QWindowsFontEngine::getCMap().

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

◆ getGlyphBearings()

void QFontEngine::getGlyphBearings ( glyph_t  glyph,
qreal leftBearing = nullptr,
qreal rightBearing = nullptr 
)
virtual

Reimplemented in QFontEngineMulti, and QWindowsFontEngine.

Definition at line 373 of file qfontengine.cpp.

References boundingBox(), glyph_metrics_t::leftBearing(), glyph_metrics_t::rightBearing(), and QFixed::toReal().

Referenced by QWindowsFontEngine::getGlyphBearings().

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

◆ getGlyphPositions()

◆ getPointInOutline()

int QFontEngine::getPointInOutline ( glyph_t  glyph,
int  flags,
quint32  point,
QFixed xpos,
QFixed ypos,
quint32 nPoints 
)
virtual

Reimplemented in QFontEngineFT.

Definition at line 57 of file qfontengine.cpp.

References Err_Not_Covered, and Q_UNUSED.

Referenced by _hb_qt_font_get_glyph_contour_point().

+ Here is the caller graph for this function:

◆ getSfntTable()

QByteArray QFontEngine::getSfntTable ( uint  tag) const

Definition at line 949 of file qfontengine.cpp.

References getSfntTableData(), and tag.

Referenced by QWindowsFontEngine::capHeight(), QRawFont::fontTable(), QWindowsFontEngine::getCMap(), glyphCount(), QCoreTextFontEngine::init(), initializeHeightMetrics(), loadKerningPairs(), minRightBearing(), processHheaTable(), processOS2Table(), and QFontSubset::toTruetype().

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

◆ getSfntTableData()

bool QFontEngine::getSfntTableData ( uint  tag,
uchar buffer,
uint length 
) const
virtual

Returns true if the font table idetified by tag exists in the font; returns false otherwise.

If buffer is \nullptr, stores the size of the buffer required for the font table data, in bytes, in length. If buffer is not \nullptr and the capacity of the buffer, passed in length, is sufficient to store the font table data, also copies the font table data to buffer.

Note: returning false when the font table exists could lead to an undefined behavior.

Reimplemented in QFontEngineFT, QWindowsFontEngine, QWindowsFontEngineDirectWrite, and QCoreTextFontEngine.

Definition at line 941 of file qfontengine.cpp.

References Q_UNUSED, and tag.

Referenced by getSfntTable(), qt_get_font_table_default(), and supportsScript().

+ Here is the caller graph for this function:

◆ getTrueTypeGlyphIndex()

quint32 QFontEngine::getTrueTypeGlyphIndex ( const uchar cmap,
int  cmapSize,
uint  unicode 
)
static

Definition at line 1311 of file qfontengine.cpp.

References glyphIndex(), i, ptr(), qDebug, and qSafeFromBigEndian().

Referenced by getCMap(), QWindowsFontEngine::getGlyphIndexes(), and QWindowsFontEngine::glyphIndex().

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

◆ getUnscaledGlyph()

void QFontEngine::getUnscaledGlyph ( glyph_t  glyph,
QPainterPath path,
glyph_metrics_t metrics 
)
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 921 of file qfontengine.cpp.

References addGlyphsToPath(), and boundingBox().

Referenced by QFontSubset::toTruetype().

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

◆ glyphCache()

QFontEngineGlyphCache * QFontEngine::glyphCache ( const void key,
GlyphFormat  format,
const QTransform transform,
const QColor color = QColor() 
) const

Definition at line 987 of file qfontengine.cpp.

References cache, caches, QHash< Key, T >::cend(), QHash< Key, T >::constFind(), context, e, Format_ARGB, and qtransform_equals_no_translate().

Referenced by QDirectFbBlitter::drawCachedGlyphs(), QRasterPaintEngine::drawCachedGlyphs(), and QOpenGL2PaintEngineExPrivate::drawCachedGlyphs().

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

◆ glyphCount()

int QFontEngine::glyphCount ( ) const
virtual

Reimplemented in QFontEngineFT.

Definition at line 1135 of file qfontengine.cpp.

References QByteArray::constData(), getSfntTable(), MAKE_TAG, qSafeFromBigEndian(), and QByteArray::size().

Referenced by QSGDistanceFieldGlyphCache::QSGDistanceFieldGlyphCache(), and QSGOpenVGFontGlyphCache::QSGOpenVGFontGlyphCache().

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

◆ glyphData()

QFontEngine::Glyph * QFontEngine::glyphData ( glyph_t  glyph,
const QFixedPoint subPixelPosition,
QFontEngine::GlyphFormat  neededFormat,
const QTransform t 
)
virtual

Reimplemented in QFontEngineFT.

Definition at line 855 of file qfontengine.cpp.

Referenced by QRasterPaintEngine::drawCachedGlyphs().

+ Here is the caller graph for this function:

◆ glyphIndex()

virtual glyph_t QFontEngine::glyphIndex ( uint  ucs4) const
pure virtual

◆ glyphMargin()

virtual int QFontEngine::glyphMargin ( GlyphFormat  format)
inlinevirtual

◆ handle()

Qt::HANDLE QFontEngine::handle ( ) const
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 1149 of file qfontengine.cpp.

Referenced by draw_text_item_win(), and QWin32PrintEngine::drawTextItem().

+ Here is the caller graph for this function:

◆ harfbuzzFace()

void * QFontEngine::harfbuzzFace ( ) const

Definition at line 161 of file qfontengine.cpp.

References hb_qt_face_get_for_engine(), Multi, Q_ASSERT, and type().

Referenced by QFontEngineFT::init().

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

◆ harfbuzzFont()

void * QFontEngine::harfbuzzFont ( ) const

Definition at line 151 of file qfontengine.cpp.

References hb_qt_font_get_for_engine(), Multi, Q_ASSERT, and type().

+ Here is the call graph for this function:

◆ hasInternalCaching()

virtual bool QFontEngine::hasInternalCaching ( ) const
inlinevirtual

Reimplemented in QFontEngineFT.

Definition at line 183 of file qfontengine_p.h.

Referenced by QRasterPaintEngine::drawCachedGlyphs(), and QRasterPaintEngine::shouldDrawCachedGlyphs().

+ Here is the caller graph for this function:

◆ hasUnreliableGlyphOutline()

bool QFontEngine::hasUnreliableGlyphOutline ( ) const
virtual

Reimplemented in QWindowsFontEngine.

Definition at line 1466 of file qfontengine.cpp.

References Format_ARGB, and glyphFormat.

Referenced by QQuickTextNode::addGlyphs(), and QWindowsFontEngine::hasUnreliableGlyphOutline().

+ Here is the caller graph for this function:

◆ initializeHeightMetrics()

void QFontEngine::initializeHeightMetrics ( ) const
protectedvirtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 407 of file qfontengine.cpp.

References getSfntTable(), QByteArray::isEmpty(), m_ascent, m_descent, m_heightMetricsQueried, m_leading, MAKE_TAG, processHheaTable(), processOS2Table(), QFixed::round(), and supportsSubPixelPositions().

Referenced by ascent(), descent(), QFontEngineFT::initializeHeightMetrics(), QWindowsFontEngine::initializeHeightMetrics(), QWindowsFontEngineDirectWrite::initializeHeightMetrics(), and leading().

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

◆ lastRightBearing()

QFixed QFontEngine::lastRightBearing ( const QGlyphLayout glyphs)
protected

Definition at line 1483 of file qfontengine.cpp.

References boundingBox(), QGlyphLayout::glyphs, glyph_metrics_t::isValid(), QGlyphLayout::numGlyphs, and glyph_metrics_t::rightBearing().

Referenced by boundingBox(), and QWindowsFontEngineDirectWrite::boundingBox().

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

◆ leading()

QFixed QFontEngine::leading ( ) const
virtual

Reimplemented in QFontEngineBox, and QFontEngineMulti.

Definition at line 466 of file qfontengine.cpp.

References initializeHeightMetrics(), m_heightMetricsQueried, and m_leading.

Referenced by _hb_qt_get_font_h_extents(), QFontEngineFT::init(), QRawFont::leading(), processHheaTable(), and properties().

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

◆ lineThickness()

QFixed QFontEngine::lineThickness ( ) const
virtual

◆ loadKerningPairs()

void QFontEngine::loadKerningPairs ( QFixed  scalingFactor)

Definition at line 1044 of file qfontengine.cpp.

References QByteArray::constData(), getSfntTable(), header(), i, QByteArray::isEmpty(), kerning_pairs, MAKE_TAG, qSafeFromBigEndian(), and QByteArray::size().

Referenced by QFontEngineFT::doKerning(), QCoreTextFontEngine::doKerning(), and QWindowsFontEngine::getCMap().

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

◆ maxCharWidth()

virtual qreal QFontEngine::maxCharWidth ( ) const
pure virtual

Implemented in QCoreTextFontEngine, QFontEngineFT, QFontEngineBox, QFontEngineMulti, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Referenced by addGlyphsToPath(), QRawFont::maxCharWidth(), QTextureGlyphCache::populate(), properties(), and QFontSubset::toTruetype().

+ Here is the caller graph for this function:

◆ minLeftBearing()

qreal QFontEngine::minLeftBearing ( ) const
virtual

Reimplemented in QFontEngineBox, QFontEngineMulti, and QWindowsFontEngine.

Definition at line 490 of file qfontengine.cpp.

References kBearingNotInitialized, and minRightBearing().

Referenced by QFontSubset::toTruetype().

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

◆ minRightBearing()

qreal QFontEngine::minRightBearing ( ) const
virtual

Reimplemented in QFontEngineBox, QFontEngineMulti, and QWindowsFontEngine.

Definition at line 503 of file qfontengine.cpp.

References boundingBox(), QByteArray::constData(), emSquareSize(), QFontDef::families, fontDef, getSfntTable(), glyphIndex(), glyph_metrics_t::height, i, kBearingNotInitialized, kMinLeftSideBearingOffset, kMinRightSideBearingOffset, glyph_metrics_t::leftBearing(), MAKE_TAG, QFontDef::pixelSize, q16Dot16ToFloat, Q_ASSERT, qAbs(), qMin(), qWarning, glyph_metrics_t::rightBearing(), QByteArray::size(), QFixed::toInt(), QFixed::toReal(), and glyph_metrics_t::width.

Referenced by minLeftBearing(), and QFontSubset::toTruetype().

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

◆ processHheaTable()

bool QFontEngine::processHheaTable ( ) const
protected

Definition at line 382 of file qfontengine.cpp.

References ascent(), QByteArray::constData(), descent(), emSquareSize(), fontDef, QFixed::fromReal(), getSfntTable(), leading(), m_ascent, m_descent, m_leading, MAKE_TAG, QFontDef::pixelSize, ptr(), and QByteArray::size().

Referenced by initializeHeightMetrics().

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

◆ processOS2Table()

bool QFontEngine::processOS2Table ( ) const
protected

Definition at line 430 of file qfontengine.cpp.

References QByteArray::constData(), emSquareSize(), fontDef, QFixed::fromReal(), getSfntTable(), m_ascent, m_descent, m_leading, MAKE_TAG, QFontDef::pixelSize, ptr(), and QByteArray::size().

Referenced by initializeHeightMetrics().

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

◆ properties()

QFontEngine::Properties QFontEngine::properties ( ) const
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 904 of file qfontengine.cpp.

References ascent(), convertToPostscriptFontFamilyName(), descent(), QFontDef::families, fontDef, leading(), lineThickness(), maxCharWidth(), QByteArray::number(), QFontDef::style, and QFontDef::weight.

Referenced by QWindowsFontEngineDirectWrite::properties(), QFontSubset::toTruetype(), and QFontSubset::widthArray().

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

◆ recalcAdvances()

virtual void QFontEngine::recalcAdvances ( QGlyphLayout ,
ShaperFlags   
) const
inlinevirtual

Reimplemented in QCoreTextFontEngine, QFontEngineBox, QFontEngineMulti, QFontEngineFT, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 160 of file qfontengine_p.h.

Referenced by _hb_qt_font_get_glyph_h_advance(), QRawFont::advancesForGlyphIndexes(), applyVisibilityRules(), getGlyphPositions(), and set().

+ Here is the caller graph for this function:

◆ removeGlyphFromCache()

void QFontEngine::removeGlyphFromCache ( glyph_t  )
virtual

Reimplemented in QFontEngineFT.

Definition at line 900 of file qfontengine.cpp.

◆ scriptRequiresOpenType()

static bool QFontEngine::scriptRequiresOpenType ( QChar::Script  script)
inlinestatic

Definition at line 229 of file qfontengine_p.h.

References QChar::Script_Khmer, QChar::Script_Nko, QChar::Script_Sinhala, and QChar::Script_Syriac.

Referenced by supportsScript().

+ Here is the caller graph for this function:

◆ setDefaultHintStyle()

virtual void QFontEngine::setDefaultHintStyle ( HintStyle  )
inlinevirtual

Reimplemented in QFontEngineFT.

Definition at line 255 of file qfontengine_p.h.

◆ setGlyphCache()

void QFontEngine::setGlyphCache ( const void key,
QFontEngineGlyphCache data 
)

Definition at line 966 of file qfontengine.cpp.

References cache, caches, context, e, and Q_ASSERT.

Referenced by QDirectFbBlitter::drawCachedGlyphs(), QRasterPaintEngine::drawCachedGlyphs(), and QOpenGL2PaintEngineExPrivate::drawCachedGlyphs().

+ Here is the caller graph for this function:

◆ stringToCMap()

virtual bool QFontEngine::stringToCMap ( const QChar str,
int  len,
QGlyphLayout glyphs,
int *  nglyphs,
ShaperFlags  flags 
) const
pure virtual

Implemented in QCoreTextFontEngine, QFontEngineFT, QFontEngineBox, QFontEngineMulti, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Referenced by QRawFont::glyphIndexesForChars(), and QRawFont::glyphIndexesForString().

+ Here is the caller graph for this function:

◆ subPixelPositionFor()

QFixedPoint QFontEngine::subPixelPositionFor ( const QFixedPoint position) const
virtual

Definition at line 835 of file qfontengine.cpp.

References QFixed::fromFixed(), m_subPixelPositionCount, position(), supportsHorizontalSubPixelPositions(), and supportsVerticalSubPixelPositions().

Referenced by QRasterPaintEngine::drawCachedGlyphs(), QOpenGL2PaintEngineExPrivate::drawCachedGlyphs(), and QTextureGlyphCache::populate().

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

◆ subPixelPositionForX()

QFixed QFontEngine::subPixelPositionForX ( QFixed  x) const
inline

Definition at line 150 of file qfontengine_p.h.

Referenced by QDirectFbBlitter::drawCachedGlyphs(), and QSGTextMaskMaterial::populate().

+ Here is the caller graph for this function:

◆ supportsHorizontalSubPixelPositions()

virtual bool QFontEngine::supportsHorizontalSubPixelPositions ( ) const
inlinevirtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, and QWindowsFontEngineDirectWrite.

Definition at line 147 of file qfontengine_p.h.

Referenced by alphaMapForGlyph(), QSGTextMaskMaterial::populate(), and subPixelPositionFor().

+ Here is the caller graph for this function:

◆ supportsScript()

bool QFontEngine::supportsScript ( QChar::Script  script) const

Definition at line 171 of file qfontengine.cpp.

References getSfntTableData(), hb_qt_face_get_for_engine(), hb_qt_script_to_script(), MAKE_TAG, Multi, scriptRequiresOpenType(), and type().

+ Here is the call graph for this function:

◆ supportsSubPixelPositions()

bool QFontEngine::supportsSubPixelPositions ( ) const
inline

Definition at line 143 of file qfontengine_p.h.

Referenced by QOpenGL2PaintEngineExPrivate::drawCachedGlyphs(), initializeHeightMetrics(), and QTextureGlyphCache::populate().

+ Here is the caller graph for this function:

◆ supportsTransformation()

bool QFontEngine::supportsTransformation ( const QTransform transform) const
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, and QWindowsFontEngine.

Definition at line 245 of file qfontengine.cpp.

References QTransform::TxProject.

Referenced by draw_text_item_win(), QOpenGL2PaintEngineExPrivate::drawCachedGlyphs(), QPainter::drawStaticText(), QRasterPaintEngine::drawTextItem(), QOpenGL2PaintEngineEx::shouldDrawCachedGlyphs(), and QRasterPaintEngine::shouldDrawCachedGlyphs().

+ Here is the caller graph for this function:

◆ supportsVerticalSubPixelPositions()

virtual bool QFontEngine::supportsVerticalSubPixelPositions ( ) const
inlinevirtual

Reimplemented in QCoreTextFontEngine, and QFontEngineFT.

Definition at line 148 of file qfontengine_p.h.

Referenced by alphaMapForGlyph(), QRasterPaintEngine::drawCachedGlyphs(), QOpenGL2PaintEngineExPrivate::drawCachedGlyphs(), QTextureGlyphCache::populate(), and subPixelPositionFor().

+ Here is the caller graph for this function:

◆ synthesized()

virtual int QFontEngine::synthesized ( ) const
inlinevirtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, and QWindowsFontEngine.

Definition at line 142 of file qfontengine_p.h.

Referenced by QPdfEnginePrivate::drawTextItem().

+ Here is the caller graph for this function:

◆ tightBoundingBox()

glyph_metrics_t QFontEngine::tightBoundingBox ( const QGlyphLayout glyphs)

◆ type()

◆ underlinePosition()

QFixed QFontEngine::underlinePosition ( ) const
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QFontEngineMulti, and QWindowsFontEngineDirectWrite.

Definition at line 146 of file qfontengine.cpp.

References lineThickness().

Referenced by QPainterPath::addText(), drawTextItemDecoration(), QRawFont::underlinePosition(), and QWindowsFontEngineDirectWrite::underlinePosition().

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

◆ xHeight()

QFixed QFontEngine::xHeight ( ) const
virtual

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QFontEngineMulti, QWindowsFontEngine, and QWindowsFontEngineDirectWrite.

Definition at line 231 of file qfontengine.cpp.

References boundingBox(), glyphIndex(), and glyph_metrics_t::height.

Referenced by QRawFont::xHeight(), QFontEngineFT::xHeight(), and QWindowsFontEngine::xHeight().

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

Member Data Documentation

◆ cache_cost

◆ face_

Holder QFontEngine::face_
mutable

Definition at line 306 of file qfontengine_p.h.

Referenced by hb_qt_face_get_for_engine(), and QFontEngineFT::init().

◆ faceData

struct QFontEngine::FaceData QFontEngine::faceData

◆ font_

Holder QFontEngine::font_
mutable

Definition at line 305 of file qfontengine_p.h.

Referenced by hb_qt_font_get_for_engine().

◆ fontDef

QFontDef QFontEngine::fontDef

Definition at line 270 of file qfontengine_p.h.

Referenced by QCoreTextFontEngine::QCoreTextFontEngine(), QCoreTextFontEngine::QCoreTextFontEngine(), QFontEngineFT::QFontEngineFT(), QFontEngineMulti::QFontEngineMulti(), QWindowsFontEngine::QWindowsFontEngine(), QWindowsFontEngineDirectWrite::QWindowsFontEngineDirectWrite(), _hb_qt_font_create(), QWindowsFontEngine::addGlyphsToPath(), QWindowsFontEngineDirectWrite::addGlyphsToPath(), QCoreTextFontEngine::addGlyphsToPath(), QCoreTextFontEngine::alphaMapBoundingBox(), QCoreTextRawFontEngine::cloneWithSize(), QCoreTextFontEngine::cloneWithSize(), QFontEngineFT::cloneWithSize(), QWindowsFontEngine::cloneWithSize(), QWindowsFontEngineDirectWrite::cloneWithSize(), QFontEngineFT::create(), QFontEngineFT::create(), QWindowsFontEngineDirectWrite::createHFONT(), QFontEngineMulti::createMultiFontEngine(), QCoreTextFontEngine::draw(), QPaintEngineEx::drawStaticTextItem(), QWindowsDirect2DPaintEngine::drawStaticTextItem(), QPdfEnginePrivate::drawTextItem(), QCoreGraphicsPaintEngine::drawTextItem(), QFontEngineMulti::ensureEngineAt(), QFontEngineMulti::ensureFallbackFamiliesQueried(), QRawFont::familyName(), QWindowsFontDatabase::fontEngine(), QWindowsFontDatabaseBase::fontEngine(), QWindowsDirect2DPaintEnginePrivate::fontFaceFromFontEngine(), QRawFont::fromFont(), QWindowsFontEngine::getCMap(), QCoreTextFontEngine::imageForGlyph(), QCoreTextFontEngine::init(), QFontEngineFT::init(), QWindowsFontEngine::initFontInfo(), QWindowsFontEngineDirectWrite::initFontInfo(), lineThickness(), QFontDatabasePrivate::load(), QCoreTextFontEngine::loadAdvancesForGlyphs(), QFontEngineMulti::loadEngine(), QFontEngineFT::loadGlyphSet(), minRightBearing(), QRawFont::pixelSize(), processHheaTable(), processOS2Table(), properties(), QFontEngineFT::properties(), QWindowsFontEngineDirectWrite::recalcAdvances(), QFontEngineMulti::setFallbackFamiliesList(), QRawFont::setPixelSize(), QCoreTextFontEngine::shouldAntialias(), QPaintEngineEx::shouldDrawCachedGlyphs(), QCoreTextFontEngine::shouldSmoothFont(), QRawFont::style(), QRawFont::styleName(), QFontEngineFT::synthesized(), QWindowsFontEngine::synthesized(), QFontSubset::toTruetype(), QWindowsFontDatabaseBase::EmbeddedFont::updateFromOS2Table(), and QRawFont::weight().

◆ fsType

◆ glyphFormat

◆ isSmoothlyScalable

bool QFontEngine::isSmoothlyScalable

Definition at line 316 of file qfontengine_p.h.

Referenced by QFontEngine(), and QQuickTextNode::addGlyphs().

◆ kerning_pairs

QList<KernPair> QFontEngine::kerning_pairs

Definition at line 326 of file qfontengine_p.h.

Referenced by doKerning(), and loadKerningPairs().

◆ m_ascent

◆ m_descent

◆ m_heightMetricsQueried

bool QFontEngine::m_heightMetricsQueried
mutableprotected

◆ m_leading

◆ m_subPixelPositionCount

int QFontEngine::m_subPixelPositionCount

◆ ref

◆ symbol


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