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> |
11 | 11 |
12 #include "xfa/fgas/crt/fgas_utils.h" | 12 #include "xfa/fgas/crt/fgas_utils.h" |
13 #include "xfa/fgas/font/fgas_font.h" | 13 #include "xfa/fgas/font/fgas_font.h" |
14 | 14 |
15 #define FXFONT_SUBST_ITALIC 0x02 | 15 #define FXFONT_SUBST_ITALIC 0x02 |
16 | 16 |
17 class CXFA_PDFFontMgr; | 17 class CXFA_PDFFontMgr; |
18 | 18 |
19 class CFX_GEFont : public IFGAS_Font { | 19 class CFGAS_GEFont : public IFGAS_Font { |
20 public: | 20 public: |
21 CFX_GEFont(const CFX_GEFont& src, uint32_t dwFontStyles); | 21 CFGAS_GEFont(const CFGAS_GEFont& src, uint32_t dwFontStyles); |
22 explicit CFX_GEFont(IFGAS_FontMgr* pFontMgr); | 22 explicit CFGAS_GEFont(IFGAS_FontMgr* pFontMgr); |
23 ~CFX_GEFont(); | 23 ~CFGAS_GEFont(); |
24 | 24 |
25 // IFGAS_Font: | 25 // IFGAS_Font: |
26 virtual void Release(); | 26 virtual void Release(); |
27 virtual IFGAS_Font* Retain(); | 27 virtual IFGAS_Font* Retain(); |
28 FX_BOOL LoadFont(const FX_WCHAR* pszFontFamily, | 28 FX_BOOL LoadFont(const FX_WCHAR* pszFontFamily, |
29 uint32_t dwFontStyles, | 29 uint32_t dwFontStyles, |
30 uint16_t wCodePage); | 30 uint16_t wCodePage); |
31 FX_BOOL LoadFont(const uint8_t* pBuffer, int32_t length); | 31 FX_BOOL LoadFont(const uint8_t* pBuffer, int32_t length); |
32 FX_BOOL LoadFont(const FX_WCHAR* pszFileName); | 32 FX_BOOL LoadFont(const FX_WCHAR* pszFileName); |
33 FX_BOOL LoadFont(IFX_Stream* pFontStream, FX_BOOL bSaveStream); | 33 FX_BOOL LoadFont(IFX_Stream* pFontStream, FX_BOOL bSaveStream); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 int32_t& iWidth, | 88 int32_t& iWidth, |
89 FX_BOOL bRecursive, | 89 FX_BOOL bRecursive, |
90 FX_BOOL bCharCode = FALSE); | 90 FX_BOOL bCharCode = FALSE); |
91 int32_t GetGlyphIndex(FX_WCHAR wUnicode, | 91 int32_t GetGlyphIndex(FX_WCHAR wUnicode, |
92 FX_BOOL bRecursive, | 92 FX_BOOL bRecursive, |
93 IFGAS_Font** ppFont, | 93 IFGAS_Font** ppFont, |
94 FX_BOOL bCharCode = FALSE); | 94 FX_BOOL bCharCode = FALSE); |
95 }; | 95 }; |
96 | 96 |
97 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ | 97 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ |
OLD | NEW |