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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 CPDF_CMap(); | 135 CPDF_CMap(); |
136 ~CPDF_CMap(); | 136 ~CPDF_CMap(); |
137 | 137 |
138 FX_BOOL LoadPredefined(CPDF_CMapManager* pMgr, | 138 FX_BOOL LoadPredefined(CPDF_CMapManager* pMgr, |
139 const CFX_ByteString& name, | 139 const CFX_ByteString& name, |
140 FX_BOOL bPromptCJK); | 140 FX_BOOL bPromptCJK); |
141 FX_BOOL LoadEmbedded(const uint8_t* pData, uint32_t dwSize); | 141 FX_BOOL LoadEmbedded(const uint8_t* pData, uint32_t dwSize); |
142 | 142 |
143 FX_BOOL IsLoaded() const; | 143 FX_BOOL IsLoaded() const; |
144 FX_BOOL IsVertWriting() const; | 144 bool IsVertWriting() const; |
145 uint16_t CIDFromCharCode(uint32_t charcode) const; | 145 uint16_t CIDFromCharCode(uint32_t charcode) const; |
146 int GetCharSize(uint32_t charcode) const; | 146 int GetCharSize(uint32_t charcode) const; |
147 uint32_t GetNextChar(const FX_CHAR* pString, int nStrLen, int& offset) const; | 147 uint32_t GetNextChar(const FX_CHAR* pString, int nStrLen, int& offset) const; |
148 int CountChar(const FX_CHAR* pString, int size) const; | 148 int CountChar(const FX_CHAR* pString, int size) const; |
149 int AppendChar(FX_CHAR* str, uint32_t charcode) const; | 149 int AppendChar(FX_CHAR* str, uint32_t charcode) const; |
150 | 150 |
151 private: | 151 private: |
152 friend class CPDF_CMapParser; | 152 friend class CPDF_CMapParser; |
153 friend class CPDF_CIDFont; | 153 friend class CPDF_CIDFont; |
154 | 154 |
155 CFX_ByteString m_PredefinedCMap; | 155 CFX_ByteString m_PredefinedCMap; |
156 FX_BOOL m_bVertical; | 156 bool m_bVertical; |
157 CIDSet m_Charset; | 157 CIDSet m_Charset; |
158 int m_Coding; | 158 int m_Coding; |
159 CodingScheme m_CodingScheme; | 159 CodingScheme m_CodingScheme; |
160 int m_nCodeRanges; | 160 int m_nCodeRanges; |
161 uint8_t* m_pLeadingBytes; | 161 uint8_t* m_pLeadingBytes; |
162 uint16_t* m_pMapping; | 162 uint16_t* m_pMapping; |
163 uint8_t* m_pAddMapping; | 163 uint8_t* m_pAddMapping; |
164 FX_BOOL m_bLoaded; | 164 FX_BOOL m_bLoaded; |
165 const FXCMAP_CMap* m_pEmbedMap; | 165 const FXCMAP_CMap* m_pEmbedMap; |
166 }; | 166 }; |
(...skipping 30 matching lines...) Expand all Loading... |
197 | 197 |
198 static uint32_t StringToCode(const CFX_ByteStringC& str); | 198 static uint32_t StringToCode(const CFX_ByteStringC& str); |
199 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); | 199 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); |
200 | 200 |
201 std::map<uint32_t, uint32_t> m_Map; | 201 std::map<uint32_t, uint32_t> m_Map; |
202 CPDF_CID2UnicodeMap* m_pBaseMap; | 202 CPDF_CID2UnicodeMap* m_pBaseMap; |
203 CFX_WideTextBuf m_MultiCharBuf; | 203 CFX_WideTextBuf m_MultiCharBuf; |
204 }; | 204 }; |
205 | 205 |
206 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 206 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
OLD | NEW |