56 #include "qconfig.h" |
56 #include "qconfig.h" |
57 #include "qfontengine_p.h" |
57 #include "qfontengine_p.h" |
58 #include "qsize.h" |
58 #include "qsize.h" |
59 #include <openfont.h> |
59 #include <openfont.h> |
60 |
60 |
|
61 #ifdef SYMBIAN_GDI_GLYPHDATA |
|
62 #define Q_SYMBIAN_HAS_FONTTABLE_API |
|
63 #endif |
|
64 |
61 class CFont; |
65 class CFont; |
62 |
66 |
63 QT_BEGIN_NAMESPACE |
67 QT_BEGIN_NAMESPACE |
64 |
68 |
65 // ..gives us access to truetype tables |
69 // ..gives us access to truetype tables |
66 class QSymbianTypeFaceExtras |
70 class QSymbianTypeFaceExtras |
67 { |
71 { |
68 public: |
72 public: |
69 QSymbianTypeFaceExtras(CFont* fontOwner, COpenFont *font); |
73 QSymbianTypeFaceExtras(CFont* cFont, COpenFont *openFont = 0); |
|
74 ~QSymbianTypeFaceExtras(); |
70 |
75 |
71 QByteArray getSfntTable(uint tag) const; |
76 QByteArray getSfntTable(uint tag) const; |
72 bool getSfntTableData(uint tag, uchar *buffer, uint *length) const; |
77 bool getSfntTableData(uint tag, uchar *buffer, uint *length) const; |
73 const unsigned char *cmap() const; |
78 const uchar *cmap() const; |
74 CFont *fontOwner() const; |
79 CFont *fontOwner() const; |
75 |
80 |
76 private: |
81 private: |
77 COpenFont *m_font; |
82 CFont* m_cFont; |
78 mutable MOpenFontTrueTypeExtension *m_trueTypeExtension; |
|
79 mutable const unsigned char *m_cmap; |
|
80 mutable bool m_symbolCMap; |
83 mutable bool m_symbolCMap; |
81 mutable QByteArray m_cmapTable; |
84 mutable QByteArray m_cmapTable; |
82 CFont* m_fontOwner; |
85 #ifndef Q_SYMBIAN_HAS_FONTTABLE_API |
|
86 COpenFont *m_openFont; |
|
87 mutable MOpenFontTrueTypeExtension *m_trueTypeExtension; |
|
88 #endif // Q_SYMBIAN_HAS_FONTTABLE_API |
83 }; |
89 }; |
84 |
90 |
85 class QFontEngineS60 : public QFontEngine |
91 class QFontEngineS60 : public QFontEngine |
86 { |
92 { |
87 public: |
93 public: |