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

(81e596c24fc106439ce4135478a2d18d23fdbaac)

#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 detectColorFont (const QByteArray &filename)
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

typedef QList< FontKey > FontKeys = QList<FontKey>

Definition at line 82 of file qwindowsfontdatabase_ft.cpp.

Function Documentation

◆ addFontToDatabase()

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

Definition at line 153 of file qwindowsfontdatabase_ft.cpp.

◆ createFontFile()

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

Definition at line 66 of file qwindowsfontdatabase_ft.cpp.

◆ detectColorFont()

bool detectColorFont ( const QByteArray & filename)
static

Definition at line 136 of file qwindowsfontdatabase_ft.cpp.

◆ findFontKey()

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

Definition at line 120 of file qwindowsfontdatabase_ft.cpp.

◆ fontKeys()

FontKeys & fontKeys ( )
static

Definition at line 84 of file qwindowsfontdatabase_ft.cpp.

◆ populateFontFamilies()

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

Definition at line 361 of file qwindowsfontdatabase_ft.cpp.

◆ storeFont()

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

Definition at line 291 of file qwindowsfontdatabase_ft.cpp.

◆ writingSystemFromCharSet()

QFontDatabase::WritingSystem writingSystemFromCharSet ( uchar charSet)
inlinestatic

Definition at line 29 of file qwindowsfontdatabase_ft.cpp.