QtBase  v6.3.1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
QFontEngine Class Referenceabstract

#include <qfontengine_p.h>

Inheritance diagram for QFontEngine:
Inheritance graph
[legend]
Collaboration diagram for QFontEngine:
Collaboration graph
[legend]

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
 
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 (const 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)=0
 
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 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 87 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 111 of file qfontengine_p.h.

◆ HintStyle

Enumerator
HintNone 
HintLight 
HintMedium 
HintFull 

Definition at line 285 of file qfontengine_p.h.

◆ ShaperFlag

Enumerator
DesignMetrics 
GlyphIndicesOnly 

Definition at line 120 of file qfontengine_p.h.

◆ SubpixelAntialiasingType

Enumerator
Subpixel_None 
Subpixel_RGB 
Subpixel_BGR 
Subpixel_VRGB 
Subpixel_VBGR 

Definition at line 293 of file qfontengine_p.h.

◆ SynthesizedFlags

Enumerator
SynthesizedItalic 
SynthesizedBold 
SynthesizedStretch 

Definition at line 173 of file qfontengine_p.h.

◆ Type

Enumerator
Box 
Multi 
Win 
Mac 
Freetype 
QPF1 
QPF2 
Proxy 
DirectWrite 
TestFontEngine 

Definition at line 90 of file qfontengine_p.h.

Constructor & Destructor Documentation

◆ ~QFontEngine()

QFontEngine::~QFontEngine ( )
virtual

Definition at line 172 of file qfontengine.cpp.

Here is the call graph for this function:

◆ QFontEngine()

QFontEngine::QFontEngine ( Type  type)
explicitprotected

Definition at line 147 of file qfontengine.cpp.

Member Function Documentation

◆ addBitmapFontToPath()

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

Definition at line 746 of file qfontengine.cpp.

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 QCoreTextFontEngine, QWindowsFontEngineDirectWrite, QWindowsFontEngine, and QFontEngineFT.

Definition at line 795 of file qfontengine.cpp.

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 QFontEngineMulti, QWindowsFontEngine, QFontEngineBox, and QFontEngineFT.

Definition at line 639 of file qfontengine.cpp.

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 QFontEngineFT, QWindowsFontEngineDirectWrite, QWindowsFontEngine, and QCoreTextFontEngine.

Definition at line 221 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ alphaMapForGlyph() [1/4]

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

Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngineDirectWrite, and QFontEngineMulti.

Definition at line 812 of file qfontengine.cpp.

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 QFontEngineMulti, QFontEngineBox, QWindowsFontEngine, and QFontEngineFT.

Definition at line 893 of file qfontengine.cpp.

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 QFontEngineMulti, QWindowsFontEngineDirectWrite, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 828 of file qfontengine.cpp.

Here is the call graph for this function:

◆ alphaMapForGlyph() [4/4]

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

Reimplemented in QWindowsFontEngine, and QFontEngineMulti.

Definition at line 818 of file qfontengine.cpp.

Here is the call graph for this function:

◆ alphaRGBMapForGlyph()

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

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

Definition at line 841 of file qfontengine.cpp.

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

◆ ascent()

QFixed QFontEngine::ascent ( ) const
virtual

Reimplemented in QFontEngineMulti, and QFontEngineBox.

Definition at line 514 of file qfontengine.cpp.

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

◆ averageCharWidth()

QFixed QFontEngine::averageCharWidth ( ) const
virtual

Reimplemented in QWindowsFontEngine, QFontEngineMulti, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 287 of file qfontengine.cpp.

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 QWindowsFontEngineDirectWrite, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 858 of file qfontengine.cpp.

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

◆ boundingBox() [1/3]

virtual glyph_metrics_t QFontEngine::boundingBox ( const QGlyphLayout glyphs)
pure virtual

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

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 QFontEngineFT, and QWindowsFontEngine.

Definition at line 263 of file qfontengine.cpp.

Here is the call graph for this function:

◆ calculatedCapHeight()

QFixed QFontEngine::calculatedCapHeight ( ) const
protected

Definition at line 273 of file qfontengine.cpp.

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 QFontEngineMulti, QFontEngineBox, and QCoreTextFontEngine.

Definition at line 252 of file qfontengine.cpp.

Here is the call graph for this function:

◆ canRender() [2/2]

bool QFontEngine::canRender ( uint  ucs4) const
inline

Definition at line 249 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ capHeight()

virtual QFixed QFontEngine::capHeight ( ) const
pure virtual

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

Here is the caller graph for this function:

◆ clearGlyphCache()

void QFontEngine::clearGlyphCache ( const void key)

Definition at line 991 of file qfontengine.cpp.

Here is the call graph for this function:

◆ cloneWithSize()

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

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

Definition at line 257 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ convertToPostscriptFontFamilyName()

QByteArray QFontEngine::convertToPostscriptFontFamilyName ( const QByteArray fontFamily)
static

Definition at line 1476 of file qfontengine.cpp.

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

◆ descent()

QFixed QFontEngine::descent ( ) const
virtual

Reimplemented in QFontEngineMulti, and QFontEngineBox.

Definition at line 522 of file qfontengine.cpp.

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 QCoreTextFontEngine, QFontEngineMulti, and QFontEngineFT.

Definition at line 1057 of file qfontengine.cpp.

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 QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 191 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ expectsGammaCorrectedBlending()

bool QFontEngine::expectsGammaCorrectedBlending ( ) const
virtual

Reimplemented in QFontEngineFT, and QCoreTextFontEngine.

Definition at line 299 of file qfontengine.cpp.

◆ faceId()

virtual FaceId QFontEngine::faceId ( ) const
inlinevirtual

Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 172 of file qfontengine_p.h.

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 1184 of file qfontengine.cpp.

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 QWindowsFontEngine, and QFontEngineMulti.

Definition at line 422 of file qfontengine.cpp.

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

◆ getGlyphPositions()

void QFontEngine::getGlyphPositions ( const QGlyphLayout glyphs,
const QTransform matrix,
QTextItem::RenderFlags  flags,
QVarLengthArray< glyph_t > &  glyphs_out,
QVarLengthArray< QFixedPoint > &  positions 
)

Definition at line 304 of file qfontengine.cpp.

◆ getPointInOutline()

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

Reimplemented in QFontEngineFT.

Definition at line 104 of file qfontengine.cpp.

Here is the call graph for this function:

◆ getSfntTable()

QByteArray QFontEngine::getSfntTable ( uint  tag) const

Definition at line 979 of file qfontengine.cpp.

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 QCoreTextFontEngine, QWindowsFontEngineDirectWrite, QWindowsFontEngine, and QFontEngineFT.

Definition at line 971 of file qfontengine.cpp.

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

◆ getTrueTypeGlyphIndex()

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

Definition at line 1341 of file qfontengine.cpp.

Here is the caller graph for this function:

◆ getUnscaledGlyph()

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

Reimplemented in QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 951 of file qfontengine.cpp.

Here is the call graph for this function:

◆ glyphCache()

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

Definition at line 1017 of file qfontengine.cpp.

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 1165 of file qfontengine.cpp.

Here is the call 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 885 of file qfontengine.cpp.

◆ glyphIndex()

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

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

Here is the caller graph for this function:

◆ glyphMargin()

virtual int QFontEngine::glyphMargin ( GlyphFormat  format)
inlinevirtual

Reimplemented in QFontEngineFT, and QCoreTextFontEngine.

Definition at line 255 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ handle()

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

Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 1179 of file qfontengine.cpp.

Here is the caller graph for this function:

◆ harfbuzzFace()

void * QFontEngine::harfbuzzFace ( ) const

Definition at line 208 of file qfontengine.cpp.

Here is the call graph for this function:

◆ harfbuzzFont()

void * QFontEngine::harfbuzzFont ( ) const

Definition at line 198 of file qfontengine.cpp.

Here is the call graph for this function:

◆ hasInternalCaching()

virtual bool QFontEngine::hasInternalCaching ( ) const
inlinevirtual

Reimplemented in QFontEngineFT.

Definition at line 219 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ hasUnreliableGlyphOutline()

bool QFontEngine::hasUnreliableGlyphOutline ( ) const
virtual

Reimplemented in QWindowsFontEngine.

Definition at line 1496 of file qfontengine.cpp.

Here is the caller graph for this function:

◆ initializeHeightMetrics()

void QFontEngine::initializeHeightMetrics ( ) const
protectedvirtual

Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 455 of file qfontengine.cpp.

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 1502 of file qfontengine.cpp.

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

◆ leading()

QFixed QFontEngine::leading ( ) const
virtual

Reimplemented in QFontEngineMulti, and QFontEngineBox.

Definition at line 506 of file qfontengine.cpp.

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

◆ lineThickness()

QFixed QFontEngine::lineThickness ( ) const
virtual

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

Definition at line 180 of file qfontengine.cpp.

Here is the caller graph for this function:

◆ loadKerningPairs()

void QFontEngine::loadKerningPairs ( QFixed  scalingFactor)

Definition at line 1074 of file qfontengine.cpp.

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 QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineBox, QFontEngineFT, and QCoreTextFontEngine.

Here is the caller graph for this function:

◆ minLeftBearing()

qreal QFontEngine::minLeftBearing ( ) const
virtual

Reimplemented in QWindowsFontEngine, QFontEngineMulti, and QFontEngineBox.

Definition at line 530 of file qfontengine.cpp.

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

◆ minRightBearing()

qreal QFontEngine::minRightBearing ( ) const
virtual

Reimplemented in QWindowsFontEngine, QFontEngineMulti, and QFontEngineBox.

Definition at line 543 of file qfontengine.cpp.

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 431 of file qfontengine.cpp.

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 472 of file qfontengine.cpp.

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 QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 934 of file qfontengine.cpp.

Here is the call graph for this function:

◆ recalcAdvances()

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

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

Definition at line 196 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ removeGlyphFromCache()

void QFontEngine::removeGlyphFromCache ( glyph_t  )
virtual

Reimplemented in QFontEngineFT.

Definition at line 930 of file qfontengine.cpp.

◆ scriptRequiresOpenType()

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

Definition at line 265 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ setDefaultHintStyle()

virtual void QFontEngine::setDefaultHintStyle ( HintStyle  )
inlinevirtual

Reimplemented in QFontEngineFT.

Definition at line 291 of file qfontengine_p.h.

◆ setGlyphCache()

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

Definition at line 996 of file qfontengine.cpp.

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 QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineBox, QFontEngineFT, and QCoreTextFontEngine.

Here is the caller graph for this function:

◆ subPixelPositionFor()

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

Definition at line 865 of file qfontengine.cpp.

Here is the call graph for this function:

◆ subPixelPositionForX()

QFixed QFontEngine::subPixelPositionForX ( const QFixed x) const
inline

Definition at line 186 of file qfontengine_p.h.

◆ supportsHorizontalSubPixelPositions()

virtual bool QFontEngine::supportsHorizontalSubPixelPositions ( ) const
inlinevirtual

Reimplemented in QWindowsFontEngineDirectWrite, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 183 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ supportsScript()

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

Definition at line 218 of file qfontengine.cpp.

Here is the call graph for this function:

◆ supportsSubPixelPositions()

bool QFontEngine::supportsSubPixelPositions ( ) const
inline

Definition at line 179 of file qfontengine_p.h.

◆ supportsTransformation()

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

Reimplemented in QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 294 of file qfontengine.cpp.

Here is the caller graph for this function:

◆ supportsVerticalSubPixelPositions()

virtual bool QFontEngine::supportsVerticalSubPixelPositions ( ) const
inlinevirtual

Reimplemented in QFontEngineFT, and QCoreTextFontEngine.

Definition at line 184 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ synthesized()

virtual int QFontEngine::synthesized ( ) const
inlinevirtual

Reimplemented in QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 178 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ tightBoundingBox()

glyph_metrics_t QFontEngine::tightBoundingBox ( const QGlyphLayout glyphs)

Definition at line 612 of file qfontengine.cpp.

Here is the call graph for this function:

◆ type()

Type QFontEngine::type ( ) const
inline

Definition at line 144 of file qfontengine_p.h.

Here is the caller graph for this function:

◆ underlinePosition()

QFixed QFontEngine::underlinePosition ( ) const
virtual

Reimplemented in QWindowsFontEngineDirectWrite, QFontEngineMulti, QFontEngineFT, and QCoreTextFontEngine.

Definition at line 193 of file qfontengine.cpp.

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

◆ xHeight()

QFixed QFontEngine::xHeight ( ) const
virtual

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

Definition at line 280 of file qfontengine.cpp.

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

Member Data Documentation

◆ cache_cost

uint QFontEngine::cache_cost

Definition at line 349 of file qfontengine_p.h.

◆ face_

Holder QFontEngine::face_
mutable

Definition at line 342 of file qfontengine_p.h.

◆ faceData

struct QFontEngine::FaceData QFontEngine::faceData

◆ font_

Holder QFontEngine::font_
mutable

Definition at line 341 of file qfontengine_p.h.

◆ fontDef

QFontDef QFontEngine::fontDef

Definition at line 306 of file qfontengine_p.h.

◆ fsType

uint QFontEngine::fsType

Definition at line 350 of file qfontengine_p.h.

◆ glyphFormat

GlyphFormat QFontEngine::glyphFormat

Definition at line 365 of file qfontengine_p.h.

◆ isSmoothlyScalable

bool QFontEngine::isSmoothlyScalable

Definition at line 352 of file qfontengine_p.h.

◆ kerning_pairs

QList<KernPair> QFontEngine::kerning_pairs

Definition at line 362 of file qfontengine_p.h.

◆ m_ascent

QFixed QFontEngine::m_ascent
mutableprotected

Definition at line 375 of file qfontengine_p.h.

◆ m_descent

QFixed QFontEngine::m_descent
mutableprotected

Definition at line 376 of file qfontengine_p.h.

◆ m_heightMetricsQueried

bool QFontEngine::m_heightMetricsQueried
mutableprotected

Definition at line 378 of file qfontengine_p.h.

◆ m_leading

QFixed QFontEngine::m_leading
mutableprotected

Definition at line 377 of file qfontengine_p.h.

◆ m_subPixelPositionCount

int QFontEngine::m_subPixelPositionCount

Definition at line 366 of file qfontengine_p.h.

◆ ref

QAtomicInt QFontEngine::ref

Definition at line 305 of file qfontengine_p.h.

◆ symbol

bool QFontEngine::symbol

Definition at line 351 of file qfontengine_p.h.


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