Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qcoretextfontdatabase.mm File Reference
#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>
+ Include dependency graph for qcoretextfontdatabase.mm:

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"
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LanguageCount 

Definition at line 75 of file qcoretextfontdatabase.mm.

Function Documentation

◆ descriptorAttribute()

template<typename T >
T * descriptorAttribute ( CTFontDescriptorRef  descriptor,
CFStringRef  name 
)

Definition at line 460 of file qcoretextfontdatabase.mm.

◆ descriptorForFamily() [1/2]

CTFontDescriptorRef descriptorForFamily ( const char *  familyName)

Definition at line 287 of file qcoretextfontdatabase.mm.

References descriptorForFamily(), and QString::fromLatin1().

+ Here is the call graph for this function:

◆ descriptorForFamily() [2/2]

CTFontDescriptorRef descriptorForFamily ( const QString familyName)

Definition at line 93 of file qcoretextfontdatabase.mm.

Referenced by descriptorForFamily(), descriptorForStyle(), QCoreTextFontDatabase::fallbacksForFamily(), and QCoreTextFontDatabase::populateFamily().

+ Here is the caller graph for this function:

◆ descriptorForFontType()

CTFontDescriptorRef descriptorForFontType ( CTFontUIFontType  uiType)

Definition at line 580 of file qcoretextfontdatabase.mm.

Referenced by descriptorForStyle(), and fontDescriptorFromTheme().

+ Here is the caller graph for this function:

◆ descriptorForStyle()

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().

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

◆ fallbacksForDescriptor()

CFArrayRef fallbacksForDescriptor ( CTFontDescriptorRef  descriptor)

Definition at line 539 of file qcoretextfontdatabase.mm.

References font, and qCWarning.

Referenced by QCoreTextFontDatabase::fallbacksForFamily().

+ Here is the caller graph for this function:

◆ fontDescriptorFromTheme()

static CTFontDescriptorRef fontDescriptorFromTheme ( QPlatformTheme::Font  f)
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.

+ Here is the call graph for this function:

◆ fontTypeFromTheme()

◆ getFontDescription()

◆ operator<<()

static Q_DECL_UNUSED QDebug operator<< ( QDebug  debug,
const FontDescription fd 
)
inlinestatic

Definition at line 334 of file qcoretextfontdatabase.mm.

References debug.

◆ qt_transform_from_fontdef()

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().

+ Here is the caller graph for this function:

Variable Documentation

◆ kQtFontDataAttribute

NSString* const kQtFontDataAttribute = @"@"QtFontDataAttribute"
static

◆ languageForWritingSystem

const char languageForWritingSystem[][8]
static

Definition at line 39 of file qcoretextfontdatabase.mm.

Referenced by getFontDescription().