Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsfontdatabase.cpp File Reference

(6704e55a9c04014097cc2e90fd75b20ae5da56c8)

#include "qwindowsfontdatabase_p.h"
#include "qwindowsfontdatabase_ft_p.h"
#include "qwindowsfontengine_p.h"
#include <QtCore/qt_windows.h>
#include <QtGui/QFont>
#include <QtGui/QGuiApplication>
#include <QtGui/private/qtgui-config_p.h>
#include <QtCore/qmath.h>
#include <QtCore/QDebug>
#include <QtCore/QFile>
#include <QtCore/QtEndian>
#include <QtCore/QStandardPaths>
#include <QtCore/private/qduplicatetracker_p.h>
#include <QtCore/private/qwinregistry_p.h>
#include <wchar.h>
#include <mutex>
Include dependency graph for qwindowsfontdatabase.cpp:

Go to the source code of this file.

Functions

QDebug operator<< (QDebug d, const QFontDef &def)
QDebug operator<< (QDebug d, const LOGFONT &lf)
static QFontDatabase::WritingSystem writingSystemFromCharSet (uchar charSet)
bool qt_localizedName (const QString &name)
QString qt_getEnglishName (const QString &familyName, bool includeStyle)
QFontNames qt_getCanonicalFontNames (const LOGFONT &lf)
static bool addFontToDatabase (QString familyName, QString styleName, const LOGFONT &logFont, const TEXTMETRIC *textmetric, const FONTSIGNATURE *signature, int type, StoreFontPayload *sfp)
static int QT_WIN_CALLBACK storeFont (const LOGFONT *logFont, const TEXTMETRIC *textmetric, DWORD type, LPARAM lparam)
static int QT_WIN_CALLBACK populateFontFamilies (const LOGFONT *logFont, const TEXTMETRIC *textmetric, DWORD, LPARAM)
static QList< quint32getTrueTypeFontOffsets (const uchar *fontData, const uchar *fileEndSentinel)
static void getFontTable (const uchar *fileBegin, const uchar *fileEndSentinel, const uchar *data, quint32 tag, const uchar **table, quint32 *length)
static void getFamiliesAndSignatures (const QByteArray &fontData, QList< QFontNames > *families, QList< FONTSIGNATURE > *signatures, QList< QFontValues > *values)

Function Documentation

◆ addFontToDatabase()

bool addFontToDatabase ( QString familyName,
QString styleName,
const LOGFONT & logFont,
const TEXTMETRIC * textmetric,
const FONTSIGNATURE * signature,
int type,
StoreFontPayload * sfp )
static

Definition at line 451 of file qwindowsfontdatabase.cpp.

◆ getFamiliesAndSignatures()

void getFamiliesAndSignatures ( const QByteArray & fontData,
QList< QFontNames > * families,
QList< FONTSIGNATURE > * signatures,
QList< QFontValues > * values )
static

◆ getFontTable()

void getFontTable ( const uchar * fileBegin,
const uchar * fileEndSentinel,
const uchar * data,
quint32 tag,
const uchar ** table,
quint32 * length )
static

Definition at line 894 of file qwindowsfontdatabase.cpp.

◆ getTrueTypeFontOffsets()

QList< quint32 > getTrueTypeFontOffsets ( const uchar * fontData,
const uchar * fileEndSentinel )
static

Definition at line 857 of file qwindowsfontdatabase.cpp.

◆ operator<<() [1/2]

QDebug operator<< ( QDebug d,
const LOGFONT & lf )

Definition at line 148 of file qwindowsfontdatabase.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug d,
const QFontDef & def )

Definition at line 127 of file qwindowsfontdatabase.cpp.

◆ populateFontFamilies()

int QT_WIN_CALLBACK populateFontFamilies ( const LOGFONT * logFont,
const TEXTMETRIC * textmetric,
DWORD ,
LPARAM  )
static

Definition at line 639 of file qwindowsfontdatabase.cpp.

◆ qt_getCanonicalFontNames()

QFontNames qt_getCanonicalFontNames ( const LOGFONT & lf)

Definition at line 406 of file qwindowsfontdatabase.cpp.

◆ qt_getEnglishName()

QString qt_getEnglishName ( const QString & familyName,
bool includeStyle )

Definition at line 351 of file qwindowsfontdatabase.cpp.

◆ qt_localizedName()

bool qt_localizedName ( const QString & name)

Definition at line 195 of file qwindowsfontdatabase.cpp.

◆ storeFont()

int QT_WIN_CALLBACK storeFont ( const LOGFONT * logFont,
const TEXTMETRIC * textmetric,
DWORD type,
LPARAM lparam )
static

Definition at line 580 of file qwindowsfontdatabase.cpp.

◆ writingSystemFromCharSet()

QFontDatabase::WritingSystem writingSystemFromCharSet ( uchar charSet)
inlinestatic

Definition at line 158 of file qwindowsfontdatabase.cpp.