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 CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
8 #define CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "../../../include/fxcrt/fx_basic.h" | 12 #include "../../../include/fxcrt/fx_basic.h" |
13 #include "../../../include/fpdfapi/fpdf_resource.h" | 13 #include "../../../include/fpdfapi/fpdf_resource.h" |
14 | 14 |
15 class CPDF_CID2UnicodeMap; | 15 class CPDF_CID2UnicodeMap; |
16 class CPDF_CMap; | 16 class CPDF_CMap; |
17 class CPDF_Font; | 17 class CPDF_Font; |
18 class CPDF_Stream; | 18 class CPDF_Stream; |
19 | 19 |
20 typedef void* FXFT_Library; | 20 typedef void* FXFT_Library; |
21 | 21 |
| 22 short TT2PDF(int m, FXFT_Face face); |
| 23 FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id); |
| 24 |
22 class CPDF_CMapManager { | 25 class CPDF_CMapManager { |
23 public: | 26 public: |
24 CPDF_CMapManager(); | 27 CPDF_CMapManager(); |
25 ~CPDF_CMapManager(); | 28 ~CPDF_CMapManager(); |
26 void* GetPackage(FX_BOOL bPrompt); | 29 void* GetPackage(FX_BOOL bPrompt); |
27 CPDF_CMap* GetPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPrompt); | 30 CPDF_CMap* GetPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPrompt); |
28 CPDF_CID2UnicodeMap* GetCID2UnicodeMap(int charset, FX_BOOL bPrompt); | 31 CPDF_CID2UnicodeMap* GetCID2UnicodeMap(int charset, FX_BOOL bPrompt); |
29 void ReloadAll(); | 32 void ReloadAll(); |
30 | 33 |
31 private: | 34 private: |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 CPDF_CID2UnicodeMap* m_pBaseMap; | 179 CPDF_CID2UnicodeMap* m_pBaseMap; |
177 CFX_WideTextBuf m_MultiCharBuf; | 180 CFX_WideTextBuf m_MultiCharBuf; |
178 }; | 181 }; |
179 class CPDF_FontCharMap : public CFX_CharMap { | 182 class CPDF_FontCharMap : public CFX_CharMap { |
180 public: | 183 public: |
181 CPDF_FontCharMap(CPDF_Font* pFont); | 184 CPDF_FontCharMap(CPDF_Font* pFont); |
182 CPDF_Font* m_pFont; | 185 CPDF_Font* m_pFont; |
183 }; | 186 }; |
184 | 187 |
185 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 188 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
OLD | NEW |