Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qfont_p.h File Reference
#include <QtGui/private/qtguiglobal_p.h>
#include "QtGui/qfont.h"
#include "QtCore/qmap.h"
#include "QtCore/qhash.h"
#include "QtCore/qobject.h"
#include "QtCore/qstringlist.h"
#include <QtGui/qfontdatabase.h>
#include "private/qfixed_p.h"
+ Include dependency graph for qfont_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QFontDef
 
class  QFontEngineData
 
class  QFontPrivate
 
class  QFontCache
 
struct  QFontCache::Key
 
struct  QFontCache::Engine
 

Macros

#define QFONT_WEIGHT_MIN   1
 
#define QFONT_WEIGHT_MAX   1000
 

Functions

size_t qHash (const QFontDef &fd, size_t seed=0) noexcept
 
Q_GUI_EXPORT int qt_defaultDpiX ()
 
Q_GUI_EXPORT int qt_defaultDpiY ()
 
Q_GUI_EXPORT int qt_defaultDpi ()
 
Q_GUI_EXPORT int qt_legacyToOpenTypeWeight (int weight)
 
Q_GUI_EXPORT int qt_openTypeToLegacyWeight (int weight)
 

Macro Definition Documentation

◆ QFONT_WEIGHT_MAX

#define QFONT_WEIGHT_MAX   1000

Definition at line 34 of file qfont_p.h.

◆ QFONT_WEIGHT_MIN

#define QFONT_WEIGHT_MIN   1

Definition at line 33 of file qfont_p.h.

Function Documentation

◆ qHash()

size_t qHash ( const QFontDef fd,
size_t  seed = 0 
)
inlinenoexcept

Definition at line 110 of file qfont_p.h.

References qHashMulti(), qRound64(), and seed.

+ Here is the call graph for this function:

◆ qt_defaultDpi()

Q_GUI_EXPORT int qt_defaultDpi ( )

Definition at line 137 of file qfont.cpp.

◆ qt_defaultDpiX()

Q_GUI_EXPORT int qt_defaultDpiX ( )

Definition at line 107 of file qfont.cpp.

◆ qt_defaultDpiY()

Q_GUI_EXPORT int qt_defaultDpiY ( )

Definition at line 122 of file qfont.cpp.

References Qt::AA_Use96Dpi, QCoreApplication::instance(), QScreen::logicalDotsPerInchY, QGuiApplication::primaryScreen, qRound(), qt_is_tty_app, and screen.

Referenced by QFakeDevice::QFakeDevice(), QTextEngine::calculateTabWidth(), QAlphaPaintEngine::flushAndInit(), QPicture::metric(), QBlittablePlatformPixmap::metric(), QRasterPlatformPixmap::metric(), QOpenGLWidget::metric(), QFontDatabase::pointSizes(), QTextDocument::print(), qt_defaultDpi(), and QFontDatabase::smoothSizes().

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

◆ qt_legacyToOpenTypeWeight()

Q_GUI_EXPORT int qt_legacyToOpenTypeWeight ( int  weight)

Definition at line 192 of file qfont.cpp.

References convertWeights().

Referenced by QFont::fromString().

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

◆ qt_openTypeToLegacyWeight()

Q_GUI_EXPORT int qt_openTypeToLegacyWeight ( int  weight)

Definition at line 198 of file qfont.cpp.

References convertWeights().

+ Here is the call graph for this function: