diff options
Diffstat (limited to 'src/platformsupport/fontdatabases/mac/qcoretextfontdatabase_p.h')
-rw-r--r-- | src/platformsupport/fontdatabases/mac/qcoretextfontdatabase_p.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase_p.h b/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase_p.h index 8536ad9123..c3bb4d428a 100644 --- a/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase_p.h +++ b/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase_p.h @@ -43,6 +43,14 @@ #define QCORETEXTFONTDATABASE_H #include <qpa/qplatformfontdatabase.h> +#include <private/qcore_mac_p.h> + +#ifndef Q_OS_IOS +#include <ApplicationServices/ApplicationServices.h> +#else +#include <CoreText/CoreText.h> +#include <CoreGraphics/CoreGraphics.h> +#endif QT_BEGIN_NAMESPACE @@ -63,9 +71,21 @@ public: QList<int> standardSizes() const; private: + void populateFromDescriptor(CTFontDescriptorRef font); + mutable QString defaultFontName; mutable QHash<QString, QString> psNameToFamily; mutable QHash<QString, QString> familyNameToPsName; + + void removeApplicationFonts(); +#ifdef Q_OS_MACX +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8 + QVector<QCFType<CGFontRef> > m_applicationGraphicsFonts; + QVector<QCFType<CFURLRef> > m_applicationURLFonts; +#else + QVector<ATSFontContainerRef> m_applicationFonts; +#endif +#endif }; QT_END_NAMESPACE |