| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FXGE_INCLUDE_CFX_FONTMAPPER_H_ | 7 #ifndef CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ |
| 8 #define CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ | 8 #define CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "core/fxge/include/cfx_fontmgr.h" | 13 #include "core/fxge/include/cfx_fontmgr.h" |
| 14 #include "core/fxge/include/fx_font.h" | 14 #include "core/fxge/include/fx_font.h" |
| 15 | 15 |
| 16 class CFX_SubstFont; |
| 17 |
| 16 class CFX_FontMapper { | 18 class CFX_FontMapper { |
| 17 public: | 19 public: |
| 18 explicit CFX_FontMapper(CFX_FontMgr* mgr); | 20 explicit CFX_FontMapper(CFX_FontMgr* mgr); |
| 19 ~CFX_FontMapper(); | 21 ~CFX_FontMapper(); |
| 20 | 22 |
| 21 void SetSystemFontInfo(std::unique_ptr<IFX_SystemFontInfo> pFontInfo); | 23 void SetSystemFontInfo(std::unique_ptr<IFX_SystemFontInfo> pFontInfo); |
| 22 IFX_SystemFontInfo* GetSystemFontInfo() { return m_pFontInfo.get(); } | 24 IFX_SystemFontInfo* GetSystemFontInfo() { return m_pFontInfo.get(); } |
| 23 void AddInstalledFont(const CFX_ByteString& name, int charset); | 25 void AddInstalledFont(const CFX_ByteString& name, int charset); |
| 24 void LoadInstalledFonts(); | 26 void LoadInstalledFonts(); |
| 25 | 27 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 FX_BOOL m_bListLoaded; | 75 FX_BOOL m_bListLoaded; |
| 74 FXFT_Face m_MMFaces[MM_FACE_COUNT]; | 76 FXFT_Face m_MMFaces[MM_FACE_COUNT]; |
| 75 CFX_ByteString m_LastFamily; | 77 CFX_ByteString m_LastFamily; |
| 76 std::vector<FaceData> m_FaceArray; | 78 std::vector<FaceData> m_FaceArray; |
| 77 std::unique_ptr<IFX_SystemFontInfo> m_pFontInfo; | 79 std::unique_ptr<IFX_SystemFontInfo> m_pFontInfo; |
| 78 FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT]; | 80 FXFT_Face m_FoxitFaces[FOXIT_FACE_COUNT]; |
| 79 CFX_FontMgr* const m_pFontMgr; | 81 CFX_FontMgr* const m_pFontMgr; |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 #endif // CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ | 84 #endif // CORE_FXGE_INCLUDE_CFX_FONTMAPPER_H_ |
| OLD | NEW |