Qt 4.8
|
#include <qfontengine_p.h>
Classes | |
struct | FaceId |
struct | GlyphCacheEntry |
struct | KernPair |
struct | Properties |
Public Types | |
enum | GlyphFormat { Format_None, Format_Render = Format_None, Format_Mono, Format_A8, Format_A32 } |
enum | SynthesizedFlags { SynthesizedItalic = 0x1, SynthesizedBold = 0x2, SynthesizedStretch = 0x4 } |
enum | Type { Box, Multi, XLFD, Win, Mac, Freetype, QPF1, QPF2, Proxy, S60FontEngine, DirectWrite, TestFontEngine = 0x1000 } |
Public Functions | |
void | addBitmapFontToPath (qreal x, qreal y, const QGlyphLayout &, QPainterPath *, QTextItem::RenderFlags) |
virtual void | addGlyphsToPath (glyph_t *glyphs, QFixedPoint *positions, int nglyphs, QPainterPath *path, QTextItem::RenderFlags flags) |
virtual void | addOutlineToPath (qreal, qreal, const QGlyphLayout &, QPainterPath *, QTextItem::RenderFlags flags) |
virtual glyph_metrics_t | alphaMapBoundingBox (glyph_t glyph, QFixed, const QTransform &matrix, GlyphFormat) |
virtual QImage | alphaMapForGlyph (glyph_t) |
virtual QImage | alphaMapForGlyph (glyph_t glyph, QFixed subPixelPosition) |
virtual QImage | alphaMapForGlyph (glyph_t, const QTransform &t) |
virtual QImage | alphaMapForGlyph (glyph_t, QFixed subPixelPosition, const QTransform &t) |
virtual QImage | alphaRGBMapForGlyph (glyph_t, QFixed subPixelPosition, int margin, const QTransform &t) |
virtual QFixed | ascent () const =0 |
virtual QFixed | averageCharWidth () const |
virtual glyph_metrics_t | boundingBox (const QGlyphLayout &glyphs)=0 |
virtual glyph_metrics_t | boundingBox (glyph_t glyph)=0 |
virtual glyph_metrics_t | boundingBox (glyph_t glyph, const QTransform &matrix) |
virtual bool | canRender (const QChar *string, int len)=0 |
virtual QFontEngine * | cloneWithSize (qreal) const |
virtual QFixed | descent () const =0 |
virtual void | doKerning (QGlyphLayout *, QTextEngine::ShaperFlags) const |
virtual QFixed | emSquareSize () const |
virtual FaceId | faceId () const |
virtual void | getGlyphBearings (glyph_t glyph, qreal *leftBearing=0, qreal *rightBearing=0) |
void | getGlyphPositions (const QGlyphLayout &glyphs, const QTransform &matrix, QTextItem::RenderFlags flags, QVarLengthArray< glyph_t > &glyphs_out, QVarLengthArray< QFixedPoint > &positions) |
virtual HB_Error | getPointInOutline (HB_Glyph glyph, int flags, hb_uint32 point, HB_Fixed *xpos, HB_Fixed *ypos, hb_uint32 *nPoints) |
QByteArray | getSfntTable (uint) const |
virtual bool | getSfntTableData (uint, uchar *, uint *) const |
virtual void | getUnscaledGlyph (glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics) |
QFontEngineGlyphCache * | glyphCache (void *key, QFontEngineGlyphCache::Type type, const QTransform &transform) const |
virtual int | glyphCount () const |
HB_Face | harfbuzzFace () const |
HB_Font | harfbuzzFont () const |
virtual QFixed | leading () const =0 |
virtual QFixed | lineThickness () const |
void | loadKerningPairs (QFixed scalingFactor) |
virtual qreal | maxCharWidth () const =0 |
virtual qreal | minLeftBearing () const |
virtual qreal | minRightBearing () const |
virtual const char * | name () const =0 |
virtual Properties | properties () const |
QFontEngine () | |
virtual void | recalcAdvances (QGlyphLayout *, QTextEngine::ShaperFlags) const |
virtual void | removeGlyphFromCache (glyph_t) |
void | setGlyphCache (void *key, QFontEngineGlyphCache *data) |
virtual bool | stringToCMap (const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs, QTextEngine::ShaperFlags flags) const =0 |
virtual bool | supportsSubPixelPositions () const |
virtual int | synthesized () const |
glyph_metrics_t | tightBoundingBox (const QGlyphLayout &glyphs) |
virtual Type | type () const =0 |
virtual QFixed | underlinePosition () const |
virtual QFixed | xHeight () const |
virtual | ~QFontEngine () |
Public Functions inherited from QObject | |
bool | blockSignals (bool b) |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More... | |
const QObjectList & | children () const |
Returns a list of child objects. More... | |
bool | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) |
bool | disconnect (const QObject *receiver, const char *member=0) |
void | dumpObjectInfo () |
Dumps information about signal connections, etc. More... | |
void | dumpObjectTree () |
Dumps a tree of children to the debug output. More... | |
QList< QByteArray > | dynamicPropertyNames () const |
Returns the names of all properties that were dynamically added to the object using setProperty(). More... | |
virtual bool | event (QEvent *) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. More... | |
virtual bool | eventFilter (QObject *, QEvent *) |
Filters events if this object has been installed as an event filter for the watched object. More... | |
template<typename T > | |
T | findChild (const QString &aName=QString()) const |
Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More... | |
template<typename T > | |
QList< T > | findChildren (const QString &aName=QString()) const |
Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More... | |
template<typename T > | |
QList< T > | findChildren (const QRegExp &re) const |
bool | inherits (const char *classname) const |
Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More... | |
void | installEventFilter (QObject *) |
Installs an event filter filterObj on this object. More... | |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false. More... | |
void | killTimer (int id) |
Kills the timer with timer identifier, id. More... | |
virtual const QMetaObject * | metaObject () const |
Returns a pointer to the meta-object of this object. More... | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. More... | |
QString | objectName () const |
QObject * | parent () const |
Returns a pointer to the parent object. More... | |
QVariant | property (const char *name) const |
Returns the value of the object's name property. More... | |
Q_INVOKABLE | QObject (QObject *parent=0) |
Constructs an object with parent object parent. More... | |
void | removeEventFilter (QObject *) |
Removes an event filter object obj from this object. More... | |
void | setObjectName (const QString &name) |
void | setParent (QObject *) |
Makes the object a child of parent. More... | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. More... | |
void | setUserData (uint id, QObjectUserData *data) |
bool | signalsBlocked () const |
Returns true if signals are blocked; otherwise returns false. More... | |
int | startTimer (int interval) |
Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More... | |
QThread * | thread () const |
Returns the thread in which the object lives. More... | |
QObjectUserData * | userData (uint id) const |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. More... | |
Static Public Functions | |
static QByteArray | convertToPostscriptFontFamilyName (const QByteArray &fontFamily) |
static const uchar * | getCMap (const uchar *table, uint tableSize, bool *isSymbolFont, int *cmapSize) |
static quint32 | getTrueTypeGlyphIndex (const uchar *cmap, uint unicode) |
Static Public Functions inherited from QObject | |
static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More... | |
static bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
Disconnects signal in object sender from method in object receiver. More... | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static uint | registerUserData () |
static QString | tr (const char *sourceText, const char *comment=0, int n=-1) |
static QString | trUtf8 (const char *sourceText, const char *comment=0, int n=-1) |
Public Variables | |
uint | cache_cost |
int | cache_count |
QFontDef | fontDef |
uint | fsType: 16 |
int | glyphFormat |
HB_Face | hbFace |
HB_FontRec | hbFont |
QVector< KernPair > | kerning_pairs |
QAtomicInt | ref |
bool | symbol |
Protected Functions | |
QFixed | lastRightBearing (const QGlyphLayout &glyphs, bool round=false) |
Protected Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *) |
This event handler can be reimplemented in a subclass to receive child events. More... | |
virtual void | connectNotify (const char *signal) |
This virtual function is called when something has been connected to signal in this object. More... | |
virtual void | customEvent (QEvent *) |
This event handler can be reimplemented in a subclass to receive custom events. More... | |
virtual void | disconnectNotify (const char *signal) |
This virtual function is called when something has been disconnected from signal in this object. More... | |
QObject (QObjectPrivate &dd, QObject *parent=0) | |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. More... | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns 0. More... | |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *) |
This event handler can be reimplemented in a subclass to receive timer events for the object. More... | |
Static Protected Functions | |
static const QVector< QRgb > & | grayPalette () |
Properties | |
QLinkedList< GlyphCacheEntry > | m_glyphCaches |
Additional Inherited Members | |
Public Slots inherited from QObject | |
void | deleteLater () |
Schedules this object for deletion. More... | |
Signals inherited from QObject | |
void | destroyed (QObject *=0) |
This signal is emitted immediately before the object obj is destroyed, and can not be blocked. More... | |
Static Public Variables inherited from QObject | |
static const QMetaObject | staticMetaObject |
This variable stores the meta-object for the class. More... | |
Protected Variables inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
Static Protected Variables inherited from QObject | |
static const QMetaObject | staticQtMetaObject |
Related Functions inherited from QObject | |
T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QRegExp ®Exp)() |
T * | qobject_cast (QObject *object) |
QObjectList | |
void * | qt_find_obj_child (QObject *parent, const char *type, const QString &name) |
Returns a pointer to the object named name that inherits type and with a given parent. More... | |
Definition at line 95 of file qfontengine_p.h.
Enumerator | |
---|---|
Format_None | |
Format_Render | |
Format_Mono | |
Format_A8 | |
Format_A32 |
Definition at line 125 of file qfontengine_p.h.
Enumerator | |
---|---|
SynthesizedItalic | |
SynthesizedBold | |
SynthesizedStretch |
Definition at line 163 of file qfontengine_p.h.
enum QFontEngine::Type |
Enumerator | |
---|---|
Box | |
Multi | |
XLFD | |
Win | |
Mac | |
Freetype | |
QPF1 | |
QPF2 | |
Proxy | |
S60FontEngine | |
DirectWrite | |
TestFontEngine |
Definition at line 98 of file qfontengine_p.h.
QFontEngine::QFontEngine | ( | ) |
Definition at line 176 of file qfontengine.cpp.
|
virtual |
Definition at line 191 of file qfontengine.cpp.
void QFontEngine::addBitmapFontToPath | ( | qreal | x, |
qreal | y, | ||
const QGlyphLayout & | glyphs, | ||
QPainterPath * | path, | ||
QTextItem::RenderFlags | flags | ||
) |
Definition at line 526 of file qfontengine.cpp.
Referenced by addGlyphsToPath(), QFontEngineWin::addOutlineToPath(), QFontEngineQPA::addOutlineToPath(), and QFontEngineQPF::addOutlineToPath().
|
virtual |
Reimplemented in QFontEngineFT, QFontEngineDirectWrite, QCoreTextFontEngine, QFontEngineWin, QProxyFontEngine, and QFontEngineMac.
Definition at line 577 of file qfontengine.cpp.
Referenced by QProxyFontEngine::addGlyphsToPath(), addOutlineToPath(), alphaMapForGlyph(), alphaMapFromPath(), QTextureGlyphCache::calculateSubPixelPositionCount(), QPaintEngineEx::drawStaticTextItem(), getUnscaledGlyph(), and QRawFont::pathForGlyph().
|
virtual |
Reimplemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, and QFontEngineWin.
Definition at line 419 of file qfontengine.cpp.
Referenced by QFontEngineWin::addOutlineToPath(), QFontEngineQPF::addOutlineToPath(), QFontEngineFT::addOutlineToPath(), QPainterPath::addText(), and QPaintEngine::drawTextItem().
|
inlinevirtual |
Reimplemented in QFontEngineFT, and QFontEngineDirectWrite.
Definition at line 204 of file qfontengine_p.h.
Referenced by QTextureGlyphCache::populate().
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, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, QFontEngineWin, QFontEngineMac, and QProxyFontEngine.
Definition at line 645 of file qfontengine.cpp.
Referenced by addBitmapFontToPath(), QRawFont::alphaMapForGlyph(), alphaMapForGlyph(), QFontEngineFT::alphaMapForGlyph(), alphaRGBMapForGlyph(), QGLGlyphCache::cacheGlyphs(), QRasterPaintEngine::drawTextItem(), QVGFontEngineCleaner::fontEngineDestroyed(), QFontEngineQPF::loadGlyph(), and QTextureGlyphCache::textureMapForGlyph().
Reimplemented in QFontEngineFT, and QCoreTextFontEngine.
Definition at line 598 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineWin.
Definition at line 604 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineDirectWrite.
Definition at line 614 of file qfontengine.cpp.
|
virtual |
Reimplemented in QFontEngineFT, QFontEngineWin, QFontEngineDirectWrite, QCoreTextFontEngine, and QFontEngineMac.
Definition at line 627 of file qfontengine.cpp.
Referenced by QRawFont::alphaMapForGlyph(), QFontEngineFT::alphaRGBMapForGlyph(), and QTextureGlyphCache::textureMapForGlyph().
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by QPainterPath::addText(), QFontMetrics::ascent(), QRawFont::ascent(), QFontMetricsF::ascent(), QGLGlyphCache::cacheGlyphs(), QTextLine::draw(), QPaintEnginePrivate::drawBoxTextItem(), drawTextItemDecoration(), QTextEngine::fontEngine(), hb_getFontMetric(), QFontMetrics::height(), QFontMetricsF::height(), QFontMetrics::lineSpacing(), QFontMetricsF::lineSpacing(), properties(), QScriptLine::setDefaultHeight(), QTextEngine::shapeTextWithHarfbuzz(), QFontMetrics::xHeight(), and QFontMetricsF::xHeight().
|
virtual |
Reimplemented in QFontEngineMulti, QFontEngineFT, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Definition at line 257 of file qfontengine.cpp.
Referenced by QFontMetrics::averageCharWidth(), QRawFont::averageCharWidth(), QFontMetricsF::averageCharWidth(), QFontEngineFT::averageCharWidth(), and QTextLine::layout_helper().
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by addBitmapFontToPath(), QFontEngineDirectWrite::alphaMapBoundingBox(), alphaMapForGlyph(), alphaMapFromPath(), averageCharWidth(), boundingBox(), QTextEngine::boundingBox(), QFontMetrics::boundingRect(), QFontMetricsF::boundingRect(), QGLGlyphCache::cacheGlyphs(), QPainterPrivate::drawGlyphs(), QRasterPaintEngine::drawTextItem(), QVGFontEngineCleaner::fontEngineDestroyed(), getGlyphBearings(), getUnscaledGlyph(), hb_getGlyphMetrics(), lastRightBearing(), QFontEngineQPF::loadGlyph(), qt_draw_decoration_for_glyphs(), tightBoundingBox(), and xHeight().
|
pure virtual |
|
virtual |
Reimplemented in QFontEngineFT, and QFontEngineWin.
Definition at line 236 of file qfontengine.cpp.
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineMacMulti, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by QTextEngine::elidedText(), hb_canRender(), QFontMetrics::inFont(), QFontMetricsF::inFont(), QFontMetrics::inFontUcs4(), QFontMetricsF::inFontUcs4(), and QRawFont::supportsCharacter().
|
inlinevirtual |
Reimplemented in QFontEngineFT, QFontEngineX11FT, QFontEngineWin, QFontEngineDirectWrite, and QCoreTextFontEngine.
Definition at line 239 of file qfontengine_p.h.
Referenced by QFontEngineX11FT::QFontEngineX11FT(), and QRawFont::setPixelSize().
|
static |
Definition at line 1104 of file qfontengine.cpp.
Referenced by QFontEngineWin::properties(), QFontEngineMac::properties(), properties(), and QFontEngineFT::properties().
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by QGLGlyphCache::cacheGlyphs(), QFontMetrics::descent(), QRawFont::descent(), QFontMetricsF::descent(), QTextLine::draw(), drawTextItemDecoration(), QTextEngine::fontEngine(), hb_getFontMetric(), QFontMetrics::height(), QFontMetricsF::height(), QFontMetrics::lineSpacing(), QFontMetricsF::lineSpacing(), properties(), QScriptLine::setDefaultHeight(), and QTextEngine::shapeTextWithHarfbuzz().
|
virtual |
Reimplemented in QFontEngineMulti, QFontEngineFT, QFontEngineQPF, and QFontEngineMacMulti.
Definition at line 785 of file qfontengine.cpp.
Referenced by QFontEngineQPF::doKerning(), QFontEngineFT::doKerning(), loadKerningPairs(), and QTextEngine::shapeTextWithHarfbuzz().
|
inlinevirtual |
Reimplemented in QFontEngineQPF, QFontEngineFT, QCoreTextFontEngine, QFontEngineDirectWrite, and QFontEngineWin.
Definition at line 171 of file qfontengine_p.h.
Referenced by QFontEngineDirectWrite::emSquareSize(), QFontEngineQPF::emSquareSize(), harfbuzzFont(), and QRawFont::unitsPerEm().
|
inlinevirtual |
Reimplemented in QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QCoreTextFontEngine, QFontEngineXLFD, QFontEngineMac, and QFontEngineWin.
Definition at line 162 of file qfontengine_p.h.
Referenced by QPdfBaseEnginePrivate::drawTextItem().
|
static |
Definition at line 878 of file qfontengine.cpp.
Referenced by QFontEngineWin::getCMap(), QFontEngineQPA::QFontEngineQPA(), QFontEngineQPF::QFontEngineQPF(), and QFontEngineMac::stringToCMap().
|
virtual |
Reimplemented in QFontEngineMulti, and QFontEngineWin.
Definition at line 385 of file qfontengine.cpp.
Referenced by QFontEngineWin::getGlyphBearings(), QFontMetrics::leftBearing(), QFontMetricsF::leftBearing(), QFontMetrics::rightBearing(), and QFontMetricsF::rightBearing().
void QFontEngine::getGlyphPositions | ( | const QGlyphLayout & | glyphs, |
const QTransform & | matrix, | ||
QTextItem::RenderFlags | flags, | ||
QVarLengthArray< glyph_t > & | glyphs_out, | ||
QVarLengthArray< QFixedPoint > & | positions | ||
) |
Definition at line 269 of file qfontengine.cpp.
Referenced by addOutlineToPath(), QFontEngineBox::addOutlineToPath(), QFontEngineBox::boundingBox(), QProxyFontEngine::canRender(), QFontEngineMac::draw(), QFontEngineQPF::draw(), draw_text_item_win(), QPaintEnginePrivate::drawBoxTextItem(), QRasterPaintEngine::drawCachedGlyphs(), QX11PaintEngine::drawFreetype(), QGL2PaintEngineEx::drawTextItem(), QOpenGLPaintEngine::drawTextItem(), QVGPaintEngine::drawTextItem(), QRasterPaintEngine::drawTextItem(), QPdfBaseEnginePrivate::drawTextItem(), QX11PaintEngine::drawXLFD(), QStaticTextPrivate::get(), and QTextLine::glyphs().
|
virtual |
Reimplemented in QFontEngineFT, and QFontEngineQPF.
Definition at line 144 of file qfontengine.cpp.
Referenced by hb_getPointInOutline().
QByteArray QFontEngine::getSfntTable | ( | uint | tag | ) | const |
Definition at line 719 of file qfontengine.cpp.
Referenced by QRawFont::fontTable(), glyphCount(), loadKerningPairs(), loadSingleEngine(), QFontEngineQPF::QFontEngineQPF(), and QFontSubset::toTruetype().
Reimplemented in QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QCoreTextFontEngine, QFontEngineXLFD, QFontEngineDirectWrite, and QFontEngineWin.
Definition at line 153 of file qfontengine_p.h.
Referenced by getSfntTable(), and hb_getSFntTable().
Definition at line 1020 of file qfontengine.cpp.
Referenced by QFontEngineQPA::canRender(), QFontEngineQPF::canRender(), getCMap(), QFontEngineMac::stringToCMap(), QFontEngineQPA::stringToCMap(), and QFontEngineQPF::stringToCMap().
|
virtual |
Reimplemented in QFontEngineFT, QCoreTextFontEngine, QFontEngineXLFD, QFontEngineMac, and QFontEngineWin.
Definition at line 710 of file qfontengine.cpp.
Referenced by QVGFontEngineCleaner::fontEngineDestroyed(), QFontSubset::toTruetype(), and QFontSubset::type1AddedGlyphs().
QFontEngineGlyphCache * QFontEngine::glyphCache | ( | void * | key, |
QFontEngineGlyphCache::Type | type, | ||
const QTransform & | transform | ||
) | const |
Definition at line 752 of file qfontengine.cpp.
Referenced by QGL2PaintEngineExPrivate::drawCachedGlyphs(), and QRasterPaintEngine::drawCachedGlyphs().
|
virtual |
Reimplemented in QFontEngineFT, QFontEngineQPF, QFontEngineQPA, and QProxyFontEngine.
Definition at line 870 of file qfontengine.cpp.
Referenced by QFontEngineMacMulti::stringToCMap().
Referenced by Q_GLOBAL_STATIC_WITH_INITIALIZER().
HB_Face QFontEngine::harfbuzzFace | ( | ) | const |
Definition at line 227 of file qfontengine.cpp.
Referenced by QFontconfigDatabase::fontEngine(), QBasicUnixFontDatabase::fontEngine(), loadEngine(), QTextEngine::shapeText(), QTextEngine::shapeTextWithHarfbuzz(), and tryPatternLoad().
HB_Font QFontEngine::harfbuzzFont | ( | ) | const |
Definition at line 215 of file qfontengine.cpp.
Referenced by QTextEngine::shapeTextWithHarfbuzz().
|
protected |
Definition at line 1133 of file qfontengine.cpp.
Referenced by QFontEngineMac::boundingBox(), and QFontEngineDirectWrite::boundingBox().
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by QTextEngine::fontEngine(), QFontMetrics::leading(), QRawFont::leading(), QFontMetricsF::leading(), QFontMetrics::lineSpacing(), QFontMetricsF::lineSpacing(), properties(), QScriptLine::setDefaultHeight(), and QTextEngine::shapeTextWithHarfbuzz().
|
virtual |
Reimplemented in QFontEngineMulti, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QProxyFontEngine, QFontEngineDirectWrite, and QFontEngineWin.
Definition at line 197 of file qfontengine.cpp.
Referenced by QPainterPath::addText(), QFontEngineBox::boundingBox(), QFontEngineMac::draw(), QTextLine::draw(), QPaintEnginePrivate::drawBoxTextItem(), QPdfBaseEnginePrivate::drawTextItem(), drawTextItemDecoration(), QFontEngineMac::imageForGlyph(), QFontEngineWin::lineThickness(), QFontEngineDirectWrite::lineThickness(), QFontMetrics::lineWidth(), QFontMetricsF::lineWidth(), properties(), and underlinePosition().
void QFontEngine::loadKerningPairs | ( | QFixed | scalingFactor | ) |
Definition at line 802 of file qfontengine.cpp.
Referenced by QFontEngineQPF::doKerning().
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by addGlyphsToPath(), QRawFont::maxCharWidth(), QFontMetrics::maxWidth(), QFontMetricsF::maxWidth(), QTextureGlyphCache::populate(), properties(), and QFontSubset::toTruetype().
|
inlinevirtual |
Reimplemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, QCoreTextFontEngine, QFontEngineWin, and QProxyFontEngine.
Definition at line 226 of file qfontengine_p.h.
Referenced by QFontMetrics::minLeftBearing(), QFontMetricsF::minLeftBearing(), and QFontSubset::toTruetype().
|
inlinevirtual |
Reimplemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineXLFD, QCoreTextFontEngine, QFontEngineWin, and QProxyFontEngine.
Definition at line 227 of file qfontengine_p.h.
Referenced by QTextLine::layout_helper(), QFontMetrics::minRightBearing(), QFontMetricsF::minRightBearing(), and QFontSubset::toTruetype().
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineMacMulti, QCoreTextFontEngineMulti, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by qt_x11_set_fallback_font_family(), and QFontDialogPrivate::setFont().
|
virtual |
Reimplemented in QFontEngineFT, QFontEngineXLFD, QFontEngineMac, and QFontEngineWin.
Definition at line 689 of file qfontengine.cpp.
Referenced by QPdfEnginePrivate::embedFont(), QFontEngineXLFD::faceId(), QVGFontEngineCleaner::fontEngineDestroyed(), QFontSubset::toTruetype(), QFontSubset::toType1(), QFontSubset::type1AddedGlyphs(), and QFontSubset::widthArray().
|
inlinevirtual |
This is a callback from harfbuzz. The font engine uses the font-system in use to find out the advances of each glyph and set it on the layout.
Reimplemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineMacMulti, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Definition at line 180 of file qfontengine_p.h.
Referenced by QRawFont::advancesForGlyphIndexes(), and hb_getAdvances().
|
virtual |
Reimplemented in QFontEngineFT.
Definition at line 685 of file qfontengine.cpp.
Referenced by QFontEngineQPF::loadGlyph().
void QFontEngine::setGlyphCache | ( | void * | key, |
QFontEngineGlyphCache * | data | ||
) |
Definition at line 733 of file qfontengine.cpp.
Referenced by QGL2PaintEngineExPrivate::drawCachedGlyphs(), and QRasterPaintEngine::drawCachedGlyphs().
|
pure virtual |
Implemented in QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineMacMulti, QCoreTextFontEngineMulti, QFontEngineXLFD, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by averageCharWidth(), QFontMetrics::boundingRect(), QFontMetricsF::boundingRect(), QFontMetrics::charWidth(), QPainter::drawText(), QTextEngine::elidedText(), QFontInfo::fixedPitch(), getGlyphPositions(), QFontSubset::getReverseMap(), QRawFont::glyphIndexesForChars(), hb_stringToGlyphs(), QFontMetrics::leftBearing(), QFontMetricsF::leftBearing(), QFontMetrics::rightBearing(), QFontMetricsF::rightBearing(), QTextEngine::shapeTextWithCE(), QFontEngineQPF::stringToCMap(), QFontEngineMulti::stringToCMap(), stringToGlyphs(), QFontMetrics::width(), QFontMetricsF::width(), and xHeight().
|
inlinevirtual |
Reimplemented in QFontEngineFT, QFontEngineDirectWrite, and QCoreTextFontEngine.
Definition at line 169 of file qfontengine_p.h.
Referenced by alphaMapForGlyph(), QGL2PaintEngineExPrivate::drawCachedGlyphs(), QTextLine::glyphs(), and QTextureGlyphCache::populate().
|
inlinevirtual |
Reimplemented in QFontEngineFT, QFontEngineXLFD, QCoreTextFontEngine, QFontEngineMac, and QFontEngineWin.
Definition at line 168 of file qfontengine_p.h.
Referenced by QPdfEnginePrivate::drawTextItem(), and QPdfBaseEnginePrivate::drawTextItem().
glyph_metrics_t QFontEngine::tightBoundingBox | ( | const QGlyphLayout & | glyphs | ) |
Definition at line 395 of file qfontengine.cpp.
Referenced by QTextEngine::tightBoundingBox().
|
pure virtual |
Implemented in QTestFontEngine, QFontEngineMulti, QFontEngineBox, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, QFontEngineDirectWrite, QFontEngineXLFD, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Referenced by QFontEngineQPF::addOutlineToPath(), draw_text_item_win(), QRasterPaintEngine::drawCachedGlyphs(), QWin32PrintEngine::drawTextItem(), QCoreGraphicsPaintEngine::drawTextItem(), QX11PaintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QRasterPaintEngine::drawTextItem(), QPdfBaseEngine::drawTextItem(), QPdfBaseEnginePrivate::drawTextItem(), QTextEngine::elidedText(), QFontInfo::exactMatch(), QFont::exactMatch(), QFontDatabase::findFont(), QFont::freetypeFace(), QRawFont::fromFont(), ft_face(), QFontSubset::glyphName(), QTextLine::glyphs(), QFont::handle(), QFontMetrics::inFont(), QFontMetricsF::inFont(), QFontMetrics::inFontUcs4(), QFontMetricsF::inFontUcs4(), QFontMetrics::leftBearing(), QFontMetricsF::leftBearing(), QFont::macFontID(), pointSize(), qgl_use_font(), qt_x11_set_fallback_font_family(), registerFont(), QFontMetrics::rightBearing(), QFontMetricsF::rightBearing(), QTextEngine::shapeText(), QTextEngine::shapeTextMac(), QTextEngine::shapeTextWithHarfbuzz(), QFontEngineMulti::stringToCMap(), QRasterPaintEngine::supportsTransformations(), and QTextureGlyphCache::textureMapForGlyph().
|
virtual |
Reimplemented in QFontEngineMulti, QFontEngineQPF1, QFontEngineFT, QFontEngineQPF, QFontEngineQPA, and QProxyFontEngine.
Definition at line 210 of file qfontengine.cpp.
Referenced by QPainterPath::addText(), QTextLine::draw(), drawTextItemDecoration(), QFontMetrics::underlinePos(), and QFontMetricsF::underlinePos().
|
virtual |
Reimplemented in QFontEngineMulti, QFontEngineFT, QFontEngineDirectWrite, QFontEngineWin, QProxyFontEngine, QCoreTextFontEngine, and QFontEngineMac.
Definition at line 246 of file qfontengine.cpp.
Referenced by QFontMetrics::xHeight(), QFontEngineWin::xHeight(), QRawFont::xHeight(), QFontMetricsF::xHeight(), and QFontEngineFT::xHeight().
uint QFontEngine::cache_cost |
Definition at line 256 of file qfontengine_p.h.
Referenced by QFontCache::insertEngine(), QFontEngineBox::QFontEngineBox(), QFontEngineMulti::QFontEngineMulti(), QFontEngineMultiFT::QFontEngineMultiFT(), QFontEngineMultiWin::QFontEngineMultiWin(), QFontEngineQPA::QFontEngineQPA(), QFontEngineQPF::QFontEngineQPF(), and QFontEngineXLFD::QFontEngineXLFD().
int QFontEngine::cache_count |
Definition at line 257 of file qfontengine_p.h.
Referenced by QFontCache::insertEngine(), QFontEngine(), releaseCachedFontEngine(), QRawFont::setPixelSize(), and QFontEngineMulti::~QFontEngineMulti().
QFontDef QFontEngine::fontDef |
Definition at line 255 of file qfontengine_p.h.
Referenced by QFontEngineDirectWrite::addGlyphsToPath(), QFontEngineDirectWrite::alphaMapBoundingBox(), QFontEngineMac::ascent(), QFontEngineDirectWrite::ascent(), QFontEngineMac::averageCharWidth(), QFontEngineMac::boundingBox(), QFontEngineDirectWrite::boundingBox(), QFontEngineDirectWrite::cloneWithSize(), QFontEngineWin::cloneWithSize(), QFontEngineX11FT::cloneWithSize(), QFontEngineFT::cloneWithSize(), QFontEngineMac::descent(), QFontEngineDirectWrite::descent(), QFontEngineMac::draw(), QPainter::drawGlyphRun(), QOpenGLPaintEngine::drawStaticTextItem(), QGL2PaintEngineEx::drawStaticTextItem(), QPaintEngineEx::drawStaticTextItem(), QCoreGraphicsPaintEngine::drawTextItem(), QGL2PaintEngineEx::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QPdfBaseEnginePrivate::drawTextItem(), engineForPattern(), QFontInfo::exactMatch(), QFont::exactMatch(), QFontInfo::family(), QRawFont::familyName(), QFontDatabase::findFont(), QFontInfo::fixedPitch(), QFontEngineMacMulti::fontIndexForFontID(), harfbuzzFont(), QFontEngineMac::imageForGlyph(), QFontEngineDirectWrite::imageForGlyph(), initFontInfo(), QFontInfo::italic(), QFontEngineMac::leading(), QFontEngineDirectWrite::leading(), lineThickness(), QFontDatabase::load(), QFontEngineMultiFT::loadEngine(), QFontEngineMultiWin::loadEngine(), QFontEngineMultiQPA::loadEngine(), QFontEngineMultiQWS::loadEngine(), loadEngine(), loadFc(), loadWin(), QFontDatabase::loadXlfd(), QFontEngineQPF::lockFace(), QFontEngineMac::maxCharWidth(), QFontInfo::pixelSize(), QRawFont::pixelSize(), QRawFontPrivate::platformLoadFromData(), QFontInfo::pointSize(), QFontInfo::pointSizeF(), properties(), QFontEngineDirectWrite::QFontEngineDirectWrite(), QFontEngineMac::QFontEngineMac(), QFontEngineMacMulti::QFontEngineMacMulti(), QFontEngineMultiFT::QFontEngineMultiFT(), QFontEngineMultiQPA::QFontEngineMultiQPA(), QFontEngineMultiQWS::QFontEngineMultiQWS(), QFontEngineMultiWin::QFontEngineMultiWin(), QFontEngineMultiXLFD::QFontEngineMultiXLFD(), QFontEngineQPA::QFontEngineQPA(), QFontEngineQPF::QFontEngineQPF(), QProxyFontEngine::QProxyFontEngine(), QFontEngineMac::recalcAdvances(), QFontEngineDirectWrite::recalcAdvances(), registerFont(), QFontEngineMacMulti::stringToCMapInternal(), QFontInfo::style(), QRawFont::style(), QFontInfo::styleHint(), QFontInfo::styleName(), QRawFont::styleName(), QRasterPaintEngine::supportsTransformations(), QFontSubset::toTruetype(), QFontSubset::toType1(), QFontInfo::weight(), QRawFont::weight(), QFontEngineMac::xHeight(), and QFontEngineDirectWrite::xHeight().
uint QFontEngine::fsType |
Definition at line 258 of file qfontengine_p.h.
Referenced by QPdfBaseEnginePrivate::drawTextItem(), QFontEngineXLFD::faceId(), QFontEngine(), QFontEngineMac::QFontEngineMac(), and QFontSubset::toType1().
int QFontEngine::glyphFormat |
Definition at line 276 of file qfontengine_p.h.
Referenced by QRasterPaintEngine::drawCachedGlyphs(), QGL2PaintEngineEx::drawStaticTextItem(), QGL2PaintEngineEx::drawTextItem(), loadEngine(), QFontEngine(), and QFontEngineQPF::QFontEngineQPF().
|
mutable |
Definition at line 261 of file qfontengine_p.h.
Referenced by harfbuzzFace(), QFontEngine(), and ~QFontEngine().
|
mutable |
Definition at line 260 of file qfontengine_p.h.
Referenced by harfbuzzFont(), and QFontEngine().
Definition at line 272 of file qfontengine_p.h.
Referenced by doKerning(), and loadKerningPairs().
|
mutableprivate |
Definition at line 289 of file qfontengine_p.h.
Referenced by glyphCache(), setGlyphCache(), and ~QFontEngine().
QAtomicInt QFontEngine::ref |
Definition at line 254 of file qfontengine_p.h.
Referenced by QFontCache::clear(), QFontEngineMac::faceId(), QFontDatabase::findFont(), QTextEngine::fontEngine(), QFontEngineMacMulti::fontIndexForFontID(), QRawFont::fromFont(), QTextLine::glyphs(), QFontDatabase::load(), QFontEngineMultiXLFD::loadEngine(), QFontEngineMultiFT::loadEngine(), loadWin(), QFontDatabase::loadXlfd(), QRawFontPrivate::platformLoadFromData(), QPainterReplayer::process(), QFontEngine(), QFontEngineMacMulti::QFontEngineMacMulti(), QFontEngineMultiFT::QFontEngineMultiFT(), QFontEngineMultiQPA::QFontEngineMultiQPA(), QFontEngineMultiQWS::QFontEngineMultiQWS(), QFontEngineMultiWin::QFontEngineMultiWin(), QFontSubset::QFontSubset(), QTextItemIntCopy::QTextItemIntCopy(), registerFont(), releaseCachedFontEngine(), releaseFontData(), QStaticTextItem::setFontEngine(), QRawFont::setPixelSize(), QFontEngineData::~QFontEngineData(), QFontEngineMacMulti::~QFontEngineMacMulti(), QFontEngineMulti::~QFontEngineMulti(), QFontSubset::~QFontSubset(), QRawFontPrivate::~QRawFontPrivate(), and QTextItemIntCopy::~QTextItemIntCopy().
bool QFontEngine::symbol |
Definition at line 259 of file qfontengine_p.h.
Referenced by QFontEngineQPA::canRender(), QFontEngineQPF::canRender(), QFontDatabase::findFont(), loadEngine(), loadFc(), QFontDatabase::loadXlfd(), QFontEngine(), QFontEngineQPA::QFontEngineQPA(), QFontEngineQPF::QFontEngineQPF(), QFontEngineQPA::stringToCMap(), and QFontEngineQPF::stringToCMap().