Qt 4.8
|
#include <qdir.h>
#include "qfontdatabase.h"
#include "qdebug.h"
#include "qalgorithms.h"
#include "qapplication.h"
#include "qvarlengtharray.h"
#include "qthread.h"
#include "qmutex.h"
#include "private/qunicodetables_p.h"
#include "qfontengine_p.h"
#include <locale.h>
#include <stdlib.h>
#include <limits.h>
#include <ft2build.h>
#include <FT_TRUETYPE_TABLES_H>
#include <dwrite.h>
#include "qfontdatabase_x11.cpp"
Go to the source code of this file.
Classes | |
class | QFontDatabasePrivate |
struct | QFontDatabasePrivate::ApplicationFont |
struct | QtFontDesc |
struct | QtFontEncoding |
struct | QtFontFamily |
struct | QtFontFoundry |
struct | QtFontSize |
struct | QtFontStyle |
struct | QtFontStyle::Key |
Macros | |
#define | FD_DEBUG if (false) qDebug |
#define | FM_DEBUG if (false) qDebug |
#define | JapaneseCsbBit 17 |
#define | KoreanCsbBit 21 |
#define | SimplifiedChineseCsbBit 18 |
#define | SMOOTH_SCALABLE 0xffff |
#define | TraditionalChineseCsbBit 20 |
Variables | |
bool | qt_enable_test_font = false |
static int | requiredUnicodeBits [QFontDatabase::WritingSystemsCount][2] |
static const int | scriptForWritingSystem [] |
Definition at line 74 of file qfontdatabase.cpp.
Referenced by initializeDb(), and load().
Definition at line 81 of file qfontdatabase.cpp.
Referenced by bestStyle(), findEncoding(), QFontDatabase::findFont(), loadEngine(), loadFc(), loadRaw(), loadWin(), QFontDatabase::loadXlfd(), qt_fontSetForPattern(), registerFont(), and tryPatternLoad().
#define JapaneseCsbBit 17 |
Definition at line 584 of file qfontdatabase.cpp.
Referenced by qt_determine_writing_systems_from_truetype_bits().
#define KoreanCsbBit 21 |
Definition at line 585 of file qfontdatabase.cpp.
Referenced by qt_determine_writing_systems_from_truetype_bits().
#define SimplifiedChineseCsbBit 18 |
Definition at line 582 of file qfontdatabase.cpp.
Referenced by qt_determine_writing_systems_from_truetype_bits().
#define SMOOTH_SCALABLE 0xffff |
Definition at line 90 of file qfontdatabase.cpp.
Referenced by QFontDatabasePrivate::addFont(), addFontToDatabase(), findEncoding(), initializeDb(), loadFontConfig(), loadSingleEngine(), QFontDatabase::loadXlfd(), loadXlfds(), and qt_registerFont().
#define TraditionalChineseCsbBit 20 |
Definition at line 583 of file qfontdatabase.cpp.
Referenced by qt_determine_writing_systems_from_truetype_bits().
|
static |
Definition at line 1125 of file qfontdatabase.cpp.
Referenced by findEncoding(), and QFontDatabase::font().
|
static |
Definition at line 1065 of file qfontdatabase.cpp.
Referenced by QFontDialogPrivate::_q_familyHighlighted(), QFontDialogPrivate::_q_updateSample(), QFontDatabase::findFont(), getFcPattern(), QFontDialogPrivate::init(), loadFromDatabase(), loadWin(), QFontDatabase::loadXlfd(), QFontDialogPrivate::updateFamilies(), QFontDialogPrivate::updateSizes(), and QFontDialogPrivate::updateStyles().
|
static |
Definition at line 1165 of file qfontdatabase.cpp.
|
static |
Definition at line 1051 of file qfontdatabase.cpp.
Referenced by QFontDatabase::findFont(), loadWin(), and QFontDatabase::loadXlfd().
|
static |
Definition at line 101 of file qfontdatabase.cpp.
Referenced by getStyle(), QtFontStyle::Key::Key(), and qt_fillFontDef().
This makes sense of the font family name:
if the family name contains a '[' and a ']', then we take the text between the square brackets as the foundry, and the text before the square brackets as the family (ie.
"Arial [Monotype]")
Definition at line 970 of file qfontdatabase.cpp.
Referenced by QFontDatabase::bold(), QFontDatabase::font(), getFcPattern(), QFontDatabase::hasFamily(), QFontDatabase::isBitmapScalable(), QFontDatabase::isFixedPitch(), QFontDatabase::isSmoothlyScalable(), QFontDatabase::italic(), loadWin(), QFontDatabase::loadXlfd(), QFontDatabase::parseFontName(), QFontDatabase::pointSizes(), registerFont(), QFontDatabase::smoothSizes(), QFontDatabase::styles(), QFontDatabase::weight(), and QFontDatabase::writingSystems().
QList<QFontDatabase::WritingSystem> qt_determine_writing_systems_from_truetype_bits | ( | quint32 | unicodeRange[4], |
quint32 | codePageRange[2] | ||
) |
Definition at line 587 of file qfontdatabase.cpp.
Referenced by addFontToDatabase(), QFontDatabasePrivate::addTTFile(), QRawFont::fontTable(), initWritingSystems(), and QRawFont::supportedWritingSystems().
Q_GUI_EXPORT QByteArray qt_fontdata_from_index | ( | int | index | ) |
Definition at line 2594 of file qfontdatabase.cpp.
Referenced by QFreetypeFace::getFace().
QMutex* qt_fontdatabase_mutex | ( | ) |
Definition at line 1097 of file qfontdatabase.cpp.
Referenced by QFontPrivate::engineForScript(), QFontEngineMultiFT::loadEngine(), QFontEngineFT::stringToCMap(), QFontEngineMultiFT::~QFontEngineMultiFT(), and QFontPrivate::~QFontPrivate().
|
inlinestatic |
Definition at line 473 of file qfontdatabase.cpp.
Referenced by findEncoding(), and QFontDatabase::isFixedPitch().
int qt_script_for_writing_system | ( | QFontDatabase::WritingSystem | writingSystem | ) |
Definition at line 938 of file qfontdatabase.cpp.
Referenced by QRawFont::fromFont(), and QRawFont::supportsCharacter().
Q_AUTOTEST_EXPORT void qt_setQtEnableTestFont | ( | bool | value | ) |
Definition at line 96 of file qfontdatabase.cpp.
|
inlinestatic |
Definition at line 945 of file qfontdatabase.cpp.
Referenced by loadFontConfig().
|
inlinestatic |
Definition at line 950 of file qfontdatabase.cpp.
Referenced by loadEngine(), registerFont(), and tryPatternLoad().
|
static |
Definition at line 1503 of file qfontdatabase.cpp.
Referenced by initializeDb(), QFontDatabase::styles(), and QFontDatabase::styleString().
QFont::Weight weightFromInteger | ( | int | weight | ) |
Definition at line 142 of file qfontdatabase.cpp.
Referenced by addFontToDatabase(), getEnglishName(), qt_LOGFONTtoQFont(), and resolveGdi32().
bool qt_enable_test_font = false |
Definition at line 92 of file qfontdatabase.cpp.
Referenced by QFontDatabase::findFont(), QFontDatabase::load(), loadWin(), QFontDatabase::loadXlfd(), qt_setQtEnableTestFont(), and registerFont().
|
static |
Definition at line 511 of file qfontdatabase.cpp.
|
static |
Definition at line 901 of file qfontdatabase.cpp.
Referenced by load().