|
QFontEngine::FaceId | faceId () const override |
QFontEngine::Properties | properties () const override |
QFixed | emSquareSize () const override |
bool | supportsHorizontalSubPixelPositions () const override |
bool | supportsVerticalSubPixelPositions () 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 |
void | initializeHeightMetrics () const override |
QFixed | capHeight () const override |
QFixed | xHeight () const override |
QFixed | averageCharWidth () const override |
qreal | maxCharWidth () const override |
QFixed | lineThickness () const override |
QFixed | underlinePosition () const override |
glyph_t | glyphIndex (uint ucs4) const override |
QString | glyphName (glyph_t index) const override |
void | doKerning (QGlyphLayout *, ShaperFlags) const override |
void | getUnscaledGlyph (glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics) override |
bool | supportsTransformation (const QTransform &transform) const override |
void | addGlyphsToPath (glyph_t *glyphs, QFixedPoint *positions, int nglyphs, QPainterPath *path, QTextItem::RenderFlags flags) override |
void | addOutlineToPath (qreal x, qreal y, const QGlyphLayout &glyphs, QPainterPath *path, QTextItem::RenderFlags flags) override |
int | stringToCMap (const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs, ShaperFlags flags) const override |
glyph_metrics_t | boundingBox (const QGlyphLayout &glyphs) override |
glyph_metrics_t | boundingBox (glyph_t glyph) override |
glyph_metrics_t | boundingBox (glyph_t glyph, const QTransform &matrix) override |
void | recalcAdvances (QGlyphLayout *glyphs, ShaperFlags flags) const override |
QImage | alphaMapForGlyph (glyph_t g) override |
QImage | alphaMapForGlyph (glyph_t, const QFixedPoint &) override |
QImage | alphaMapForGlyph (glyph_t glyph, const QFixedPoint &subPixelPosition, const QTransform &t) override |
QImage | alphaRGBMapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &t) override |
QImage | bitmapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &t, const QColor &color) override |
glyph_metrics_t | alphaMapBoundingBox (glyph_t glyph, const QFixedPoint &subPixelPosition, const QTransform &matrix, QFontEngine::GlyphFormat format) override |
Glyph * | glyphData (glyph_t glyph, const QFixedPoint &subPixelPosition, GlyphFormat neededFormat, const QTransform &t) override |
bool | hasInternalCaching () const override |
bool | expectsGammaCorrectedBlending () const override |
void | removeGlyphFromCache (glyph_t glyph) override |
int | glyphMargin (QFontEngine::GlyphFormat) override |
int | glyphCount () const override |
QList< QFontVariableAxis > | variableAxes () const override |
FT_Face | lockFace (Scaling scale=Scaled) const |
void | unlockFace () const |
FT_Face | non_locked_face () const |
bool | drawAntialiased () const |
bool | invalid () const |
bool | isBitmapFont () const |
bool | isScalableBitmap () const |
Glyph * | loadGlyph (uint glyph, const QFixedPoint &subPixelPosition, GlyphFormat format=Format_None, bool fetchMetricsOnly=false, bool disableOutlineDrawing=false) const |
Glyph * | loadGlyph (QGlyphSet *set, uint glyph, const QFixedPoint &subPixelPosition, QColor color, GlyphFormat=Format_None, bool fetchMetricsOnly=false, bool disableOutlineDrawing=false) const |
Glyph * | loadGlyphFor (glyph_t g, const QFixedPoint &subPixelPosition, GlyphFormat format, const QTransform &t, QColor color, bool fetchBoundingBox=false, bool disableOutlineDrawing=false) |
QGlyphSet * | loadGlyphSet (const QTransform &matrix) |
| QFontEngineFT (const QFontDef &fd) |
virtual | ~QFontEngineFT () |
bool | init (FaceId faceId, bool antiaalias, GlyphFormat defaultFormat=Format_None, const QByteArray &fontData=QByteArray()) |
bool | init (FaceId faceId, bool antialias, GlyphFormat format, QFreetypeFace *freetypeFace) |
int | getPointInOutline (glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints) override |
void | setQtDefaultHintStyle (QFont::HintingPreference hintingPreference) |
void | setDefaultHintStyle (HintStyle style) override |
QFontEngine * | cloneWithSize (qreal pixelSize) const override |
Qt::HANDLE | handle () const override |
bool | initFromFontEngine (const QFontEngineFT *fontEngine) |
HintStyle | defaultHintStyle () const |
virtual | ~QFontEngine () |
Type | type () const |
QByteArray | getSfntTable (uint tag) const |
bool | supportsSubPixelPositions () const |
virtual QFixedPoint | subPixelPositionFor (const QFixedPoint &position) const |
QFixed | subPixelPositionForX (QFixed x) const |
bool | preferTypoLineMetrics () const |
bool | isColorFont () const |
void | getGlyphPositions (const QGlyphLayout &glyphs, const QTransform &matrix, QTextItem::RenderFlags flags, QVarLengthArray< glyph_t > &glyphs_out, QVarLengthArray< QFixedPoint > &positions) |
void | addBitmapFontToPath (qreal x, qreal y, const QGlyphLayout &, QPainterPath *, QTextItem::RenderFlags) |
virtual QImage | alphaMapForGlyph (glyph_t, const QTransform &t) |
QImage | renderedPathForGlyph (glyph_t glyph, const QColor &color) |
glyph_metrics_t | tightBoundingBox (const QGlyphLayout &glyphs) |
virtual QFixed | ascent () const |
virtual QFixed | descent () const |
virtual QFixed | leading () const |
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 glyph_t | findGlyph (QLatin1StringView name) const |
void * | harfbuzzFont () const |
void * | harfbuzzFace () const |
bool | supportsScript (QChar::Script script) const |
void | clearGlyphCache (const void *key) |
void | setGlyphCache (const void *key, QFontEngineGlyphCache *data) |
QFontEngineGlyphCache * | glyphCache (const void *key, GlyphFormat format, const QTransform &transform, const QColor &color=QColor()) const |
virtual bool | hasUnreliableGlyphOutline () const |
void | loadKerningPairs (QFixed scalingFactor) |
Definition at line 113 of file qfontengine_ft_p.h.
bool QFontEngineFT::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 2109 of file qfontengine_ft.cpp.