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_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
8 #define CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 8 #define CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "core/fpdfapi/fpdf_font/cpdf_cidfont.h" | 13 #include "core/fpdfapi/fpdf_font/cpdf_cidfont.h" |
14 #include "core/fxcrt/include/fx_basic.h" | 14 #include "core/fxcrt/include/fx_basic.h" |
15 | 15 |
16 class CPDF_CID2UnicodeMap; | 16 class CPDF_CID2UnicodeMap; |
17 class CPDF_CMap; | 17 class CPDF_CMap; |
18 class CPDF_Font; | 18 class CPDF_Font; |
19 class CPDF_Stream; | 19 class CPDF_Stream; |
20 | 20 |
21 typedef void* FXFT_Library; | 21 typedef void* FXFT_Library; |
22 | 22 |
23 short TT2PDF(int m, FXFT_Face face); | 23 short TT2PDF(int m, FXFT_Face face); |
24 FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id); | 24 FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id); |
25 CIDSet CharsetFromOrdering(const CFX_ByteString& ordering); | 25 CIDSet CharsetFromOrdering(const CFX_ByteStringC& ordering); |
26 | 26 |
27 class CPDF_CMapManager { | 27 class CPDF_CMapManager { |
28 public: | 28 public: |
29 CPDF_CMapManager(); | 29 CPDF_CMapManager(); |
30 ~CPDF_CMapManager(); | 30 ~CPDF_CMapManager(); |
31 void* GetPackage(FX_BOOL bPrompt); | 31 void* GetPackage(FX_BOOL bPrompt); |
32 CPDF_CMap* GetPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPromptCJK); | 32 CPDF_CMap* GetPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPromptCJK); |
33 CPDF_CID2UnicodeMap* GetCID2UnicodeMap(CIDSet charset, FX_BOOL bPromptCJK); | 33 CPDF_CID2UnicodeMap* GetCID2UnicodeMap(CIDSet charset, FX_BOOL bPromptCJK); |
34 void ReloadAll(); | 34 void ReloadAll(); |
35 | 35 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 static uint32_t StringToCode(const CFX_ByteStringC& str); | 200 static uint32_t StringToCode(const CFX_ByteStringC& str); |
201 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); | 201 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); |
202 }; | 202 }; |
203 | 203 |
204 void FPDFAPI_LoadCID2UnicodeMap(CIDSet charset, | 204 void FPDFAPI_LoadCID2UnicodeMap(CIDSet charset, |
205 const uint16_t*& pMap, | 205 const uint16_t*& pMap, |
206 uint32_t& count); | 206 uint32_t& count); |
207 | 207 |
208 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 208 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
OLD | NEW |