OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FGAS_FONT_FGAS_GEFONT_H_ | 7 #ifndef XFA_FGAS_FONT_FGAS_GEFONT_H_ |
8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_ | 8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 21 matching lines...) Expand all Loading... |
32 FX_BOOL bSaveStream); | 32 FX_BOOL bSaveStream); |
33 #endif | 33 #endif |
34 | 34 |
35 ~CFGAS_GEFont(); | 35 ~CFGAS_GEFont(); |
36 | 36 |
37 void Release(); | 37 void Release(); |
38 CFGAS_GEFont* Retain(); | 38 CFGAS_GEFont* Retain(); |
39 CFGAS_GEFont* Derive(uint32_t dwFontStyles, uint16_t wCodePage = 0); | 39 CFGAS_GEFont* Derive(uint32_t dwFontStyles, uint16_t wCodePage = 0); |
40 void GetFamilyName(CFX_WideString& wsFamily) const; | 40 void GetFamilyName(CFX_WideString& wsFamily) const; |
41 uint32_t GetFontStyles() const; | 41 uint32_t GetFontStyles() const; |
42 uint8_t GetCharSet() const; | |
43 FX_BOOL GetCharWidth(FX_WCHAR wUnicode, | 42 FX_BOOL GetCharWidth(FX_WCHAR wUnicode, |
44 int32_t& iWidth, | 43 int32_t& iWidth, |
45 FX_BOOL bCharCode = FALSE); | 44 FX_BOOL bCharCode = FALSE); |
46 int32_t GetGlyphIndex(FX_WCHAR wUnicode, FX_BOOL bCharCode = FALSE); | 45 int32_t GetGlyphIndex(FX_WCHAR wUnicode, FX_BOOL bCharCode = FALSE); |
47 int32_t GetAscent() const; | 46 int32_t GetAscent() const; |
48 int32_t GetDescent() const; | 47 int32_t GetDescent() const; |
49 FX_BOOL GetCharBBox(FX_WCHAR wUnicode, | 48 FX_BOOL GetCharBBox(FX_WCHAR wUnicode, |
50 CFX_Rect& bbox, | 49 CFX_Rect& bbox, |
51 FX_BOOL bCharCode = FALSE); | 50 FX_BOOL bCharCode = FALSE); |
52 FX_BOOL GetBBox(CFX_Rect& bbox); | 51 FX_BOOL GetBBox(CFX_Rect& bbox); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 IFGAS_FontMgr* m_pFontMgr; | 95 IFGAS_FontMgr* m_pFontMgr; |
97 int32_t m_iRefCount; | 96 int32_t m_iRefCount; |
98 FX_BOOL m_bExtFont; | 97 FX_BOOL m_bExtFont; |
99 IFX_Stream* m_pStream; | 98 IFX_Stream* m_pStream; |
100 IFX_FileRead* m_pFileRead; | 99 IFX_FileRead* m_pFileRead; |
101 CFX_UnicodeEncoding* m_pFontEncoding; | 100 CFX_UnicodeEncoding* m_pFontEncoding; |
102 CFX_WordDiscreteArray* m_pCharWidthMap; | 101 CFX_WordDiscreteArray* m_pCharWidthMap; |
103 CFX_MassArrayTemplate<CFX_Rect>* m_pRectArray; | 102 CFX_MassArrayTemplate<CFX_Rect>* m_pRectArray; |
104 CFX_MapPtrToPtr* m_pBBoxMap; | 103 CFX_MapPtrToPtr* m_pBBoxMap; |
105 CXFA_PDFFontMgr* m_pProvider; | 104 CXFA_PDFFontMgr* m_pProvider; |
106 uint16_t m_wCharSet; | |
107 CFX_ArrayTemplate<CFGAS_GEFont*> m_SubstFonts; | 105 CFX_ArrayTemplate<CFGAS_GEFont*> m_SubstFonts; |
108 std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper; | 106 std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper; |
109 }; | 107 }; |
110 | 108 |
111 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ | 109 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ |
OLD | NEW |