QWindowsFontEngineDirectWrite Class
Windows font engine using Direct Write. More...
#include <QWindowsFontEngineDirectWrite> Inherits: QObject.
Public Functions
Reimplemented Public Functions
virtual void | addGlyphsToPath(glyph_t * glyphs, QFixedPoint * positions, int nglyphs, QPainterPath * path, QTextItem::RenderFlags flags) |
virtual QImage | alphaMapForGlyph(glyph_t glyph, QFixed subPixelPosition) |
virtual QImage | alphaRGBMapForGlyph(glyph_t t, QFixed subPixelPosition, const QTransform & xform) |
virtual QFixed | ascent() const |
virtual glyph_metrics_t | boundingBox(const QGlyphLayout & glyphs) |
virtual glyph_metrics_t | boundingBox(glyph_t g) |
virtual bool | canRender(const QChar * string, int len) |
virtual QFontEngine * | cloneWithSize(qreal pixelSize) const |
virtual QFixed | descent() const |
virtual QFixed | emSquareSize() const |
virtual bool | getSfntTableData(uint tag, uchar * buffer, uint * length) const |
virtual QFixed | leading() const |
virtual QFixed | lineThickness() const |
virtual qreal | maxCharWidth() const |
virtual const char * | name() const |
virtual void | recalcAdvances(QGlyphLayout * glyphs, QTextEngine::ShaperFlags) const |
virtual bool | stringToCMap(const QChar * str, int len, QGlyphLayout * glyphs, int * nglyphs, QTextEngine::ShaperFlags flags) const |
virtual bool | supportsSubPixelPositions() const |
virtual Type | type() const |
virtual QFixed | xHeight() const |
- 31 public functions inherited from QObject
Static Public Members
- 11 static public members inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signal inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
Windows font engine using Direct Write.
Font engine for subpixel positioned text on Windows Vista (with platform update) and Windows 7. If selected during configuration, the engine will be selected only when the hinting preference of a font is set to None or Vertical hinting. The font database uses most of the same logic but creates a direct write font based on the LOGFONT rather than a GDI handle.
The engine is currently regarded as experimental, meaning that code using it should do substantial testing to make sure it covers their use cases.
Will probably be superseded by a common Free Type font engine in Qt 5.X.
Member Function Documentation
QWindowsFontEngineDirectWrite::QWindowsFontEngineDirectWrite(IDWriteFontFace * directWriteFontFace, qreal pixelSize, const QSharedPointer<QWindowsFontEngineData> & d)
QWindowsFontEngineDirectWrite::~QWindowsFontEngineDirectWrite()
void QWindowsFontEngineDirectWrite::addGlyphsToPath(glyph_t * glyphs, QFixedPoint * positions, int nglyphs, QPainterPath * path, QTextItem::RenderFlags flags) [virtual]
QImage QWindowsFontEngineDirectWrite::alphaMapForGlyph(glyph_t glyph, QFixed subPixelPosition) [virtual]
QImage QWindowsFontEngineDirectWrite::alphaRGBMapForGlyph(glyph_t t, QFixed subPixelPosition, const QTransform & xform) [virtual]
QFixed QWindowsFontEngineDirectWrite::ascent() const [virtual]
glyph_metrics_t QWindowsFontEngineDirectWrite::boundingBox(const QGlyphLayout & glyphs) [virtual]
glyph_metrics_t QWindowsFontEngineDirectWrite::boundingBox(glyph_t g) [virtual]
bool QWindowsFontEngineDirectWrite::canRender(const QChar * string, int len) [virtual]
QFontEngine * QWindowsFontEngineDirectWrite::cloneWithSize(qreal pixelSize) const [virtual]
QFixed QWindowsFontEngineDirectWrite::descent() const [virtual]
QFixed QWindowsFontEngineDirectWrite::emSquareSize() const [virtual]
QString QWindowsFontEngineDirectWrite::fontNameSubstitute(const QString & familyName) [static]
bool QWindowsFontEngineDirectWrite::getSfntTableData(uint tag, uchar * buffer, uint * length) const [virtual]
void QWindowsFontEngineDirectWrite::initFontInfo(const QFontDef & request, int dpi, IDWriteFont * font)
QFixed QWindowsFontEngineDirectWrite::leading() const [virtual]
QFixed QWindowsFontEngineDirectWrite::lineThickness() const [virtual]
qreal QWindowsFontEngineDirectWrite::maxCharWidth() const [virtual]
const char * QWindowsFontEngineDirectWrite::name() const [virtual]
void QWindowsFontEngineDirectWrite::recalcAdvances(QGlyphLayout * glyphs, QTextEngine::ShaperFlags) const [virtual]
bool QWindowsFontEngineDirectWrite::stringToCMap(const QChar * str, int len, QGlyphLayout * glyphs, int * nglyphs, QTextEngine::ShaperFlags flags) const [virtual]
bool QWindowsFontEngineDirectWrite::supportsSubPixelPositions() const [virtual]
Type QWindowsFontEngineDirectWrite::type() const [virtual]
QFixed QWindowsFontEngineDirectWrite::xHeight() const [virtual]
|