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