51 #include <private/qt_mac_p.h> 52 #include <private/qtextengine_p.h> 53 #include <private/qunicodetables_p.h> 103 #ifdef QT_MAC_USE_COCOA 108 return static_cast<QFontEngineMacMulti*>(fe)->macFontID();
111 if(FMGetFontFamilyName((FMFontFamily)((UInt32)
handle()), name) == noErr) {
113 GetFNum(name, &fnum);
123 #ifdef QT_MAC_USE_COCOA int qt_mac_pointsize(const QFontDef &def, int dpi)
#define QT_END_NAMESPACE
This macro expands to.
float qt_mac_defaultDpi_x()
QString lastResortFamily() const
Returns the "last resort" font family name.
static void cleanup()
Internal function that cleans up the font system.
The QString class provides a Unicode character string.
HFONT handle() const
Returns the window system handle to the font, for low-level access.
virtual Type type() const =0
void setFamily(const QString &)
Sets the family name of the font.
QString rawName() const
Returns the name of the font within the underlying window system.
int qt_mac_pixelsize(const QFontDef &def, int dpi)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static void initialize()
Internal function that initializes the font system.
QFontEngine * engineForScript(int script) const
QString lastResortFont() const
Returns a "last resort" font name for the font matching algorithm.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
QString family() const
Returns the requested font family name, i.e.
QExplicitlySharedDataPointer< QFontPrivate > d
QString defaultFamily() const
Returns the family name that corresponds to the current style hint.
void setRawName(const QString &)
Sets a font by its system specific name.
quint32 macFontID() const
Returns an ATSUFontID.
Q_DECL_CONSTEXPR int qRound(qreal d)