![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qfontengine_ft_p.h>
Classes | |
| struct | GlyphInfo |
| struct | GlyphAndSubPixelPosition |
| struct | QGlyphSet |
Public Types | |
| enum | Scaling { Scaled , Unscaled } |
| 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 , FullStringFallback = 0x008 } |
| enum | SynthesizedFlags { SynthesizedItalic = 0x1 , SynthesizedBold = 0x2 , SynthesizedStretch = 0x4 } |
| enum | HintStyle { HintUnset = -1 , HintNone , HintLight , HintMedium , HintFull } |
| enum | SubpixelAntialiasingType { Subpixel_Unset = -1 , Subpixel_None , Subpixel_RGB , Subpixel_BGR , Subpixel_VRGB , Subpixel_VBGR } |
Public Member Functions | |
| 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 *bufferbuffer, uint *lengthlength) const override |
| 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 indexindex) const override |
| void | doKerning (QGlyphLayout *, ShaperFlags) const override |
| void | getUnscaledGlyph (glyph_t glyph, QPainterPath *pathpath, glyph_metrics_t *metricsmetrics) override |
| bool | supportsTransformation (const QTransform &transformtransform) const override |
| void | addGlyphsToPath (glyph_t *glyphs, QFixedPoint *positions, int nglyphs, QPainterPath *pathpath, QTextItem::RenderFlags flagsflags) override |
| void | addOutlineToPath (qreal xx, qreal yy, const QGlyphLayout &glyphs, QPainterPath *pathpath, QTextItem::RenderFlags flagsflags) override |
| int | stringToCMap (const QChar *str, int lenlen, QGlyphLayout *glyphs, int *nglyphs, ShaperFlags flagsflags) 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 &matrixmatrix) override |
| void | recalcAdvances (QGlyphLayout *glyphs, ShaperFlags flagsflags) 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 &tt) override |
| QImage | alphaRGBMapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &tt) override |
| QImage | bitmapForGlyph (glyph_t, const QFixedPoint &subPixelPosition, const QTransform &tt, const QColor &colorcolor) override |
| glyph_metrics_t | alphaMapBoundingBox (glyph_t glyph, const QFixedPoint &subPixelPosition, const QTransform &matrixmatrix, QFontEngine::GlyphFormat formatformat) override |
| Glyph * | glyphData (glyph_t glyph, const QFixedPoint &subPixelPosition, GlyphFormat neededFormat, const QTransform &tt) override |
| bool | hasInternalCaching () const override |
| bool | expectsGammaCorrectedBlending (QFontEngine::GlyphFormat formatformat) 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 scalescale=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 formatformat=Format_None, bool fetchMetricsOnly=false, bool disableOutlineDrawing=false) const |
| Glyph * | loadGlyph (QGlyphSet *set, uint glyph, const QFixedPoint &subPixelPosition, QColor colorcolor, GlyphFormat=Format_None, bool fetchMetricsOnly=false, bool disableOutlineDrawing=false) const |
| Glyph * | loadGlyphFor (glyph_t gg, const QFixedPoint &subPixelPosition, GlyphFormat formatformat, const QTransform &tt, QColor colorcolor, bool fetchBoundingBox=false, bool disableOutlineDrawing=false) |
| QGlyphSet * | loadGlyphSet (const QTransform &matrixmatrix) |
| QFontEngineFT (const QFontDef &fdfd) | |
| virtual | ~QFontEngineFT () |
| bool | init (FaceId faceId, bool antiaalias, GlyphFormat defaultFormat=Format_None, const QByteArray &fontDatafontData=QByteArray()) |
| bool | init (FaceId faceId, bool antialias, GlyphFormat formatformat, QFreetypeFace *freetypeFace) |
| int | getPointInOutline (glyph_t glyph, int flagsflags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints) override |
| void | setQtDefaultHintStyle (QFont::HintingPreference hintingPreference) |
| void | setDefaultHintStyle (HintStyle style) override |
| bool | setVerticalHintingOnly () |
| QFontEngine * | cloneWithSize (qreal pixelSize) const override |
| Qt::HANDLE | handle () const override |
| bool | initFromFontEngine (const QFontEngineFT *fontEngine) |
| HintStyle | defaultHintStyle () const |
| Public Member Functions inherited from QFontEngine | |
| 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) |
| void | addBitmapFontToPath (qreal xx, qreal yy, const QGlyphLayout &, QPainterPath *, QTextItem::RenderFlags) |
| 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) |
| 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 |
| virtual bool | canRender (const QChar *str, int lenlen) const |
| bool | hasHinting () const |
| virtual glyph_t | findGlyph (QLatin1StringView namename) const |
| void * | harfbuzzFont () const |
| void * | harfbuzzFace () const |
| bool | supportsScript (QChar::Script script) const |
| 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 |
| void | loadKerningPairs (QFixed scalingFactor) |
Static Public Member Functions | |
| static QFontEngineFT * | create (const QFontDef &fontDef, FaceId faceId, const QByteArray &fontDatafontData=QByteArray()) |
| static QFontEngineFT * | create (const QByteArray &fontDatafontData, qreal pixelSize, QFont::HintingPreference hintingPreference, const QMap< QFont::Tag, float > &variableAxisValue, int instanceIndex=0) |
| Static Public Member Functions inherited from QFontEngine | |
| 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 () |
Protected Attributes | |
| QFreetypeFace * | freetype |
| int | default_load_flags |
| HintStyle | default_hint_style |
| bool | antialias |
| bool | transform |
| bool | embolden |
| bool | obliquen |
| SubpixelAntialiasingType | subpixelType |
| int | lcdFilterType |
| bool | embeddedbitmap |
| bool | cacheEnabled |
| bool | forceAutoHint |
| bool | stemDarkeningDriver |
| bool | verticalHintingOnly |
| Protected Attributes inherited from QFontEngine | |
| QFixed | m_ascent |
| QFixed | m_descent |
| QFixed | m_leading |
| bool | m_heightMetricsQueried |
Friends | |
| class | QFontEngineFTRawFont |
| class | QFontconfigDatabase |
| class | QFreeTypeFontDatabase |
| class | QFontEngineMultiFontConfig |
Additional Inherited Members | |
| 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< KernPair > | kerning_pairs |
| GlyphFormat | glyphFormat |
| int | m_subPixelPositionCount |
| Protected Member Functions inherited from QFontEngine | |
| QFontEngine (Type typetype) | |
| QFixed | firstLeftBearing (const QGlyphLayout &glyphs) |
| QFixed | lastRightBearing (const QGlyphLayout &glyphs) |
| QFixed | calculatedCapHeight () const |
| bool | processHheaTable () const |
| bool | processOS2Table () const |
Definition at line 115 of file qfontengine_ft_p.h.
| Enumerator | |
|---|---|
| Scaled | |
| Unscaled | |
Definition at line 237 of file qfontengine_ft_p.h.
| QFontEngineFT::QFontEngineFT | ( | const QFontDef & | fd | ) |
Definition at line 921 of file qfontengine_ft.cpp.
|
virtual |
Definition at line 950 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2429 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2405 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2765 of file qfontengine_ft.cpp.
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 214 of file qfontengine_ft_p.h.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2932 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2927 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2954 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2244 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2984 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2652 of file qfontengine_ft.cpp.
|
overridevirtual |
Implements QFontEngine.
Definition at line 2718 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2760 of file qfontengine_ft.cpp.
|
overridevirtual |
Implements QFontEngine.
Definition at line 2219 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 3164 of file qfontengine_ft.cpp.
|
static |
Definition at line 897 of file qfontengine_ft.cpp.
|
static |
Definition at line 816 of file qfontengine_ft.cpp.
|
inline |
Definition at line 300 of file qfontengine_ft_p.h.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2275 of file qfontengine_ft.cpp.
|
inline |
Definition at line 246 of file qfontengine_ft_p.h.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2179 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 1163 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2164 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 3130 of file qfontengine_ft.cpp.
|
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 2187 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2370 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 3017 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2839 of file qfontengine_ft.cpp.
Implements QFontEngine.
Definition at line 2451 of file qfontengine_ft.cpp.
|
inlineoverridevirtual |
Reimplemented from QFontEngine.
Definition at line 231 of file qfontengine_ft_p.h.
Reimplemented from QFontEngine.
Definition at line 2483 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 3177 of file qfontengine_ft.cpp.
|
inlineoverridevirtual |
Reimplemented from QFontEngine.
Definition at line 227 of file qfontengine_ft_p.h.
| bool QFontEngineFT::init | ( | FaceId | faceId, |
| bool | antiaalias, | ||
| GlyphFormat | defaultFormat = Format_None, | ||
| const QByteArray & | fontData = QByteArray() ) |
Definition at line 956 of file qfontengine_ft.cpp.
| bool QFontEngineFT::init | ( | FaceId | faceId, |
| bool | antialias, | ||
| GlyphFormat | format, | ||
| QFreetypeFace * | freetypeFace ) |
Definition at line 978 of file qfontengine_ft.cpp.
| bool QFontEngineFT::initFromFontEngine | ( | const QFontEngineFT * | fontEngine | ) |
Definition at line 3141 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2204 of file qfontengine_ft.cpp.
|
inline |
Definition at line 247 of file qfontengine_ft_p.h.
|
inline |
Definition at line 248 of file qfontengine_ft_p.h.
|
inline |
Definition at line 249 of file qfontengine_ft_p.h.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2265 of file qfontengine_ft.cpp.
| QFontEngineFT::Glyph * QFontEngineFT::loadGlyph | ( | QGlyphSet * | set, |
| uint | glyph, | ||
| const QFixedPoint & | subPixelPosition, | ||
| QColor | color, | ||
| GlyphFormat | format = Format_None, | ||
| bool | fetchMetricsOnly = false, | ||
| bool | disableOutlineDrawing = false ) const |
Definition at line 1835 of file qfontengine_ft.cpp.
|
inline |
Definition at line 251 of file qfontengine_ft_p.h.
| QFontEngineFT::Glyph * QFontEngineFT::loadGlyphFor | ( | glyph_t | g, |
| const QFixedPoint & | subPixelPosition, | ||
| GlyphFormat | format, | ||
| const QTransform & | t, | ||
| QColor | color, | ||
| bool | fetchBoundingBox = false, | ||
| bool | disableOutlineDrawing = false ) |
Definition at line 2866 of file qfontengine_ft.cpp.
| QFontEngineFT::QGlyphSet * QFontEngineFT::loadGlyphSet | ( | const QTransform & | matrix | ) |
Definition at line 2358 of file qfontengine_ft.cpp.
Definition at line 3028 of file qfontengine_ft.cpp.
|
overridevirtual |
Implements QFontEngine.
Definition at line 2257 of file qfontengine_ft.cpp.
| FT_Face QFontEngineFT::non_locked_face | ( | ) | const |
Definition at line 3065 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2169 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2617 of file qfontengine_ft.cpp.
Reimplemented from QFontEngine.
Definition at line 3012 of file qfontengine_ft.cpp.
Reimplemented from QFontEngine.
Definition at line 1130 of file qfontengine_ft.cpp.
| void QFontEngineFT::setQtDefaultHintStyle | ( | QFont::HintingPreference | hintingPreference | ) |
Definition at line 1112 of file qfontengine_ft.cpp.
| bool QFontEngineFT::setVerticalHintingOnly | ( | ) |
Definition at line 1150 of file qfontengine_ft.cpp.
|
overridevirtual |
Implements QFontEngine.
Definition at line 2499 of file qfontengine_ft.cpp.
|
inlineoverridevirtual |
Reimplemented from QFontEngine.
Definition at line 170 of file qfontengine_ft_p.h.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2400 of file qfontengine_ft.cpp.
|
inlineoverridevirtual |
Reimplemented from QFontEngine.
Definition at line 177 of file qfontengine_ft_p.h.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2192 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2270 of file qfontengine_ft.cpp.
| void QFontEngineFT::unlockFace | ( | ) | const |
Definition at line 3060 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 3182 of file qfontengine_ft.cpp.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2231 of file qfontengine_ft.cpp.
|
friend |
Definition at line 324 of file qfontengine_ft_p.h.
|
friend |
Definition at line 323 of file qfontengine_ft_p.h.
|
friend |
Definition at line 326 of file qfontengine_ft_p.h.
|
friend |
Definition at line 325 of file qfontengine_ft_p.h.
|
protected |
Definition at line 310 of file qfontengine_ft_p.h.
|
protected |
Definition at line 317 of file qfontengine_ft_p.h.
|
protected |
Definition at line 309 of file qfontengine_ft_p.h.
|
mutableprotected |
Definition at line 308 of file qfontengine_ft_p.h.
|
protected |
Definition at line 316 of file qfontengine_ft_p.h.
|
protected |
Definition at line 312 of file qfontengine_ft_p.h.
|
protected |
Definition at line 318 of file qfontengine_ft_p.h.
|
protected |
Definition at line 307 of file qfontengine_ft_p.h.
|
protected |
Definition at line 315 of file qfontengine_ft_p.h.
|
protected |
Definition at line 313 of file qfontengine_ft_p.h.
|
protected |
Definition at line 319 of file qfontengine_ft_p.h.
|
protected |
Definition at line 314 of file qfontengine_ft_p.h.
|
protected |
Definition at line 311 of file qfontengine_ft_p.h.
|
protected |
Definition at line 320 of file qfontengine_ft_p.h.