|
| | QCoreTextFontEngine (CTFontRef font, const QFontDef &def) |
| | QCoreTextFontEngine (CGFontRef font, const QFontDef &def) |
| | ~QCoreTextFontEngine () |
| int | glyphCount () const override |
| glyph_t | glyphIndex (uint ucs4) const override |
| QString | glyphName (glyph_t indexindex) const override |
| glyph_t | findGlyph (QLatin1StringView namename) const override |
| int | stringToCMap (const QChar *str, int lenlen, QGlyphLayout *glyphs, int *nglyphs, ShaperFlags flagsflags) const override |
| void | recalcAdvances (QGlyphLayout *, ShaperFlags) const override |
| glyph_metrics_t | boundingBox (glyph_t glyph) override |
| QFixed | capHeight () const override |
| QFixed | xHeight () const override |
| qreal | maxCharWidth () const override |
| QFixed | averageCharWidth () const override |
| void | addGlyphsToPath (glyph_t *glyphs, QFixedPoint *positions, int numGlyphsnumGlyphs, QPainterPath *pathpath, QTextItem::RenderFlags) override |
| bool | canRender (const QChar *stringstring, int lenlen) const override |
| int | synthesized () const override |
| bool | supportsHorizontalSubPixelPositions () const override |
| bool | supportsVerticalSubPixelPositions () const override |
| QFixed | lineThickness () const override |
| QFixed | underlinePosition () const override |
| void | draw (CGContextRef ctxctx, qreal xx, qreal yy, const QTextItemInt &ti, int paintDeviceHeight) |
| FaceId | faceId () const override |
| bool | getSfntTableData (uint, uchar *, uint *) const override |
| void | getUnscaledGlyph (glyph_t glyph, QPainterPath *pathpath, glyph_metrics_t *metricsmetrics) override |
| QImage | alphaMapForGlyph (glyph_t, const QFixedPoint &subPixelPosition) override |
| QImage | alphaMapForGlyph (glyph_t glyph, const QFixedPoint &subPixelPosition, const QTransform &tt) override |
| QImage | alphaRGBMapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &tt) override |
| glyph_metrics_t | alphaMapBoundingBox (glyph_t glyph, const QFixedPoint &, const QTransform &matrixmatrix, GlyphFormat) override |
| QImage | bitmapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &tt, const QColor &colorcolor) override |
| QFixed | emSquareSize () const override |
| void | doKerning (QGlyphLayout *gg, ShaperFlags flagsflags) const override |
| bool | supportsTransformation (const QTransform &transformtransform) const override |
| bool | expectsGammaCorrectedBlending (QFontEngine::GlyphFormat formatformat=QFontEngine::Format_None) const override |
| QFontEngine * | cloneWithSize (qreal pixelSize) const override |
| Qt::HANDLE | handle () const override |
| int | glyphMargin (QFontEngine::GlyphFormat formatformat) override |
| QFontEngine::Properties | properties () const override |
| QList< QFontVariableAxis > | variableAxes () const override |
| | Q_ENUM (FontSmoothing) |
| virtual | ~QFontEngine () |
| Type | type () const |
| QByteArray | getSfntTable (uint tag) const |
| bool | supportsSubPixelPositions () const |
| virtual QFixedPoint | subPixelPositionFor (const QFixedPoint &position) const |
| QFixed | subPixelPositionForX (QFixed xx) const |
| bool | preferTypoLineMetrics () const |
| bool | isColorFont () const |
| void | getGlyphPositions (const QGlyphLayout &glyphs, const QTransform &matrixmatrix, QTextItem::RenderFlags flagsflags, QVarLengthArray< glyph_t > &glyphs_out, QVarLengthArray< QFixedPoint > &positions) |
| virtual void | addOutlineToPath (qreal, qreal, const QGlyphLayout &, QPainterPath *, QTextItem::RenderFlags flagsflags) |
| void | addBitmapFontToPath (qreal xx, qreal yy, const QGlyphLayout &, QPainterPath *, QTextItem::RenderFlags) |
| virtual QImage | alphaMapForGlyph (glyph_t) |
| virtual QImage | alphaMapForGlyph (glyph_t, const QTransform &tt) |
| QImage | renderedPathForGlyph (glyph_t glyph, const QColor &colorcolor) |
| qreal | effectivePixelSizeSquared (const QTransform &transformtransform) const |
| bool | glyphTransformExceedsLimit (glyph_t glyph, const QTransform &transformtransform) |
| virtual Glyph * | glyphData (glyph_t glyph, const QFixedPoint &subPixelPosition, GlyphFormat neededFormat, const QTransform &tt) |
| virtual bool | hasInternalCaching () const |
| virtual void | removeGlyphFromCache (glyph_t) |
| virtual glyph_metrics_t | boundingBox (const QGlyphLayout &glyphs) |
| virtual glyph_metrics_t | boundingBox (glyph_t glyph, const QTransform &matrixmatrix) |
| glyph_metrics_t | tightBoundingBox (const QGlyphLayout &glyphs, QTextItem::RenderFlags flagsflags) |
| 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 |
| bool | hasHinting () const |
| void * | harfbuzzFont () const |
| void * | harfbuzzFace () const |
| bool | supportsScript (QChar::Script script) const |
| virtual int | getPointInOutline (glyph_t glyph, int flagsflags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints) |
| void | clearGlyphCache (const void *keykey) |
| void | setGlyphCache (const void *keykey, QFontEngineGlyphCache *datadata) |
| QFontEngineGlyphCache * | glyphCache (const void *keykey, GlyphFormat formatformat, const QTransform &transformtransform, const QColor &colorcolor=QColor()) const |
| virtual bool | hasUnreliableGlyphOutline () const |
| virtual void | setDefaultHintStyle (HintStyle) |
| void | loadKerningPairs (QFixed scalingFactor) |
|
| static FontSmoothing | fontSmoothing () |
| static qreal | fontSmoothingGamma () |
| static bool | ct_getSfntTable (void *user_data, uint tag, uchar *bufferbuffer, uint *lengthlength) |
| static QFont::Weight | qtWeightFromCFWeight (float valuevalue) |
| static QCoreTextFontEngine * | create (const QByteArray &fontDatafontData, qreal pixelSize, QFont::HintingPreference hintingPreference, const QMap< QFont::Tag, float > &variableAxisValue) |
| static bool | isIgnorableChar (char32_t ucs4) |
| static int | maxCachedGlyphSize () |
| static constexpr int | maxColrv1NestingDepth () |
| static bool | glyphBoundingBoxExceedsLimit (qreal glyphWidth, qreal glyphHeight, qreal effectivePixelSizeSquared) |
| static bool | scriptRequiresOpenType (QChar::Script script) |
| static const uchar * | getCMap (const uchar *tabletable, uint tableSize, bool *isSymbolFont, int *cmapSize) |
| static quint32 | getTrueTypeGlyphIndex (const uchar *cmap, int cmapSize, uint unicode) |
| static QByteArray | convertToPostscriptFontFamilyName (const QByteArray &fontFamily) |
| static bool | disableEmojiSegmenter () |
| static constexpr qsizetype | maximumEngineCount () |
Definition at line 31 of file qfontengine_coretext_p.h.
| bool QCoreTextFontEngine::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 973 of file qfontengine_coretext.mm.