Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qfontengine_p.h>
Static Public Member Functions | |
static uchar | highByte (glyph_t glyph) |
static QFontEngine * | createMultiFontEngine (QFontEngine *fe, int script) |
Static Public Member Functions inherited from QFontEngine | |
static bool | isIgnorableChar (char32_t ucs4) |
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) |
Protected Member Functions | |
virtual void | ensureFallbackFamiliesQueried () |
virtual bool | shouldLoadFontEngineForCharacter (int at, uint ucs4) const |
virtual QFontEngine * | loadEngine (int at) |
Protected Member Functions inherited from QFontEngine | |
QFontEngine (Type type) | |
QFixed | firstLeftBearing (const QGlyphLayout &glyphs) |
QFixed | lastRightBearing (const QGlyphLayout &glyphs) |
QFixed | calculatedCapHeight () const |
virtual void | initializeHeightMetrics () const |
bool | processHheaTable () const |
bool | processOS2Table () const |
Definition at line 436 of file qfontengine_p.h.
|
explicit |
Definition at line 1695 of file qfontengine.cpp.
References QFontEngine::cache_cost, engine, QFontEngine::fontDef, QFontEngine::Multi, Q_ASSERT, and QList< T >::resize().
QFontEngineMulti::~QFontEngineMulti | ( | ) |
Definition at line 1717 of file qfontengine.cpp.
References QList< T >::at(), QBasicAtomicInteger< T >::deref(), i, QFontEngine::ref, and QList< T >::size().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2063 of file qfontengine.cpp.
References QGlyphLayout::advances, engine, QGlyphLayout::glyphs, highByte(), i, QGlyphLayout::mid(), QGlyphLayout::numGlyphs, QTextItem::RightToLeft, stripped(), and QFixed::toReal().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2295 of file qfontengine.cpp.
References engine, highByte(), and stripped().
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 2289 of file qfontengine.cpp.
References engine, highByte(), and stripped().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2307 of file qfontengine.cpp.
References engine, highByte(), and stripped().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2301 of file qfontengine.cpp.
References engine, highByte(), and stripped().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2315 of file qfontengine.cpp.
References engine, highByte(), and stripped().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 1993 of file qfontengine.cpp.
References engine, QGlyphLayout::glyphs, highByte(), i, QGlyphLayout::mid(), QGlyphLayout::numGlyphs, qMax(), qMin(), and stripped().
|
overridevirtual |
Implements QFontEngine.
Definition at line 2208 of file qfontengine.cpp.
References engine, highByte(), and stripped().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2263 of file qfontengine.cpp.
References canRender(), engine, QFontEngine::GlyphIndicesOnly, i, QGlyphLayout::numGlyphs, and stringToCMap().
Referenced by canRender().
|
overridevirtual |
|
static |
Definition at line 2331 of file qfontengine.cpp.
References engine, QSet< T >::find(), QGuiApplicationPrivate::instance(), QFontCache::instance(), it, QFontEngine::Multi, and Q_ASSERT.
Referenced by QTextEngine::fontEngine().
|
overridevirtual |
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2165 of file qfontengine.cpp.
References engine, QGlyphLayout::glyphs, highByte(), i, QGlyphLayout::mid(), QGlyphLayout::numGlyphs, and stripped().
|
inline |
Definition at line 480 of file qfontengine_p.h.
Referenced by QPainterPrivate::drawTextItem(), and QRawFont::fromFont().
void QFontEngineMulti::ensureEngineAt | ( | int | at | ) |
Definition at line 1758 of file qfontengine.cpp.
References QList< T >::at(), at, engine, ensureFallbackFamiliesQueried(), QFontEngine::fontDef, loadEngine(), QFontEngine::Multi, QFontDef::pixelSize, Q_ASSERT, and QList< T >::size().
Referenced by QPainterPrivate::drawTextItem(), QTextEngine::elidedText(), getGlyphBearings(), glyphIndex(), and stringToCMap().
|
protectedvirtual |
Definition at line 1728 of file qfontengine.cpp.
References QFont::AnyStyle, QFontDef::families, QFontDef::fixedPitch, QFontEngine::fontDef, qt_fallbacksForFamily(), setFallbackFamiliesList(), QFontDef::style, QFontDef::styleHint, and QFont::TypeWriter.
Referenced by ensureEngineAt(), glyphIndex(), and stringToCMap().
|
inline |
Definition at line 474 of file qfontengine_p.h.
References QString::at(), and at.
Referenced by loadEngine().
|
inline |
Definition at line 473 of file qfontengine_p.h.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2056 of file qfontengine.cpp.
References engine, ensureEngineAt(), highByte(), and stripped().
Implements QFontEngine.
Definition at line 1794 of file qfontengine.cpp.
References QList< T >::at(), QFontEngine::Box, engine, ensureEngineAt(), ensureFallbackFamiliesQueried(), QFontEngine::isIgnorableChar(), Q_ASSERT, qMin(), shouldLoadFontEngineForCharacter(), and QList< T >::size().
Definition at line 1688 of file qfontengine.cpp.
Referenced by addOutlineToPath(), alphaMapForGlyph(), alphaMapForGlyph(), alphaMapForGlyph(), alphaMapForGlyph(), alphaRGBMapForGlyph(), boundingBox(), boundingBox(), doKerning(), getGlyphBearings(), QCoreTextFontEngine::recalcAdvances(), and recalcAdvances().
|
overridevirtual |
|
overridevirtual |
|
protectedvirtual |
Definition at line 1773 of file qfontengine.cpp.
References at, engine, fallbackFamilyAt(), QFontDatabasePrivate::findFont(), QFontEngine::fontDef, QFont::NoFontMerging, request, and QFont::StyleNormal.
Referenced by ensureEngineAt().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 2122 of file qfontengine.cpp.
References engine, QGlyphLayout::glyphs, highByte(), i, QGlyphLayout::mid(), QGlyphLayout::numGlyphs, and stripped().
void QFontEngineMulti::setFallbackFamiliesList | ( | const QStringList & | fallbackFamilies | ) |
Definition at line 1739 of file qfontengine.cpp.
References QList< T >::at(), engine, QFontDef::families, QFontEngine::fontDef, Q_ASSERT, QList< T >::resize(), and QList< T >::size().
Referenced by ensureFallbackFamiliesQueried().
|
protectedvirtual |
Reimplemented in QFontEngineMultiFontConfig.
Definition at line 1986 of file qfontengine.cpp.
Referenced by glyphIndex(), and stringToCMap().
|
overridevirtual |
Implements QFontEngine.
Definition at line 1824 of file qfontengine.cpp.
References QList< T >::at(), QFontEngine::Box, QFont::ContextFontMerging, QGlyphLayout::copy(), engine, ensureEngineAt(), ensureFallbackFamiliesQueried(), QFontEngine::fontDef, QFontEngine::GlyphIndicesOnly, QGlyphLayout::glyphs, QFontEngine::isColorFont(), QFontEngine::isIgnorableChar(), it, QGlyphLayout::mid(), QGlyphLayout::numGlyphs, Q_ASSERT, qMin(), shouldLoadFontEngineForCharacter(), QList< T >::size(), str, and QFontDef::styleStrategy.
Referenced by canRender().
|
overridevirtual |
|
overridevirtual |