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> |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 const FX_WORD* m_pEmbeddedMap; | 165 const FX_WORD* m_pEmbeddedMap; |
166 FX_DWORD m_EmbeddedCount; | 166 FX_DWORD m_EmbeddedCount; |
167 }; | 167 }; |
168 class CPDF_ToUnicodeMap { | 168 class CPDF_ToUnicodeMap { |
169 public: | 169 public: |
170 void Load(CPDF_Stream* pStream); | 170 void Load(CPDF_Stream* pStream); |
171 CFX_WideString Lookup(FX_DWORD charcode); | 171 CFX_WideString Lookup(FX_DWORD charcode); |
172 FX_DWORD ReverseLookup(FX_WCHAR unicode); | 172 FX_DWORD ReverseLookup(FX_WCHAR unicode); |
173 | 173 |
174 protected: | 174 protected: |
175 CFX_CMapDWordToDWord m_Map; | 175 std::map<FX_DWORD, FX_DWORD> m_Map; |
176 CPDF_CID2UnicodeMap* m_pBaseMap; | 176 CPDF_CID2UnicodeMap* m_pBaseMap; |
177 CFX_WideTextBuf m_MultiCharBuf; | 177 CFX_WideTextBuf m_MultiCharBuf; |
178 }; | 178 }; |
179 class CPDF_FontCharMap : public CFX_CharMap { | 179 class CPDF_FontCharMap : public CFX_CharMap { |
180 public: | 180 public: |
181 CPDF_FontCharMap(CPDF_Font* pFont); | 181 CPDF_FontCharMap(CPDF_Font* pFont); |
182 CPDF_Font* m_pFont; | 182 CPDF_Font* m_pFont; |
183 }; | 183 }; |
184 | 184 |
185 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 185 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
OLD | NEW |