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
qfont_p.h File Reference

(7bc6f4ae8edc5758af567d8326cb798d423c3982)

#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.

Referenced by QFont::setWeight(), and weightFromFcWeight().

◆ QFONT_WEIGHT_MIN

#define QFONT_WEIGHT_MIN   1

Definition at line 33 of file qfont_p.h.

Referenced by QFont::setWeight().

Function Documentation

◆ qHash()

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

Definition at line 128 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 140 of file qfont.cpp.

◆ qt_defaultDpiX()

Q_GUI_EXPORT int qt_defaultDpiX ( )

Definition at line 110 of file qfont.cpp.

◆ qt_defaultDpiY()

Q_GUI_EXPORT int qt_defaultDpiY ( )

Definition at line 125 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 195 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 201 of file qfont.cpp.

References convertWeights().

+ Here is the call graph for this function: