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>.
|
Windows font engine using Direct Write. More...
#include <qwindowsfontenginedirectwrite_p.h>
Static Public Member Functions | |
static QString | fontNameSubstitute (const QString &familyName) |
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) |
Windows font engine using Direct Write.
Font engine for subpixel positioned text on Windows Vista (with platform update) and later. If selected during configuration, the engine will be selected only when the hinting preference of a font is set to None or Vertical hinting, or when fontengine=directwrite is selected as platform option.
Definition at line 39 of file qwindowsfontenginedirectwrite_p.h.
|
explicit |
Definition at line 201 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::cache_cost, QFontEngine::fontDef, QFontDef::pixelSize, Q_ASSERT, qCDebug, and QFixed::toInt().
Referenced by cloneWithSize().
|
override |
Definition at line 225 of file qwindowsfontenginedirectwrite.cpp.
References QString::isEmpty(), QGuiApplicationPrivate::platformIntegration(), and qCDebug.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 566 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::fontDef, i, QFontDef::pixelSize, positions, Q_UNUSED, and qErrnoWarning().
|
overridevirtual |
Reimplemented from QFontEngine.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 678 of file qwindowsfontenginedirectwrite.cpp.
References alphaMapForGlyph().
Referenced by alphaMapForGlyph().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 657 of file qwindowsfontenginedirectwrite.cpp.
References QImage::constScanLine(), QFontEngine::Format_A8, QImage::Format_Alpha8, QFontEngine::glyphMargin(), QImage::height(), QWindowsFontEngineData::pow_gamma, qGray(), and QImage::width().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 1003 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::Format_A32, QImage::Format_RGB32, QFontEngine::glyphMargin(), and xform.
|
overridevirtual |
Reimplemented from QFontEngine.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 597 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::ascent(), QFontEngine::descent(), QGlyphLayout::effectiveAdvance(), QFontEngine::firstLeftBearing(), i, QFontEngine::lastRightBearing(), and QGlyphLayout::numGlyphs.
|
overridevirtual |
Implements QFontEngine.
Definition at line 610 of file qwindowsfontenginedirectwrite.cpp.
References DESIGN_TO_LOGICAL, glyphIndex(), and qErrnoWarning().
|
overridevirtual |
Implements QFontEngine.
Definition at line 639 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::calculatedCapHeight().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 1017 of file qwindowsfontenginedirectwrite.cpp.
References QWindowsFontEngineDirectWrite(), QFontEngine::fontDef, QString::isEmpty(), QFontDef::pixelSize, QGuiApplicationPrivate::platformIntegration(), and setUniqueFamilyName().
HFONT QWindowsFontEngineDirectWrite::createHFONT | ( | ) | const |
Definition at line 317 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::fontDef, QFontDef::pixelSize, and qRound().
|
inline |
Definition at line 96 of file qwindowsfontenginedirectwrite_p.h.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 417 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::emSquareSize().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 477 of file qwindowsfontenginedirectwrite.cpp.
|
inline |
Definition at line 92 of file qwindowsfontenginedirectwrite_p.h.
Definition at line 1071 of file qwindowsfontenginedirectwrite.cpp.
References QString::isEmpty(), and QWinRegistryKey::stringValue().
Referenced by QWindowsFontDatabase::createEngine().
|
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 390 of file qwindowsfontenginedirectwrite.cpp.
References Q_ASSERT, qErrnoWarning(), ret, and tag.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 519 of file qwindowsfontenginedirectwrite.cpp.
References qErrnoWarning().
Implements QFontEngine.
Definition at line 425 of file qwindowsfontenginedirectwrite.cpp.
References glyphIndex(), and qErrnoWarning().
Referenced by boundingBox(), and glyphIndex().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 1034 of file qwindowsfontenginedirectwrite.cpp.
Definition at line 1039 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::fontDef, QFontEngine::Format_ARGB, QFontEngine::glyphFormat, QFontDef::pixelSize, QFontDef::pointSize, qRound(), request, QFontDef::styleName, and QFontEngine::FaceId::variableAxes.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 333 of file qwindowsfontenginedirectwrite.cpp.
References DESIGN_TO_LOGICAL, QFontEngine::initializeHeightMetrics(), QFontEngine::m_ascent, QFontEngine::m_descent, and QFontEngine::m_leading.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 382 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::lineThickness().
|
overridevirtual |
Implements QFontEngine.
Definition at line 652 of file qwindowsfontenginedirectwrite.cpp.
References QFixed::toReal().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 692 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::properties().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 482 of file qwindowsfontenginedirectwrite.cpp.
References QGlyphLayout::advances, QFont::AnyStretch, DESIGN_TO_LOGICAL, QFontEngine::DesignMetrics, QFontEngine::fontDef, QGlyphLayout::glyphs, i, QGlyphLayout::numGlyphs, QFontDef::pixelSize, qErrnoWarning(), and QFontDef::stretch.
Referenced by stringToCMap().
Definition at line 98 of file qwindowsfontenginedirectwrite_p.h.
Referenced by cloneWithSize().
|
overridevirtual |
Implements QFontEngine.
Definition at line 438 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::GlyphIndicesOnly, QGlyphLayout::glyphs, i, QFontEngine::isIgnorableChar(), it, QGlyphLayout::numGlyphs, Q_ASSERT, qErrnoWarning(), recalcAdvances(), and str.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 684 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::fontDef.
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 374 of file qwindowsfontenginedirectwrite.cpp.
References QFontEngine::underlinePosition().
|
overridevirtual |
Reimplemented from QFontEngine.
Definition at line 647 of file qwindowsfontenginedirectwrite.cpp.