| 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 FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ |
| 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ |
| 9 | 9 |
| 10 #include "../../../public/fpdf_sysfontinfo.h" | 10 #include "../../../public/fpdf_sysfontinfo.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 CPWL_FontMap(IFX_SystemHandler* pSystemHandler); | 65 CPWL_FontMap(IFX_SystemHandler* pSystemHandler); |
| 66 virtual ~CPWL_FontMap(); | 66 virtual ~CPWL_FontMap(); |
| 67 | 67 |
| 68 virtual CPDF_Font*
GetPDFFont(int32_t nFontIndex); | 68 virtual CPDF_Font*
GetPDFFont(int32_t nFontIndex); |
| 69 virtual CFX_ByteString GetPDFFo
ntAlias(int32_t nFontIndex); | 69 virtual CFX_ByteString GetPDFFo
ntAlias(int32_t nFontIndex); |
| 70 virtual int32_t GetWordF
ontIndex(FX_WORD word, int32_t nCharset, int32_t nFontIndex); | 70 virtual int32_t GetWordF
ontIndex(FX_WORD word, int32_t nCharset, int32_t nFontIndex); |
| 71 virtual int32_t CharCode
FromUnicode(int32_t nFontIndex, FX_WORD word); | 71 virtual int32_t CharCode
FromUnicode(int32_t nFontIndex, FX_WORD word); |
| 72 virtual int32_t CharSetF
romUnicode(FX_WORD word, int32_t nOldCharset); | 72 virtual int32_t CharSetF
romUnicode(FX_WORD word, int32_t nOldCharset); |
| 73 | 73 |
| 74 public: | 74 public: |
| 75 » virtual void» » » » » » » »
Initial(FX_LPCSTR fontname = NULL); | 75 » virtual void» » » » » » » »
Initial(const FX_CHAR* fontname = NULL); |
| 76 void
SetSystemHandler(IFX_SystemHandler* pSystemHandler); | 76 void
SetSystemHandler(IFX_SystemHandler* pSystemHandler); |
| 77 | 77 |
| 78 int32_t
GetFontMapCount() const; | 78 int32_t
GetFontMapCount() const; |
| 79 const CPWL_FontMap_Data* GetFontM
apData(int32_t nIndex) const; | 79 const CPWL_FontMap_Data* GetFontM
apData(int32_t nIndex) const; |
| 80 | 80 |
| 81 public: | 81 public: |
| 82 static int32_t
GetNativeCharset(); | 82 static int32_t
GetNativeCharset(); |
| 83 CFX_ByteString
GetNativeFontName(int32_t nCharset); | 83 CFX_ByteString
GetNativeFontName(int32_t nCharset); |
| 84 | 84 |
| 85 static CFX_ByteString GetDefau
ltFontByCharset(int32_t nCharset); | 85 static CFX_ByteString GetDefau
ltFontByCharset(int32_t nCharset); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 CPWL_DocFontMap(IFX_SystemHandler* pSystemHandler, CPDF_Document* pAttac
hedDoc); | 130 CPWL_DocFontMap(IFX_SystemHandler* pSystemHandler, CPDF_Document* pAttac
hedDoc); |
| 131 virtual ~CPWL_DocFontMap(); | 131 virtual ~CPWL_DocFontMap(); |
| 132 | 132 |
| 133 virtual CPDF_Document* GetDocum
ent(); | 133 virtual CPDF_Document* GetDocum
ent(); |
| 134 | 134 |
| 135 private: | 135 private: |
| 136 CPDF_Document*
m_pAttachedDoc; | 136 CPDF_Document*
m_pAttachedDoc; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ | 139 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_ |
| OLD | NEW |