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

(421e7621faa50bf9007076d6be4e0da9514edc59)

#include "qwindowsdirectwritefontdatabase_p.h"
#include "qwindowsfontenginedirectwrite_p.h"
#include "qwindowsfontdatabase_p.h"
#include <QtCore/qendian.h>
#include <QtCore/qfile.h>
#include <QtCore/qstringbuilder.h>
#include <QtCore/qvarlengtharray.h>
#include <dwrite_3.h>
#include <d2d1.h>
+ Include dependency graph for qwindowsdirectwritefontdatabase.cpp:

Go to the source code of this file.

Classes

struct  DirectWriteScope< T >
 

Functions

QT_BEGIN_NAMESPACE Q_GUI_EXPORT QFontDatabase::WritingSystem qt_writing_system_for_script (int script)
 
static QFont::Stretch fromDirectWriteStretch (DWRITE_FONT_STRETCH stretch)
 
static QFont::Weight fromDirectWriteWeight (DWRITE_FONT_WEIGHT weight)
 
static QFont::Style fromDirectWriteStyle (DWRITE_FONT_STYLE style)
 
static int QT_WIN_CALLBACK populateBitmapFonts (const LOGFONT *logFont, const TEXTMETRIC *textmetric, DWORD type, LPARAM lparam)
 

Function Documentation

◆ fromDirectWriteStretch()

static QFont::Stretch fromDirectWriteStretch ( DWRITE_FONT_STRETCH stretch)
static

◆ fromDirectWriteStyle()

static QFont::Style fromDirectWriteStyle ( DWRITE_FONT_STYLE style)
static

Definition at line 96 of file qwindowsdirectwritefontdatabase.cpp.

References QFont::StyleItalic, QFont::StyleNormal, and QFont::StyleOblique.

Referenced by QWindowsDirectWriteFontDatabase::addApplicationFont(), QWindowsDirectWriteFontDatabase::populateFamily(), and QWindowsDirectWriteFontDatabase::populateFamilyAliases().

+ Here is the caller graph for this function:

◆ fromDirectWriteWeight()

static QFont::Weight fromDirectWriteWeight ( DWRITE_FONT_WEIGHT weight)
static

Definition at line 91 of file qwindowsdirectwritefontdatabase.cpp.

Referenced by QWindowsDirectWriteFontDatabase::addApplicationFont(), QWindowsDirectWriteFontDatabase::populateFamily(), and QWindowsDirectWriteFontDatabase::populateFamilyAliases().

+ Here is the caller graph for this function:

◆ populateBitmapFonts()

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

Definition at line 693 of file qwindowsdirectwritefontdatabase.cpp.

References db, QString::fromWCharArray(), and Q_UNUSED.

Referenced by QWindowsDirectWriteFontDatabase::populateFontDatabase().

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

◆ qt_writing_system_for_script()

QT_BEGIN_NAMESPACE Q_GUI_EXPORT QFontDatabase::WritingSystem qt_writing_system_for_script ( int script)

Definition at line 414 of file qfontdatabase.cpp.

References scriptForWritingSystem, and QFontDatabase::WritingSystemsCount.

Referenced by QPlatformFontDatabase::fallbacksForFamily(), and qt_sort_families_by_writing_system().

+ Here is the caller graph for this function: