| 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_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 virtual int GlyphFromCharCode(FX_DWORD charcode, | 174 virtual int GlyphFromCharCode(FX_DWORD charcode, |
| 175 FX_BOOL* pVertGlyph = NULL) = 0; | 175 FX_BOOL* pVertGlyph = NULL) = 0; |
| 176 virtual int GlyphFromCharCodeExt(FX_DWORD charcode) { | 176 virtual int GlyphFromCharCodeExt(FX_DWORD charcode) { |
| 177 return GlyphFromCharCode(charcode); | 177 return GlyphFromCharCode(charcode); |
| 178 } | 178 } |
| 179 | 179 |
| 180 CFX_WideString UnicodeFromCharCode(FX_DWORD charcode) const; | 180 CFX_WideString UnicodeFromCharCode(FX_DWORD charcode) const; |
| 181 | 181 |
| 182 FX_DWORD CharCodeFromUnicode(FX_WCHAR Unicode) const; | 182 FX_DWORD CharCodeFromUnicode(FX_WCHAR Unicode) const; |
| 183 | 183 |
| 184 CFX_CharMap* GetCharMap() { return m_pCharMap; } | |
| 185 | |
| 186 CFX_ByteString EncodeString(const CFX_WideString& str) const; | |
| 187 | |
| 188 CFX_WideString DecodeString(const CFX_ByteString& str) const; | |
| 189 | |
| 190 void GetFontBBox(FX_RECT& rect) const { rect = m_FontBBox; } | 184 void GetFontBBox(FX_RECT& rect) const { rect = m_FontBBox; } |
| 191 | 185 |
| 192 int GetTypeAscent() const { return m_Ascent; } | 186 int GetTypeAscent() const { return m_Ascent; } |
| 193 | 187 |
| 194 int GetTypeDescent() const { return m_Descent; } | 188 int GetTypeDescent() const { return m_Descent; } |
| 195 | 189 |
| 196 int GetItalicAngle() const { return m_ItalicAngle; } | 190 int GetItalicAngle() const { return m_ItalicAngle; } |
| 197 | 191 |
| 198 int GetStemV() const { return m_StemV; } | 192 int GetStemV() const { return m_StemV; } |
| 199 | 193 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 CFX_ByteString*& pCharNames, | 225 CFX_ByteString*& pCharNames, |
| 232 FX_BOOL bEmbedded, | 226 FX_BOOL bEmbedded, |
| 233 FX_BOOL bTrueType); | 227 FX_BOOL bTrueType); |
| 234 | 228 |
| 235 void LoadFontDescriptor(CPDF_Dictionary*); | 229 void LoadFontDescriptor(CPDF_Dictionary*); |
| 236 | 230 |
| 237 void LoadCharWidths(FX_WORD* pWidths); | 231 void LoadCharWidths(FX_WORD* pWidths); |
| 238 | 232 |
| 239 void CheckFontMetrics(); | 233 void CheckFontMetrics(); |
| 240 | 234 |
| 241 CFX_CharMap* m_pCharMap; | |
| 242 | |
| 243 CFX_ByteString m_BaseFont; | 235 CFX_ByteString m_BaseFont; |
| 244 | 236 |
| 245 CPDF_StreamAcc* m_pFontFile; | 237 CPDF_StreamAcc* m_pFontFile; |
| 246 | 238 |
| 247 CPDF_Dictionary* m_pFontDict; | 239 CPDF_Dictionary* m_pFontDict; |
| 248 | 240 |
| 249 CPDF_ToUnicodeMap* m_pToUnicodeMap; | 241 CPDF_ToUnicodeMap* m_pToUnicodeMap; |
| 250 | 242 |
| 251 FX_BOOL m_bToUnicodeLoaded; | 243 FX_BOOL m_bToUnicodeLoaded; |
| 252 | 244 |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 | 838 |
| 847 FX_BOOL m_bInterpolate; | 839 FX_BOOL m_bInterpolate; |
| 848 | 840 |
| 849 CPDF_Document* m_pDocument; | 841 CPDF_Document* m_pDocument; |
| 850 | 842 |
| 851 CPDF_Dictionary* m_pOC; | 843 CPDF_Dictionary* m_pOC; |
| 852 CPDF_Dictionary* InitJPEG(uint8_t* pData, FX_DWORD size); | 844 CPDF_Dictionary* InitJPEG(uint8_t* pData, FX_DWORD size); |
| 853 }; | 845 }; |
| 854 | 846 |
| 855 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ | 847 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ |
| OLD | NEW |