![]() |
Qt 6.x
The Qt SDK
|
#include "qglobal.h"
#include <sys/param.h>
#include <QtCore/qelapsedtimer.h>
#include <QtCore/private/qcore_mac_p.h>
#include "qcoretextfontdatabase_p.h"
#include "qfontengine_coretext_p.h"
#include <QtCore/QtEndian>
#include <QtGui/private/qfontengine_ft_p.h>
#include <QtGui/qpa/qwindowsysteminterface.h>
Go to the source code of this file.
Classes | |
struct | FontDescription |
Enumerations | |
enum | { LanguageCount = sizeof languageForWritingSystem / sizeof *languageForWritingSystem } |
Functions | |
CTFontDescriptorRef | descriptorForFamily (const QString &familyName) |
CTFontDescriptorRef | descriptorForFamily (const char *familyName) |
static Q_DECL_UNUSED QDebug | operator<< (QDebug debug, const FontDescription &fd) |
static void | getFontDescription (CTFontDescriptorRef font, FontDescription *fd) |
template<typename T > | |
T * | descriptorAttribute (CTFontDescriptorRef descriptor, CFStringRef name) |
CGAffineTransform | qt_transform_from_fontdef (const QFontDef &fontDef) |
CFArrayRef | fallbacksForDescriptor (CTFontDescriptorRef descriptor) |
CTFontDescriptorRef | descriptorForFontType (CTFontUIFontType uiType) |
CTFontDescriptorRef | descriptorForStyle (QFont::StyleHint styleHint) |
static CTFontUIFontType | fontTypeFromTheme (QPlatformTheme::Font f) |
static CTFontDescriptorRef | fontDescriptorFromTheme (QPlatformTheme::Font f) |
Variables | |
static const char | languageForWritingSystem [][8] |
static NSString *const | kQtFontDataAttribute = @"@"QtFontDataAttribute" |
anonymous enum |
Enumerator | |
---|---|
LanguageCount |
Definition at line 75 of file qcoretextfontdatabase.mm.
T * descriptorAttribute | ( | CTFontDescriptorRef | descriptor, |
CFStringRef | name | ||
) |
Definition at line 460 of file qcoretextfontdatabase.mm.
CTFontDescriptorRef descriptorForFamily | ( | const char * | familyName | ) |
Definition at line 287 of file qcoretextfontdatabase.mm.
References descriptorForFamily(), and QString::fromLatin1().
CTFontDescriptorRef descriptorForFamily | ( | const QString & | familyName | ) |
Definition at line 93 of file qcoretextfontdatabase.mm.
Referenced by descriptorForFamily(), descriptorForStyle(), QCoreTextFontDatabase::fallbacksForFamily(), and QCoreTextFontDatabase::populateFamily().
CTFontDescriptorRef descriptorForFontType | ( | CTFontUIFontType | uiType | ) |
Definition at line 580 of file qcoretextfontdatabase.mm.
Referenced by descriptorForStyle(), and fontDescriptorFromTheme().
CTFontDescriptorRef descriptorForStyle | ( | QFont::StyleHint | styleHint | ) |
Definition at line 588 of file qcoretextfontdatabase.mm.
References QFont::AnyStyle, QFont::Cursive, descriptorForFamily(), descriptorForFontType(), QFont::Fantasy, QFont::Monospace, Q_FALLTHROUGH, QFont::SansSerif, QFont::Serif, QFont::System, and QFont::TypeWriter.
Referenced by QCoreTextFontDatabase::fallbacksForFamily().
CFArrayRef fallbacksForDescriptor | ( | CTFontDescriptorRef | descriptor | ) |
Definition at line 539 of file qcoretextfontdatabase.mm.
References font, and qCWarning.
Referenced by QCoreTextFontDatabase::fallbacksForFamily().
|
static |
Definition at line 831 of file qcoretextfontdatabase.mm.
References desc, descriptorForFontType(), QPlatformTheme::FixedFont, fontTypeFromTheme(), QPlatformTheme::HeaderViewFont, QPlatformTheme::MdiSubWindowTitleFont, QPlatformTheme::MiniFont, QPlatformTheme::SmallFont, QPlatformTheme::TipLabelFont, and QPlatformTheme::TitleBarFont.
|
static |
Definition at line 757 of file qcoretextfontdatabase.mm.
References QPlatformTheme::CheckBoxFont, QPlatformTheme::ComboLineEditFont, QPlatformTheme::ComboMenuItemFont, QPlatformTheme::DockWidgetTitleFont, QPlatformTheme::FixedFont, QPlatformTheme::HeaderViewFont, QPlatformTheme::ItemViewFont, QPlatformTheme::LabelFont, QPlatformTheme::ListBoxFont, QPlatformTheme::ListViewFont, QPlatformTheme::MdiSubWindowTitleFont, QPlatformTheme::MenuBarFont, QPlatformTheme::MenuFont, QPlatformTheme::MenuItemFont, QPlatformTheme::MessageBoxFont, QPlatformTheme::MiniFont, QPlatformTheme::PushButtonFont, QPlatformTheme::RadioButtonFont, QPlatformTheme::SmallFont, QPlatformTheme::StatusBarFont, QPlatformTheme::SystemFont, QPlatformTheme::TipLabelFont, QPlatformTheme::TitleBarFont, and QPlatformTheme::ToolButtonFont.
Referenced by fontDescriptorFromTheme().
|
static |
Definition at line 351 of file qcoretextfontdatabase.mm.
References QFont::Condensed, QCoreTextFontEngine::ct_getSfntTable(), d, QVarLengthArray< T, Prealloc >::data(), QFont::Expanded, font, i, LanguageCount, languageForWritingSystem, QVarLengthArray< T, Prealloc >::length(), MAKE_TAG, QFont::Normal, Q_ASSERT, QStringLiteral, QCoreTextFontEngine::qtWeightFromCFWeight(), QVarLengthArray< T, Prealloc >::resize(), QFont::StyleItalic, QFont::StyleNormal, tag, QFont::Unstretched, and QPlatformFontDatabase::writingSystemsFromOS2Table().
|
inlinestatic |
Definition at line 334 of file qcoretextfontdatabase.mm.
References debug.
CGAffineTransform qt_transform_from_fontdef | ( | const QFontDef & | fontDef | ) |
Definition at line 101 of file qfontengine_coretext.mm.
References QFontDef::stretch.
Referenced by QCoreTextFontDatabaseEngineFactory< T >::fontEngine().
|
static |
Definition at line 457 of file qcoretextfontdatabase.mm.
Referenced by QCoreTextFontDatabase::addApplicationFont(), QCoreTextFontDatabaseEngineFactory< T >::fontEngine(), and QCoreTextFontDatabase::releaseHandle().
|
static |
Definition at line 39 of file qcoretextfontdatabase.mm.
Referenced by getFontDescription().