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>.
Loading...
Searching...
No Matches
QFontDef Struct Reference

#include <qfont_p.h>

+ Collaboration diagram for QFontDef:

Public Member Functions

 QFontDef ()
 
bool exactMatch (const QFontDef &other) const
 
bool operator== (const QFontDef &other) const
 
bool operator< (const QFontDef &other) const
 

Public Attributes

QStringList families
 
QString styleName
 
QStringList fallBackFamilies
 
QMap< QFont::Tag, float > variableAxisValues
 
qreal pointSize
 
qreal pixelSize
 
uint styleStrategy: 16
 
uint stretch: 12
 
uint style: 2
 
uint hintingPreference: 2
 
uint styleHint: 8
 
uint weight: 10
 
uint fixedPitch: 1
 
uint ignorePitch: 1
 
uint fixedPitchComputed: 1
 
uint reserved: 11
 

Detailed Description

Definition at line 36 of file qfont_p.h.

Constructor & Destructor Documentation

◆ QFontDef()

QFontDef::QFontDef ( )
inline

Definition at line 38 of file qfont_p.h.

Member Function Documentation

◆ exactMatch()

bool QFontDef::exactMatch ( const QFontDef & other) const

Definition at line 49 of file qfont.cpp.

References families, fixedPitch, i, ignorePitch, QString::isEmpty(), other(), QFontDatabasePrivate::parseFontName(), pixelSize, pointSize, stretch, style, styleHint, styleName, styleStrategy, and variableAxisValues.

Referenced by QFont::exactMatch(), and QFontInfo::exactMatch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator<()

bool QFontDef::operator< ( const QFontDef & other) const
inline

Definition at line 92 of file qfont_p.h.

References QMap< Key, T >::constBegin(), QMap< Key, T >::constEnd(), families, fixedPitch, hintingPreference, ignorePitch, it, other(), pixelSize, QMap< Key, T >::size(), stretch, style, styleHint, styleName, styleStrategy, and variableAxisValues.

+ Here is the call graph for this function:

◆ operator==()

bool QFontDef::operator== ( const QFontDef & other) const
inline

Definition at line 77 of file qfont_p.h.

References families, fixedPitch, hintingPreference, ignorePitch, other(), pixelSize, stretch, style, styleHint, styleName, styleStrategy, and variableAxisValues.

+ Here is the call graph for this function:

Member Data Documentation

◆ fallBackFamilies

QStringList QFontDef::fallBackFamilies

◆ families

◆ fixedPitch

◆ fixedPitchComputed

uint QFontDef::fixedPitchComputed

Definition at line 73 of file qfont_p.h.

◆ hintingPreference

◆ ignorePitch

uint QFontDef::ignorePitch

◆ pixelSize

qreal QFontDef::pixelSize

Definition at line 61 of file qfont_p.h.

Referenced by QCoreTextFontEngine::QCoreTextFontEngine(), QFont::QFont(), QFont::QFont(), QWindowsFontEngine::QWindowsFontEngine(), QWindowsFontEngineDirectWrite::QWindowsFontEngineDirectWrite(), QWindowsFontEngine::addGlyphsToPath(), QWindowsFontEngineDirectWrite::addGlyphsToPath(), QCoreTextRawFontEngine::cloneWithSize(), QCoreTextFontEngine::cloneWithSize(), QFontEngineFT::cloneWithSize(), QWindowsFontEngineDirectWrite::cloneWithSize(), QFreetypeFace::computeSize(), QCoreTextFontEngine::create(), QFontEngineFT::create(), QWindowsFontEngineDirectWrite::createHFONT(), QCoreTextFontEngine::draw(), QWindowsDirect2DPaintEnginePrivate::drawGlyphRun(), QFontEngineMulti::ensureEngineAt(), exactMatch(), QWindowsDirectWriteFontDatabase::fontEngine(), QCoreTextFontDatabaseEngineFactory< T >::fontEngine(), QWindowsFontEngine::getCMap(), QCoreTextFontEngine::imageForGlyph(), QCoreTextFontEngine::init(), QFontEngineFT::init(), initFontDef(), QWindowsFontEngine::initFontInfo(), QWindowsFontEngineDirectWrite::initFontInfo(), QFontCache::insertEngineData(), QFontEngine::lineThickness(), QFontDatabasePrivate::load(), QFontEngine::minRightBearing(), operator<(), operator<<(), operator==(), QFont::pixelSize(), QRawFont::pixelSize(), QFontEngine::processHheaTable(), QFontEngine::processOS2Table(), QWindowsFontEngineDirectWrite::recalcAdvances(), QFontPrivate::resolve(), QFont::setPixelSize(), QRawFont::setPixelSize(), QFont::setPointSize(), QFont::setPointSizeF(), QPaintEngineEx::shouldDrawCachedGlyphs(), and QFontSubset::toTruetype().

◆ pointSize

◆ reserved

uint QFontDef::reserved

Definition at line 74 of file qfont_p.h.

◆ stretch

◆ style

◆ styleHint

◆ styleName

◆ styleStrategy

◆ variableAxisValues

◆ weight


The documentation for this struct was generated from the following files: