| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 86 | 86 |
| 87 CPDF_Font*
AddFontToDocument(CPDF_Document* pDoc, CFX_ByteString& sFontName, uint8_
t nCharset); | 87 CPDF_Font*
AddFontToDocument(CPDF_Document* pDoc, CFX_ByteString& sFontName, uint8_
t nCharset); |
| 88 » static bool» » » » » » » »
IsStandardFont(const CFX_ByteString& sFontName); | 88 » static FX_BOOL» » » » » » » »
IsStandardFont(const CFX_ByteString& sFontName); |
| 89 CPDF_Font*
AddStandardFont(CPDF_Document* pDoc, CFX_ByteString& sFontName); | 89 CPDF_Font*
AddStandardFont(CPDF_Document* pDoc, CFX_ByteString& sFontName); |
| 90 CPDF_Font*
AddSystemFont(CPDF_Document* pDoc, CFX_ByteString& sFontName, | 90 CPDF_Font*
AddSystemFont(CPDF_Document* pDoc, CFX_ByteString& sFontName, |
| 91
uint8_t nCharset); | 91
uint8_t nCharset); |
| 92 | 92 |
| 93 protected: | 93 protected: |
| 94 virtual CPDF_Font*
FindFontSameCharset(CFX_ByteString& sFontAlias, int32_t nCharset); | 94 virtual CPDF_Font*
FindFontSameCharset(CFX_ByteString& sFontAlias, int32_t nCharset); |
| 95 virtual void
AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias); | 95 virtual void
AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias); |
| 96 » bool» » » » » » » » »
» KnowWord(int32_t nFontIndex, FX_WORD word); | 96 » FX_BOOL»» » » » » » » »
» KnowWord(int32_t nFontIndex, FX_WORD word); |
| 97 | 97 |
| 98 virtual CPDF_Document* GetDocum
ent(); | 98 virtual CPDF_Document* GetDocum
ent(); |
| 99 | 99 |
| 100 void
Empty(); | 100 void
Empty(); |
| 101 » int32_t»» » » » » » » »
GetFontIndex(const CFX_ByteString& sFontName, int32_t nCharset, bool bFind); | 101 » int32_t»» » » » » » » »
GetFontIndex(const CFX_ByteString& sFontName, int32_t nCharset, FX_BOOL bFind); |
| 102 int32_t
GetPWLFontIndex(FX_WORD word, int32_t nCharset); | 102 int32_t
GetPWLFontIndex(FX_WORD word, int32_t nCharset); |
| 103 int32_t
AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, int32_t nCharset
= DEFAULT_CHARSET); | 103 int32_t
AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, int32_t nCharset
= DEFAULT_CHARSET); |
| 104 | 104 |
| 105 CFX_ByteString
EncodeFontAlias(const CFX_ByteString& sFontName, int32_t nCharset); | 105 CFX_ByteString
EncodeFontAlias(const CFX_ByteString& sFontName, int32_t nCharset); |
| 106 CFX_ByteString
EncodeFontAlias(const CFX_ByteString& sFontName); | 106 CFX_ByteString
EncodeFontAlias(const CFX_ByteString& sFontName); |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 CFX_ByteString
GetFontName(int32_t nFontIndex); | 109 CFX_ByteString
GetFontName(int32_t nFontIndex); |
| 110 int32_t
FindFont(const CFX_ByteString& sFontName, int32_t nCharset = DEFAULT_CHARSET); | 110 int32_t
FindFont(const CFX_ByteString& sFontName, int32_t nCharset = DEFAULT_CHARSET); |
| 111 | 111 |
| (...skipping 18 matching lines...) Expand all 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 |