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> |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 FX_BOOL m_bVertical; | 162 FX_BOOL m_bVertical; |
163 CIDSet m_Charset; | 163 CIDSet m_Charset; |
164 int m_Coding; | 164 int m_Coding; |
165 CodingScheme m_CodingScheme; | 165 CodingScheme m_CodingScheme; |
166 int m_nCodeRanges; | 166 int m_nCodeRanges; |
167 uint8_t* m_pLeadingBytes; | 167 uint8_t* m_pLeadingBytes; |
168 uint16_t* m_pMapping; | 168 uint16_t* m_pMapping; |
169 uint8_t* m_pAddMapping; | 169 uint8_t* m_pAddMapping; |
170 FX_BOOL m_bLoaded; | 170 FX_BOOL m_bLoaded; |
171 const FXCMAP_CMap* m_pEmbedMap; | 171 const FXCMAP_CMap* m_pEmbedMap; |
172 CPDF_CMap* m_pUseMap; | |
173 }; | 172 }; |
174 | 173 |
175 class CPDF_CID2UnicodeMap { | 174 class CPDF_CID2UnicodeMap { |
176 public: | 175 public: |
177 CPDF_CID2UnicodeMap(); | 176 CPDF_CID2UnicodeMap(); |
178 ~CPDF_CID2UnicodeMap(); | 177 ~CPDF_CID2UnicodeMap(); |
179 | 178 |
180 FX_BOOL Initialize(); | 179 FX_BOOL Initialize(); |
181 FX_BOOL IsLoaded(); | 180 FX_BOOL IsLoaded(); |
182 void Load(CPDF_CMapManager* pMgr, CIDSet charset, FX_BOOL bPromptCJK); | 181 void Load(CPDF_CMapManager* pMgr, CIDSet charset, FX_BOOL bPromptCJK); |
(...skipping 22 matching lines...) Expand all Loading... |
205 | 204 |
206 private: | 205 private: |
207 friend class fpdf_font_StringToCode_Test; | 206 friend class fpdf_font_StringToCode_Test; |
208 friend class fpdf_font_StringToWideString_Test; | 207 friend class fpdf_font_StringToWideString_Test; |
209 | 208 |
210 static uint32_t StringToCode(const CFX_ByteStringC& str); | 209 static uint32_t StringToCode(const CFX_ByteStringC& str); |
211 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); | 210 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); |
212 }; | 211 }; |
213 | 212 |
214 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 213 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
OLD | NEW |