QtBase
v6.3.1
|
#include <qfontengine_p.h>
Classes | |
struct | FaceData |
struct | FaceId |
struct | Glyph |
class | Holder |
struct | KernPair |
struct | Properties |
Public Types | |
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 | |
static bool | scriptRequiresOpenType (QChar::Script script) |
static const uchar * | getCMap (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 | |
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 | |
QFontEngine (Type type) | |
QFixed | lastRightBearing (const QGlyphLayout &glyphs) |
QFixed | calculatedCapHeight () const |
virtual void | initializeHeightMetrics () const |
bool | processHheaTable () const |
bool | processOS2Table () const |
Protected Attributes | |
QFixed | m_ascent |
QFixed | m_descent |
QFixed | m_leading |
bool | m_heightMetricsQueried |
Definition at line 87 of file qfontengine_p.h.
Enumerator | |
---|---|
Format_None | |
Format_Render | |
Format_Mono | |
Format_A8 | |
Format_A32 | |
Format_ARGB |
Definition at line 111 of file qfontengine_p.h.
Enumerator | |
---|---|
HintNone | |
HintLight | |
HintMedium | |
HintFull |
Definition at line 285 of file qfontengine_p.h.
Enumerator | |
---|---|
DesignMetrics | |
GlyphIndicesOnly |
Definition at line 120 of file qfontengine_p.h.
Enumerator | |
---|---|
Subpixel_None | |
Subpixel_RGB | |
Subpixel_BGR | |
Subpixel_VRGB | |
Subpixel_VBGR |
Definition at line 293 of file qfontengine_p.h.
Enumerator | |
---|---|
SynthesizedItalic | |
SynthesizedBold | |
SynthesizedStretch |
Definition at line 173 of file qfontengine_p.h.
enum QFontEngine::Type |
Enumerator | |
---|---|
Box | |
Multi | |
Win | |
Mac | |
Freetype | |
QPF1 | |
QPF2 | |
Proxy | |
DirectWrite | |
TestFontEngine |
Definition at line 90 of file qfontengine_p.h.
|
virtual |
|
explicitprotected |
Definition at line 147 of file qfontengine.cpp.
void QFontEngine::addBitmapFontToPath | ( | qreal | x, |
qreal | y, | ||
const QGlyphLayout & | glyphs, | ||
QPainterPath * | path, | ||
QTextItem::RenderFlags | flags | ||
) |
Definition at line 746 of file qfontengine.cpp.
|
virtual |
Reimplemented in QCoreTextFontEngine, QWindowsFontEngineDirectWrite, QWindowsFontEngine, and QFontEngineFT.
Definition at line 795 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineMulti, QWindowsFontEngine, QFontEngineBox, and QFontEngineFT.
Definition at line 639 of file qfontengine.cpp.
|
inlinevirtual |
Reimplemented in QFontEngineFT, QWindowsFontEngineDirectWrite, QWindowsFontEngine, and QCoreTextFontEngine.
Definition at line 221 of file qfontengine_p.h.
|
virtual |
Reimplemented in QCoreTextFontEngine, QFontEngineFT, QWindowsFontEngineDirectWrite, and QFontEngineMulti.
Definition at line 812 of file qfontengine.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 in QFontEngineMulti, QFontEngineBox, QWindowsFontEngine, and QFontEngineFT.
Definition at line 893 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineMulti, QWindowsFontEngineDirectWrite, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 828 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngine, and QFontEngineMulti.
Definition at line 818 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineMulti, QFontEngineFT, QCoreTextFontEngine, QWindowsFontEngineDirectWrite, and QWindowsFontEngine.
Definition at line 841 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineMulti, and QFontEngineBox.
Definition at line 514 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngine, QFontEngineMulti, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 287 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngineDirectWrite, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 858 of file qfontengine.cpp.
|
pure virtual |
Implemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineBox, QFontEngineFT, and QCoreTextFontEngine.
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineFT, QCoreTextFontEngine, QWindowsFontEngineDirectWrite, and QWindowsFontEngine.
|
virtual |
Reimplemented in QFontEngineFT, and QWindowsFontEngine.
Definition at line 263 of file qfontengine.cpp.
|
protected |
Definition at line 273 of file qfontengine.cpp.
Reimplemented in QFontEngineMulti, QFontEngineBox, and QCoreTextFontEngine.
Definition at line 252 of file qfontengine.cpp.
|
inline |
|
pure virtual |
Implemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineBox, QFontEngineFT, and QCoreTextFontEngine.
|
inlinevirtual |
Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineBox, QFontEngineFT, QCoreTextFontEngine, and QCoreTextRawFontEngine.
Definition at line 257 of file qfontengine_p.h.
|
static |
Definition at line 1476 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineMulti, and QFontEngineBox.
Definition at line 522 of file qfontengine.cpp.
|
virtual |
Reimplemented in QCoreTextFontEngine, QFontEngineMulti, and QFontEngineFT.
Definition at line 1057 of file qfontengine.cpp.
|
inlinevirtual |
Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 191 of file qfontengine_p.h.
|
virtual |
Reimplemented in QFontEngineFT, and QCoreTextFontEngine.
Definition at line 299 of file qfontengine.cpp.
|
inlinevirtual |
Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 172 of file qfontengine_p.h.
|
static |
Definition at line 1184 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngine, and QFontEngineMulti.
Definition at line 422 of file qfontengine.cpp.
void QFontEngine::getGlyphPositions | ( | const QGlyphLayout & | glyphs, |
const QTransform & | matrix, | ||
QTextItem::RenderFlags | flags, | ||
QVarLengthArray< glyph_t > & | glyphs_out, | ||
QVarLengthArray< QFixedPoint > & | positions | ||
) |
Definition at line 304 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineFT.
Definition at line 104 of file qfontengine.cpp.
QByteArray QFontEngine::getSfntTable | ( | uint | tag | ) | const |
Definition at line 979 of file qfontengine.cpp.
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 in QCoreTextFontEngine, QWindowsFontEngineDirectWrite, QWindowsFontEngine, and QFontEngineFT.
Definition at line 971 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 951 of file qfontengine.cpp.
QFontEngineGlyphCache * QFontEngine::glyphCache | ( | const void * | key, |
GlyphFormat | format, | ||
const QTransform & | transform, | ||
const QColor & | color = QColor() |
||
) | const |
Definition at line 1017 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineFT.
Definition at line 1165 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineFT.
Definition at line 885 of file qfontengine.cpp.
Implemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineBox, QFontEngineFT, and QCoreTextFontEngine.
|
inlinevirtual |
Reimplemented in QFontEngineFT, and QCoreTextFontEngine.
Definition at line 255 of file qfontengine_p.h.
|
virtual |
Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 1179 of file qfontengine.cpp.
void * QFontEngine::harfbuzzFace | ( | ) | const |
void * QFontEngine::harfbuzzFont | ( | ) | const |
|
inlinevirtual |
Reimplemented in QFontEngineFT.
Definition at line 219 of file qfontengine_p.h.
|
virtual |
Reimplemented in QWindowsFontEngine.
Definition at line 1496 of file qfontengine.cpp.
|
protectedvirtual |
Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 455 of file qfontengine.cpp.
|
protected |
Definition at line 1502 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineMulti, and QFontEngineBox.
Definition at line 506 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 180 of file qfontengine.cpp.
Definition at line 1074 of file qfontengine.cpp.
|
pure virtual |
Implemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineBox, QFontEngineFT, and QCoreTextFontEngine.
|
virtual |
Reimplemented in QWindowsFontEngine, QFontEngineMulti, and QFontEngineBox.
Definition at line 530 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngine, QFontEngineMulti, and QFontEngineBox.
Definition at line 543 of file qfontengine.cpp.
|
protected |
Definition at line 431 of file qfontengine.cpp.
|
protected |
Definition at line 472 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 934 of file qfontengine.cpp.
|
inlinevirtual |
Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineFT, QFontEngineMulti, QFontEngineBox, and QCoreTextFontEngine.
Definition at line 196 of file qfontengine_p.h.
Reimplemented in QFontEngineFT.
Definition at line 930 of file qfontengine.cpp.
|
inlinestatic |
Reimplemented in QFontEngineFT.
Definition at line 291 of file qfontengine_p.h.
void QFontEngine::setGlyphCache | ( | const void * | key, |
QFontEngineGlyphCache * | data | ||
) |
|
pure virtual |
Implemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineBox, QFontEngineFT, and QCoreTextFontEngine.
|
virtual |
Definition at line 186 of file qfontengine_p.h.
|
inlinevirtual |
Reimplemented in QWindowsFontEngineDirectWrite, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 183 of file qfontengine_p.h.
bool QFontEngine::supportsScript | ( | QChar::Script | script | ) | const |
|
inline |
Definition at line 179 of file qfontengine_p.h.
|
virtual |
Reimplemented in QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 294 of file qfontengine.cpp.
|
inlinevirtual |
Reimplemented in QFontEngineFT, and QCoreTextFontEngine.
Definition at line 184 of file qfontengine_p.h.
|
inlinevirtual |
Reimplemented in QWindowsFontEngine, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 178 of file qfontengine_p.h.
glyph_metrics_t QFontEngine::tightBoundingBox | ( | const QGlyphLayout & | glyphs | ) |
|
inline |
|
virtual |
Reimplemented in QWindowsFontEngineDirectWrite, QFontEngineMulti, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 193 of file qfontengine.cpp.
|
virtual |
Reimplemented in QWindowsFontEngineDirectWrite, QWindowsFontEngine, QFontEngineMulti, QFontEngineFT, and QCoreTextFontEngine.
Definition at line 280 of file qfontengine.cpp.
uint QFontEngine::cache_cost |
Definition at line 349 of file qfontengine_p.h.
|
mutable |
Definition at line 342 of file qfontengine_p.h.
struct QFontEngine::FaceData QFontEngine::faceData |
|
mutable |
Definition at line 341 of file qfontengine_p.h.
QFontDef QFontEngine::fontDef |
Definition at line 306 of file qfontengine_p.h.
uint QFontEngine::fsType |
Definition at line 350 of file qfontengine_p.h.
GlyphFormat QFontEngine::glyphFormat |
Definition at line 365 of file qfontengine_p.h.
bool QFontEngine::isSmoothlyScalable |
Definition at line 352 of file qfontengine_p.h.
Definition at line 362 of file qfontengine_p.h.
|
mutableprotected |
Definition at line 375 of file qfontengine_p.h.
|
mutableprotected |
Definition at line 376 of file qfontengine_p.h.
|
mutableprotected |
Definition at line 378 of file qfontengine_p.h.
|
mutableprotected |
Definition at line 377 of file qfontengine_p.h.
int QFontEngine::m_subPixelPositionCount |
Definition at line 366 of file qfontengine_p.h.
QAtomicInt QFontEngine::ref |
Definition at line 305 of file qfontengine_p.h.
bool QFontEngine::symbol |
Definition at line 351 of file qfontengine_p.h.