| 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_GE_CFX_FOLDERFONTINFO_H_ | 7 #ifndef CORE_FXGE_GE_CFX_FOLDERFONTINFO_H_ |
| 8 #define CORE_FXGE_GE_CFX_FOLDERFONTINFO_H_ | 8 #define CORE_FXGE_GE_CFX_FOLDERFONTINFO_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "core/fxge/include/cfx_fontmapper.h" | 13 #include "core/fxge/include/cfx_fontmapper.h" |
| 14 #include "core/fxge/include/fx_font.h" |
| 14 #include "core/fxge/include/ifx_systemfontinfo.h" | 15 #include "core/fxge/include/ifx_systemfontinfo.h" |
| 15 #include "core/fxge/include/fx_font.h" | |
| 16 | 16 |
| 17 class CFX_FolderFontInfo : public IFX_SystemFontInfo { | 17 class CFX_FolderFontInfo : public IFX_SystemFontInfo { |
| 18 public: | 18 public: |
| 19 CFX_FolderFontInfo(); | 19 CFX_FolderFontInfo(); |
| 20 ~CFX_FolderFontInfo() override; | 20 ~CFX_FolderFontInfo() override; |
| 21 | 21 |
| 22 void AddPath(const CFX_ByteStringC& path); | 22 void AddPath(const CFX_ByteStringC& path); |
| 23 | 23 |
| 24 // IFX_SytemFontInfo: | 24 // IFX_SytemFontInfo: |
| 25 FX_BOOL EnumFontList(CFX_FontMapper* pMapper) override; | 25 FX_BOOL EnumFontList(CFX_FontMapper* pMapper) override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 int pitch_family, | 58 int pitch_family, |
| 59 const FX_CHAR* family, | 59 const FX_CHAR* family, |
| 60 FX_BOOL bMatchName); | 60 FX_BOOL bMatchName); |
| 61 | 61 |
| 62 std::map<CFX_ByteString, CFX_FontFaceInfo*> m_FontList; | 62 std::map<CFX_ByteString, CFX_FontFaceInfo*> m_FontList; |
| 63 std::vector<CFX_ByteString> m_PathList; | 63 std::vector<CFX_ByteString> m_PathList; |
| 64 CFX_FontMapper* m_pMapper; | 64 CFX_FontMapper* m_pMapper; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CORE_FXGE_GE_CFX_FOLDERFONTINFO_H_ | 67 #endif // CORE_FXGE_GE_CFX_FOLDERFONTINFO_H_ |
| OLD | NEW |