| 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_FONTMGR_H_ | 7 #ifndef CORE_FXGE_INCLUDE_CFX_FONTMGR_H_ |
| 8 #define CORE_FXGE_INCLUDE_CFX_FONTMGR_H_ | 8 #define CORE_FXGE_INCLUDE_CFX_FONTMGR_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "core/fxge/include/fx_font.h" | 13 #include "core/fxge/include/fx_font.h" |
| 14 | 14 |
| 15 class IFX_SystemFontInfo; | 15 class IFX_SystemFontInfo; |
| 16 class CFX_FontMapper; | 16 class CFX_FontMapper; |
| 17 class CFX_SubstFont; |
| 18 class CTTFontDesc; |
| 17 | 19 |
| 18 class CFX_FontMgr { | 20 class CFX_FontMgr { |
| 19 public: | 21 public: |
| 20 CFX_FontMgr(); | 22 CFX_FontMgr(); |
| 21 ~CFX_FontMgr(); | 23 ~CFX_FontMgr(); |
| 22 | 24 |
| 23 void InitFTLibrary(); | 25 void InitFTLibrary(); |
| 24 | 26 |
| 25 FXFT_Face GetCachedFace(const CFX_ByteString& face_name, | 27 FXFT_Face GetCachedFace(const CFX_ByteString& face_name, |
| 26 int weight, | 28 int weight, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 bool FTLibrarySupportsHinting() const { return m_FTLibrarySupportsHinting; } | 60 bool FTLibrarySupportsHinting() const { return m_FTLibrarySupportsHinting; } |
| 59 | 61 |
| 60 private: | 62 private: |
| 61 std::unique_ptr<CFX_FontMapper> m_pBuiltinMapper; | 63 std::unique_ptr<CFX_FontMapper> m_pBuiltinMapper; |
| 62 std::map<CFX_ByteString, CTTFontDesc*> m_FaceMap; | 64 std::map<CFX_ByteString, CTTFontDesc*> m_FaceMap; |
| 63 FXFT_Library m_FTLibrary; | 65 FXFT_Library m_FTLibrary; |
| 64 bool m_FTLibrarySupportsHinting; | 66 bool m_FTLibrarySupportsHinting; |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 #endif // CORE_FXGE_INCLUDE_CFX_FONTMGR_H_ | 69 #endif // CORE_FXGE_INCLUDE_CFX_FONTMGR_H_ |
| OLD | NEW |