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 using FXFT_Library = void*; | 21 using FXFT_Library = void*; |
22 | 22 |
23 int16_t TT2PDF(int m, FXFT_Face face); | 23 int TT2PDF(int m, FXFT_Face face); |
24 bool FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id); | 24 bool FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id); |
25 CIDSet CharsetFromOrdering(const CFX_ByteStringC& 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 | 31 |
32 void* GetPackage(FX_BOOL bPrompt); | 32 void* GetPackage(FX_BOOL bPrompt); |
33 CPDF_CMap* GetPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPromptCJK); | 33 CPDF_CMap* GetPredefinedCMap(const CFX_ByteString& name, FX_BOOL bPromptCJK); |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 private: | 205 private: |
206 friend class fpdf_font_StringToCode_Test; | 206 friend class fpdf_font_StringToCode_Test; |
207 friend class fpdf_font_StringToWideString_Test; | 207 friend class fpdf_font_StringToWideString_Test; |
208 | 208 |
209 static uint32_t StringToCode(const CFX_ByteStringC& str); | 209 static uint32_t StringToCode(const CFX_ByteStringC& str); |
210 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); | 210 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); |
211 }; | 211 }; |
212 | 212 |
213 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 213 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
OLD | NEW |