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
qwindowsfontdatabase_ft.cpp File Reference

(2c67774f99b4cd874f7e644c9ab7fc6cfe189e4b)

#include "qwindowsfontdatabase_ft_p.h"
#include "qwindowsfontdatabase_p.h"
#include <QtGui/private/qfontengine_ft_p.h>
#include <ft2build.h>
#include <QtCore/QDir>
#include <QtCore/QDirIterator>
#include <QtCore/QSettings>
#include <QtCore/private/qduplicatetracker_p.h>
#include <QtGui/QGuiApplication>
#include <QtGui/QFontDatabase>
#include <wchar.h>
+ Include dependency graph for qwindowsfontdatabase_ft.cpp:

Go to the source code of this file.

Typedefs

using FontKeys = QList<FontKey>
 

Functions

static QFontDatabase::WritingSystem writingSystemFromCharSet (uchar charSet)
 
static FontFilecreateFontFile (const QString &fileName, int index)
 
static FontKeysfontKeys ()
 
static const FontKey * findFontKey (const QString &name, int *indexIn=nullptr)
 
static bool addFontToDatabase (QString familyName, QString styleName, const QString &fullName, const LOGFONT &logFont, const TEXTMETRIC *textmetric, const FONTSIGNATURE *signature, int type)
 
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)
 

Typedef Documentation

◆ FontKeys

using FontKeys = QList<FontKey>

Definition at line 82 of file qwindowsfontdatabase_ft.cpp.

Function Documentation

◆ addFontToDatabase()

◆ createFontFile()

static FontFile * createFontFile ( const QString & fileName,
int index )
static

Definition at line 66 of file qwindowsfontdatabase_ft.cpp.

References FontFile::fileName, and fileName.

Referenced by addFontToDatabase().

+ Here is the caller graph for this function:

◆ findFontKey()

static const FontKey * findFontKey ( const QString & name,
int * indexIn = nullptr )
static

Definition at line 120 of file qwindowsfontdatabase_ft.cpp.

References fontKeys(), it, and keys.

Referenced by addFontToDatabase(), and populateFontFamilies().

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

◆ fontKeys()

static FontKeys & fontKeys ( )
static

Definition at line 84 of file qwindowsfontdatabase_ft.cpp.

References allKeys(), i, keys, QSettings::NativeFormat, Q_ASSERT, QStringLiteral, QString::remove(), QStringView::split(), and QStringView::trimmed().

Referenced by findFontKey().

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

◆ populateFontFamilies()

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

Definition at line 342 of file qwindowsfontdatabase_ft.cpp.

References findFontKey(), QString::fromWCharArray(), qt_getEnglishName(), qt_localizedName(), QPlatformFontDatabase::registerAliasToFontFamily(), and QPlatformFontDatabase::registerFontFamily().

+ Here is the call graph for this function:

◆ storeFont()

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

Definition at line 272 of file qwindowsfontdatabase_ft.cpp.

References QString::fromWCharArray(), and fullName.

+ Here is the call graph for this function:

◆ writingSystemFromCharSet()

static QFontDatabase::WritingSystem writingSystemFromCharSet ( uchar charSet)
inlinestatic

Definition at line 29 of file qwindowsfontdatabase_ft.cpp.

References QFontDatabase::Any, QFontDatabase::Arabic, QFontDatabase::Cyrillic, QFontDatabase::Greek, QFontDatabase::Hebrew, QFontDatabase::Japanese, QFontDatabase::Korean, QFontDatabase::Latin, QFontDatabase::SimplifiedChinese, QFontDatabase::Symbol, QFontDatabase::Thai, QFontDatabase::TraditionalChinese, and QFontDatabase::Vietnamese.

Referenced by addFontToDatabase().

+ Here is the caller graph for this function: