Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWindowsFontEngine Class Reference

Standard Windows font engine. More...

#include <qwindowsfontengine_p.h>

+ Inheritance diagram for QWindowsFontEngine:
+ Collaboration diagram for QWindowsFontEngine:

Public Member Functions

 QWindowsFontEngine (const QString &name, LOGFONT lf, const QSharedPointer< QWindowsFontEngineData > &fontEngineData)
 
 ~QWindowsFontEngine () override
 
void initFontInfo (const QFontDef &request, int dpi)
 
QFixed lineThickness () const override
 
Properties properties () const override
 
void getUnscaledGlyph (glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics) override
 
FaceId faceId () const override
 
bool getSfntTableData (uint tag, uchar *buffer, uint *length) const override
 Returns true if the font table idetified by tag exists in the font; returns false otherwise.
 
int synthesized () const override
 
QFixed emSquareSize () const override
 
glyph_t glyphIndex (uint ucs4) const override
 
bool stringToCMap (const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs, ShaperFlags flags) const override
 
void recalcAdvances (QGlyphLayout *glyphs, ShaperFlags) const override
 
void addOutlineToPath (qreal x, qreal y, const QGlyphLayout &glyphs, QPainterPath *path, QTextItem::RenderFlags flags) override
 
void addGlyphsToPath (glyph_t *glyphs, QFixedPoint *positions, int nglyphs, QPainterPath *path, QTextItem::RenderFlags flags) override
 
HGDIOBJ selectDesignFont () const
 
glyph_metrics_t boundingBox (glyph_t g) override
 
glyph_metrics_t boundingBox (glyph_t g, const QTransform &t) override
 
QFixed xHeight () const override
 
QFixed capHeight () const override
 
QFixed averageCharWidth () const override
 
qreal maxCharWidth () const override
 
qreal minLeftBearing () const override
 
qreal minRightBearing () const override
 
QImage alphaMapForGlyph (glyph_t t) override
 
QImage alphaMapForGlyph (glyph_t, const QTransform &xform) override
 
QImage alphaRGBMapForGlyph (glyph_t t, const QFixedPoint &subPixelPosition, const QTransform &xform) override
 
glyph_metrics_t alphaMapBoundingBox (glyph_t glyph, const QFixedPoint &, const QTransform &matrix, GlyphFormat) override
 
QFontEnginecloneWithSize (qreal pixelSize) const override
 
Qt::HANDLE handle () const override
 
bool supportsTransformation (const QTransform &transform) const override
 
void getGlyphBearings (glyph_t glyph, qreal *leftBearing=nullptr, qreal *rightBearing=nullptr) override
 
bool hasUnreliableGlyphOutline () const override
 
int getGlyphIndexes (const QChar *ch, int numChars, QGlyphLayout *glyphs) const
 
void getCMap ()
 
bool getOutlineMetrics (glyph_t glyph, const QTransform &t, glyph_metrics_t *metrics) const
 
const QSharedPointer< QWindowsFontEngineData > & fontEngineData () const
 
void setUniqueFamilyName (const QString &newName)
 
- Public Member Functions inherited from QFontEngine
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)
 

Protected Member Functions

void initializeHeightMetrics () const override
 
- Protected Member Functions inherited from QFontEngine
 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
 

Additional Inherited Members

- Public Types inherited from QFontEngine
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
}
 
- Static Public Member Functions inherited from QFontEngine
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 inherited from QFontEngine
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 Attributes inherited from QFontEngine
QFixed m_ascent
 
QFixed m_descent
 
QFixed m_leading
 
bool m_heightMetricsQueried
 

Detailed Description

Standard Windows font engine.

Will probably be superseded by a common Free Type font engine in Qt 5.X.

Definition at line 31 of file qwindowsfontengine_p.h.

Constructor & Destructor Documentation

◆ QWindowsFontEngine()

QWindowsFontEngine::QWindowsFontEngine ( const QString name,
LOGFONT  lf,
const QSharedPointer< QWindowsFontEngineData > &  fontEngineData 
)

Definition at line 179 of file qwindowsfontengine.cpp.

References QFontEngine::cache_cost, QFontDef::fixedPitch, QFontEngine::fontDef, getCMap(), QWindowsFontEngineData::hdc, QFontDef::pixelSize, qCDebug, qErrnoWarning(), qPrintable, and QWindowsFontDatabaseBase::systemFont().

+ Here is the call graph for this function:

◆ ~QWindowsFontEngine()

QWindowsFontEngine::~QWindowsFontEngine ( )
override

Definition at line 213 of file qwindowsfontengine.cpp.

References QWindowsFontEngineData::hdc, QString::isEmpty(), pi, QGuiApplicationPrivate::platformIntegration(), qCDebug, qErrnoWarning(), and QWindowsFontDatabaseBase::systemFont().

+ Here is the call graph for this function:

Member Function Documentation

◆ addGlyphsToPath()

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

Reimplemented from QFontEngine.

Definition at line 746 of file qwindowsfontengine.cpp.

References addGlyphToPath(), QFontEngine::fontDef, QWindowsFontEngineData::hdc, i, QFontDef::pixelSize, positions, and QFontDef::stretch.

+ Here is the call graph for this function:

◆ addOutlineToPath()

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

Reimplemented from QFontEngine.

Definition at line 776 of file qwindowsfontengine.cpp.

References QFontEngine::addBitmapFontToPath(), and QFontEngine::addOutlineToPath().

+ Here is the call graph for this function:

◆ alphaMapBoundingBox()

glyph_metrics_t QWindowsFontEngine::alphaMapBoundingBox ( glyph_t  glyph,
const QFixedPoint ,
const QTransform matrix,
GlyphFormat  format 
)
overridevirtual

Reimplemented from QFontEngine.

Definition at line 985 of file qwindowsfontengine.cpp.

References boundingBox(), QFontEngine::Format_A32, QFontEngine::Format_ARGB, QFontEngine::glyphMargin(), glyph_metrics_t::height, and glyph_metrics_t::width.

+ Here is the call graph for this function:

◆ alphaMapForGlyph() [1/2]

QImage QWindowsFontEngine::alphaMapForGlyph ( glyph_t  glyph)
inlineoverridevirtual

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 from QFontEngine.

Definition at line 71 of file qwindowsfontengine_p.h.

References alphaMapForGlyph().

Referenced by alphaMapForGlyph().

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

◆ alphaMapForGlyph() [2/2]

QImage QWindowsFontEngine::alphaMapForGlyph ( glyph_t  glyph,
const QTransform xform 
)
overridevirtual

Reimplemented from QFontEngine.

Definition at line 999 of file qwindowsfontengine.cpp.

References QWindowsFontEngineData::clearTypeEnabled, font, QImage::Format_Alpha8, QImage::Format_RGB16, QImage::Format_RGB32, QWindowsFontEngineData::pow_gamma, qGray(), QImage::scanLine(), QWindowsNativeImage::systemFormat(), and xform.

+ Here is the call graph for this function:

◆ alphaRGBMapForGlyph()

QImage QWindowsFontEngine::alphaRGBMapForGlyph ( glyph_t  t,
const QFixedPoint subPixelPosition,
const QTransform xform 
)
overridevirtual

Reimplemented from QFontEngine.

Definition at line 1053 of file qwindowsfontengine.cpp.

References QImage::depth(), font, QFontEngine::Format_A32, QImage::Format_RGB32, QFontEngine::glyphMargin(), QImage::scanLine(), SPI_GETFONTSMOOTHINGCONTRAST, and SPI_SETFONTSMOOTHINGCONTRAST.

+ Here is the call graph for this function:

◆ averageCharWidth()

QFixed QWindowsFontEngine::averageCharWidth ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 493 of file qwindowsfontengine.cpp.

◆ boundingBox() [1/2]

glyph_metrics_t QWindowsFontEngine::boundingBox ( glyph_t  g)
inlineoverridevirtual

Implements QFontEngine.

Definition at line 60 of file qwindowsfontengine_p.h.

References boundingBox().

Referenced by alphaMapBoundingBox(), and boundingBox().

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

◆ boundingBox() [2/2]

glyph_metrics_t QWindowsFontEngine::boundingBox ( glyph_t  g,
const QTransform t 
)
overridevirtual

Reimplemented from QFontEngine.

Definition at line 408 of file qwindowsfontengine.cpp.

References ch, QFixed::fromReal(), getOutlineMetrics(), QWindowsFontEngineData::hdc, qRound(), and glyph_metrics_t::transformed().

+ Here is the call graph for this function:

◆ capHeight()

QFixed QWindowsFontEngine::capHeight ( ) const
overridevirtual

Implements QFontEngine.

Definition at line 472 of file qwindowsfontengine.cpp.

References QFontEngine::calculatedCapHeight(), capHeight(), QByteArray::constData(), QFontEngine::getSfntTable(), MAKE_TAG, and QByteArray::size().

Referenced by capHeight().

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

◆ cloneWithSize()

QFontEngine * QWindowsFontEngine::cloneWithSize ( qreal  pixelSize) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 1089 of file qwindowsfontengine.cpp.

References QWindowsFontDatabase::createEngine(), QWindowsFontDatabaseBase::defaultVerticalDPI(), QFontDef::families, QFontEngine::fontDef, QString::fromWCharArray(), QString::isEmpty(), pi, QGuiApplicationPrivate::platformIntegration(), request, and setUniqueFamilyName().

+ Here is the call graph for this function:

◆ emSquareSize()

QFixed QWindowsFontEngine::emSquareSize ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 825 of file qwindowsfontengine.cpp.

◆ faceId()

QFontEngine::FaceId QWindowsFontEngine::faceId ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 792 of file qwindowsfontengine.cpp.

◆ fontEngineData()

const QSharedPointer< QWindowsFontEngineData > & QWindowsFontEngine::fontEngineData ( ) const
inline

Definition at line 96 of file qwindowsfontengine_p.h.

◆ getCMap()

void QWindowsFontEngine::getCMap ( )

Definition at line 97 of file qwindowsfontengine.cpp.

References QByteArray::constData(), QFile::encodeName(), QFontEngine::FaceId::filename, QFontEngine::fontDef, QFixed::fromReal(), QFontEngine::fsType, QFontEngine::getCMap(), getOutlineTextMetric(), QFontEngine::getSfntTable(), QWindowsFontEngineData::hdc, QFontEngine::FaceId::index, QFontEngine::loadKerningPairs(), MAKE_TAG, QFontDef::pixelSize, QByteArray::size(), stringFromOutLineTextMetric(), and QFontEngine::symbol.

Referenced by QWindowsFontEngine().

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

◆ getGlyphBearings()

void QWindowsFontEngine::getGlyphBearings ( glyph_t  glyph,
qreal leftBearing = nullptr,
qreal rightBearing = nullptr 
)
overridevirtual

Reimplemented from QFontEngine.

Definition at line 529 of file qwindowsfontengine.cpp.

References QFontEngine::getGlyphBearings(), and QWindowsFontEngineData::hdc.

+ Here is the call graph for this function:

◆ getGlyphIndexes()

int QWindowsFontEngine::getGlyphIndexes ( const QChar ch,
int  numChars,
QGlyphLayout glyphs 
) const

Definition at line 135 of file qwindowsfontengine.cpp.

References QFontEngine::getTrueTypeGlyphIndex(), QGlyphLayout::glyphs, it, QGlyphLayout::numGlyphs, str, and QFontEngine::symbol.

Referenced by stringToCMap().

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

◆ getOutlineMetrics()

bool QWindowsFontEngine::getOutlineMetrics ( glyph_t  glyph,
const QTransform t,
glyph_metrics_t metrics 
) const

Definition at line 355 of file qwindowsfontengine.cpp.

References QWindowsFontEngineData::hdc, Q_ASSERT, QTransform::TxTranslate, and xform.

Referenced by boundingBox().

+ Here is the caller graph for this function:

◆ getSfntTableData()

bool QWindowsFontEngine::getSfntTableData ( uint  tag,
uchar buffer,
uint length 
) const
overridevirtual

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 from QFontEngine.

Definition at line 875 of file qwindowsfontengine.cpp.

References QWindowsFontEngineData::hdc, Q_ASSERT, and tag.

◆ getUnscaledGlyph()

void QWindowsFontEngine::getUnscaledGlyph ( glyph_t  glyph,
QPainterPath path,
glyph_metrics_t metrics 
)
overridevirtual

Reimplemented from QFontEngine.

Definition at line 857 of file qwindowsfontengine.cpp.

References addGlyphToPath(), QWindowsFontEngineData::hdc, synthesized(), and QFontEngine::SynthesizedItalic.

+ Here is the call graph for this function:

◆ glyphIndex()

glyph_t QWindowsFontEngine::glyphIndex ( uint  ucs4) const
overridevirtual

Implements QFontEngine.

Definition at line 236 of file qwindowsfontengine.cpp.

References QFontEngine::getTrueTypeGlyphIndex(), and QFontEngine::symbol.

+ Here is the call graph for this function:

◆ handle()

Qt::HANDLE QWindowsFontEngine::handle ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 1115 of file qwindowsfontengine.cpp.

◆ hasUnreliableGlyphOutline()

bool QWindowsFontEngine::hasUnreliableGlyphOutline ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 556 of file qwindowsfontengine.cpp.

References QFontEngine::hasUnreliableGlyphOutline().

+ Here is the call graph for this function:

◆ initFontInfo()

void QWindowsFontEngine::initFontInfo ( const QFontDef request,
int  dpi 
)

Definition at line 1120 of file qwindowsfontengine.cpp.

References QFontDef::families, QFontDef::fixedPitch, QFontEngine::fontDef, QString::fromWCharArray(), QWindowsFontEngineData::hdc, QFontDef::pixelSize, QFontDef::pointSize, qRound(), and request.

Referenced by QWindowsFontDatabase::createEngine().

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

◆ initializeHeightMetrics()

void QWindowsFontEngine::initializeHeightMetrics ( ) const
overrideprotectedvirtual

Reimplemented from QFontEngine.

Definition at line 547 of file qwindowsfontengine.cpp.

References QFontEngine::initializeHeightMetrics(), QFontEngine::m_ascent, QFontEngine::m_descent, and QFontEngine::m_leading.

+ Here is the call graph for this function:

◆ lineThickness()

QFixed QWindowsFontEngine::lineThickness ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 61 of file qwindowsfontengine.cpp.

References QFontEngine::lineThickness().

+ Here is the call graph for this function:

◆ maxCharWidth()

qreal QWindowsFontEngine::maxCharWidth ( ) const
overridevirtual

Implements QFontEngine.

Definition at line 498 of file qwindowsfontengine.cpp.

◆ minLeftBearing()

qreal QWindowsFontEngine::minLeftBearing ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 561 of file qwindowsfontengine.cpp.

References minRightBearing().

+ Here is the call graph for this function:

◆ minRightBearing()

qreal QWindowsFontEngine::minRightBearing ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 569 of file qwindowsfontengine.cpp.

References char_table, char_table_entries, QWindowsFontEngineData::hdc, i, max_font_count, qFloor(), and qMin().

Referenced by minLeftBearing().

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

◆ properties()

QFontEngine::Properties QWindowsFontEngine::properties ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 830 of file qwindowsfontengine.cpp.

References QFontEngine::convertToPostscriptFontFamilyName(), getOutlineTextMetric(), QWindowsFontEngineData::hdc, stringFromOutLineTextMetric(), and QString::toLatin1().

+ Here is the call graph for this function:

◆ recalcAdvances()

void QWindowsFontEngine::recalcAdvances ( QGlyphLayout glyphs,
ShaperFlags   
) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 284 of file qwindowsfontengine.cpp.

References QGlyphLayout::advances, calculateTTFGlyphWidth(), ch, QFontEngine::DesignMetrics, QGlyphLayout::glyphs, QWindowsFontEngineData::hdc, QChar::highSurrogate(), i, QChar::lowSurrogate(), QGlyphLayout::numGlyphs, Q_CHECK_PTR(), QChar::requiresSurrogates(), selectDesignFont(), SIZE, and QFixed::value().

Referenced by stringToCMap().

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

◆ selectDesignFont()

HGDIOBJ QWindowsFontEngine::selectDesignFont ( ) const

Definition at line 253 of file qwindowsfontengine.cpp.

References QWindowsFontEngineData::hdc.

Referenced by recalcAdvances().

+ Here is the caller graph for this function:

◆ setUniqueFamilyName()

void QWindowsFontEngine::setUniqueFamilyName ( const QString newName)
inline

Definition at line 98 of file qwindowsfontengine_p.h.

Referenced by cloneWithSize().

+ Here is the caller graph for this function:

◆ stringToCMap()

bool QWindowsFontEngine::stringToCMap ( const QChar str,
int  len,
QGlyphLayout glyphs,
int *  nglyphs,
ShaperFlags  flags 
) const
overridevirtual

Implements QFontEngine.

Definition at line 262 of file qwindowsfontengine.cpp.

References getGlyphIndexes(), QFontEngine::GlyphIndicesOnly, QGlyphLayout::numGlyphs, Q_ASSERT, recalcAdvances(), and str.

+ Here is the call graph for this function:

◆ supportsTransformation()

bool QWindowsFontEngine::supportsTransformation ( const QTransform transform) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 1137 of file qwindowsfontengine.cpp.

References QTransform::TxTranslate.

◆ synthesized()

QT_BEGIN_INCLUDE_NAMESPACE QT_END_INCLUDE_NAMESPACE int QWindowsFontEngine::synthesized ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 801 of file qwindowsfontengine.cpp.

References QFontEngine::fontDef, QWindowsFontEngineData::hdc, MAKE_LITTLE_ENDIAN_TAG, qt_getUShort(), QFontDef::stretch, QFontEngine::SynthesizedBold, QFontEngine::SynthesizedItalic, and QFontEngine::SynthesizedStretch.

Referenced by getUnscaledGlyph().

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

◆ xHeight()

QFixed QWindowsFontEngine::xHeight ( ) const
overridevirtual

Reimplemented from QFontEngine.

Definition at line 486 of file qwindowsfontengine.cpp.

References QFontEngine::xHeight().

+ Here is the call graph for this function:

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