Qt 4.8
|
#include "qt_windows.h"
#include <qmath.h>
#include <private/qapplication_p.h>
#include "qfont_p.h"
#include "qfontengine_p.h"
#include "qpaintdevice.h"
#include <private/qsystemlibrary_p.h>
#include "qabstractfileengine.h"
#include "qendian.h"
#include "qsettings.h"
#include "qfontenginedirectwrite_p.h"
#include <QTemporaryFile>
Go to the source code of this file.
Macros | |
#define | DEFAULT_GUI_FONT 17 |
#define | FR_PRIVATE 0x10 |
#define | MAKE_TAG(ch1, ch2, ch3, ch4) |
Typedefs | |
typedef HANDLE(WINAPI * | PtrAddFontMemResourceEx) (PVOID, DWORD, PVOID, DWORD *) |
typedef int(WINAPI * | PtrAddFontResourceExW) (LPCWSTR, DWORD, PVOID) |
typedef BOOL(WINAPI * | PtrRemoveFontMemResourceEx) (HANDLE) |
typedef BOOL(WINAPI * | PtrRemoveFontResourceExW) (LPCWSTR, DWORD, PVOID) |
Functions | |
static void | addFontToDatabase (QString familyName, const QString &scriptName, TEXTMETRIC *textmetric, const FONTSIGNATURE *signature, int type) |
static QString | fontNameSubstitute (const QString &familyName) |
static QString | getEnglishName (const uchar *table, quint32 bytes) |
static QString | getEnglishName (const QString &familyName) |
static void | getFamiliesAndSignatures (const QByteArray &fontData, QFontDatabasePrivate::ApplicationFont *appFont) |
static void | getFontTable (const uchar *fileBegin, const uchar *data, quint32 tag, const uchar **table, quint32 *length) |
static QList< quint32 > | getTrueTypeFontOffsets (const uchar *fontData) |
static quint16 | getUShort (const unsigned char *p) |
static void | initFontInfo (QFontEngineWin *fe, const QFontDef &request, HDC fontHdc, int dpi) |
static void | initFontInfo (QFontEngineDirectWrite *fe, const QFontDef &request, int dpi, IDWriteFont *font) |
static void | initializeDb () |
static void | load (const QString &family=QString(), int=-1) |
static QFontEngine * | loadEngine (int script, const QFontDef &request, HDC fontHdc, int dpi, bool rawMode, const QtFontDesc *desc, const QStringList &family_list) |
static QFontEngine * | loadWin (const QFontPrivate *d, int script, const QFontDef &req) |
static bool | localizedName (const QString &name) |
static void | populate_database (const QString &fam) |
QFontEngine * | qt_load_font_engine_win (const QFontDef &request) |
static void | registerFont (QFontDatabasePrivate::ApplicationFont *fnt) |
HDC | shared_dc () |
static int CALLBACK | storeFont (ENUMLOGFONTEX *f, NEWTEXTMETRICEX *textmetric, int type, LPARAM) |
const char * | styleHint (const QFontDef &request) |
static HFONT | systemFont () |
QFont::Weight | weightFromInteger (int weight) |
Variables | |
static const char * | ch_CN_tryFonts [] |
static const char * | ch_TW_tryFonts [] |
static const char * | jp_tryFonts [] |
static const char * | kr_tryFonts [] |
static const char * | other_tryFonts [] |
static HFONT | stock_sysfont = 0 |
static const char ** | tryFonts = 0 |
#define DEFAULT_GUI_FONT 17 |
Definition at line 672 of file qfontdatabase_win.cpp.
#define FR_PRIVATE 0x10 |
Definition at line 1132 of file qfontdatabase_win.cpp.
Referenced by registerFont().
#define MAKE_TAG | ( | ch1, | |
ch2, | |||
ch3, | |||
ch4 | |||
) |
Definition at line 69 of file qfontdatabase_win.cpp.
Referenced by bindFont(), generateGlyphTables(), generateHead(), generateHhea(), generateMaxp(), generateName(), getEnglishName(), getFamiliesAndSignatures(), getTrueTypeFontOffsets(), QFontEngine::glyphCount(), initializeDb(), initWritingSystems(), QFontEngine::loadKerningPairs(), loadSingleEngine(), QFontEngineMac::properties(), QFontEngineMac::QFontEngineMac(), QFontEngineQPF::QFontEngineQPF(), QFontEngineMac::stringToCMap(), QFontSubset::toTruetype(), QPAGenerator::writeHeader(), and QPFGenerator::writeHeader().
typedef HANDLE(WINAPI * PtrAddFontMemResourceEx) (PVOID, DWORD, PVOID, DWORD *) |
Definition at line 1136 of file qfontdatabase_win.cpp.
typedef int(WINAPI * PtrAddFontResourceExW) (LPCWSTR, DWORD, PVOID) |
Definition at line 1135 of file qfontdatabase_win.cpp.
typedef BOOL(WINAPI * PtrRemoveFontMemResourceEx) (HANDLE) |
Definition at line 1138 of file qfontdatabase_win.cpp.
typedef BOOL(WINAPI * PtrRemoveFontResourceExW) (LPCWSTR, DWORD, PVOID) |
Definition at line 1137 of file qfontdatabase_win.cpp.
|
static |
Definition at line 248 of file qfontdatabase_win.cpp.
Referenced by populate_database(), and storeFont().
Definition at line 656 of file qfontdatabase_win.cpp.
Referenced by loadEngine().
Definition at line 97 of file qfontdatabase_win.cpp.
Referenced by addFontToDatabase(), getEnglishName(), and getFamiliesAndSignatures().
Definition at line 199 of file qfontdatabase_win.cpp.
|
static |
Definition at line 1176 of file qfontdatabase_win.cpp.
Referenced by registerFont().
|
static |
Definition at line 1160 of file qfontdatabase_win.cpp.
Referenced by getFamiliesAndSignatures().
Definition at line 1140 of file qfontdatabase_win.cpp.
Referenced by getFamiliesAndSignatures().
|
inlinestatic |
|
static |
Definition at line 526 of file qfontdatabase_win.cpp.
Referenced by loadEngine().
|
static |
Definition at line 544 of file qfontdatabase_win.cpp.
|
static |
Definition at line 471 of file qfontdatabase_win.cpp.
Referenced by loadWin().
Definition at line 511 of file qfontdatabase_win.cpp.
|
static |
Definition at line 675 of file qfontdatabase_win.cpp.
Referenced by loadWin(), and qt_load_font_engine_win().
|
static |
Definition at line 1033 of file qfontdatabase_win.cpp.
|
static |
Definition at line 78 of file qfontdatabase_win.cpp.
Referenced by addFontToDatabase(), and QAccessibleActionInterface::qAccessibleActionCastHelper().
|
static |
Definition at line 402 of file qfontdatabase_win.cpp.
Referenced by initializeDb(), and load().
QFontEngine* qt_load_font_engine_win | ( | const QFontDef & | request | ) |
Definition at line 998 of file qfontdatabase_win.cpp.
Referenced by QFontEngineWin::alphaRGBMapForGlyph(), and resolveGdi32().
|
static |
Definition at line 1214 of file qfontdatabase_win.cpp.
HDC shared_dc | ( | ) |
Definition at line 118 of file qfontengine_win.cpp.
Referenced by QFontEngineWin::addGlyphsToPath(), QFontEngineWin::boundingBox(), QFontEngineWin::getCMap(), QFontEngineWin::getGlyphBearings(), QFontEngineWin::getSfntTableData(), QFontEngineWin::getUnscaledGlyph(), initFontInfo(), loadEngine(), QFontEngineWin::minRightBearing(), QFontEngineWin::properties(), QFontEngineWin::QFontEngineWin(), QFontEngineWin::recalcAdvances(), QFontEngineWin::selectDesignFont(), QFontEngineWin::synthesized(), and QFontEngineWin::~QFontEngineWin().
|
static |
Definition at line 386 of file qfontdatabase_win.cpp.
Referenced by populate_database().
const char* styleHint | ( | const QFontDef & | request | ) |
Definition at line 1012 of file qfontdatabase_win.cpp.
Referenced by QWorkspaceChild::adjustToFullscreen(), QWorkspaceChild::baseSize(), QFontInfo::bold(), QMenuBar::changeEvent(), QMenu::changeEvent(), QTabBar::changeEvent(), QLineEdit::changeEvent(), QComboBox::changeEvent(), QMessageBox::changeEvent(), QWorkspaceChild::changeEvent(), QScrollBar::contextMenuEvent(), QWindowsMobileStyle::drawComplexControl(), QWindowsMobileStyle::drawControl(), QWindowsMobileStyle::drawPrimitive(), drawTextItemDecoration(), QMenu::event(), QMenuBar::eventFilter(), QCoreTextFontDatabase::fallbacksForFamily(), QComboBox::hidePopup(), QWorkspaceChild::iconWidget(), QToolButton::initStyleOption(), QMenu::internalDelayedPopup(), QMenuBar::keyPressEvent(), QMenu::keyPressEvent(), QAbstractItemView::keyPressEvent(), loadEngine(), loadWin(), QAbstractScrollArea::minimumSizeHint(), QCalendarView::mouseDoubleClickEvent(), QScrollBar::mouseMoveEvent(), QMenu::mouseMoveEvent(), QMenuBar::mousePressEvent(), QTreeView::mousePressEvent(), QTabBar::mouseReleaseEvent(), QTreeView::mouseReleaseEvent(), QAbstractItemView::mouseReleaseEvent(), QCalendarView::mouseReleaseEvent(), QCommandLinkButton::paintEvent(), QDockWidgetTitleButton::paintEvent(), QGraphicsView::paintEvent(), QCoreTextFontDatabase::populateFontDatabase(), QMenu::popup(), QWidget::previousInFocusChain(), QFocusFrame::QFocusFrame(), QTipLabel::QTipLabel(), QWorkspaceChild::QWorkspaceChild(), QWorkspaceTitleBar::QWorkspaceTitleBar(), QTipLabel::resizeEvent(), QWorkspaceChild::resizeEvent(), QApplication::setActiveWindow(), QComboBox::setEditable(), QMessageBox::setInformativeText(), QLineEdit::setSelection(), QFocusFrame::setWidget(), QWorkspaceChild::showShaded(), QAccessibleMenu::state(), QAccessibleMenuBar::state(), QWindowsMobileStyle::subControlRect(), and QWorkspaceChild::updateMask().
|
inlinestatic |
Definition at line 664 of file qfontdatabase_win.cpp.
Referenced by loadEngine(), qt_init(), and qt_set_windows_font_resources().
QFont::Weight weightFromInteger | ( | int | weight | ) |
Definition at line 142 of file qfontdatabase.cpp.
Referenced by addFontToDatabase(), and getEnglishName().
|
static |
Definition at line 623 of file qfontdatabase_win.cpp.
Referenced by loadEngine().
|
static |
Definition at line 633 of file qfontdatabase_win.cpp.
Referenced by loadEngine().
|
static |
Definition at line 613 of file qfontdatabase_win.cpp.
Referenced by loadEngine().
|
static |
Definition at line 643 of file qfontdatabase_win.cpp.
Referenced by loadEngine().
|
static |
Definition at line 603 of file qfontdatabase_win.cpp.
Referenced by loadEngine().
|
static |
Definition at line 76 of file qfontdatabase_win.cpp.
Referenced by systemFont().
|
static |
Definition at line 653 of file qfontdatabase_win.cpp.
Referenced by loadEngine().