![]() |
Qt 6.x
The Qt SDK
|
#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"
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) |
|
inlinenoexcept |
Definition at line 110 of file qfont_p.h.
References qHashMulti(), qRound64(), and seed.
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().
Q_GUI_EXPORT int qt_legacyToOpenTypeWeight | ( | int | weight | ) |
Definition at line 192 of file qfont.cpp.
References convertWeights().
Referenced by QFont::fromString().
Q_GUI_EXPORT int qt_openTypeToLegacyWeight | ( | int | weight | ) |
Definition at line 198 of file qfont.cpp.
References convertWeights().