| 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 XFA_INCLUDE_FXFA_XFA_FONTMGR_H_ | 7 #ifndef XFA_FXFA_INCLUDE_XFA_FONTMGR_H_ |
| 8 #define XFA_INCLUDE_FXFA_XFA_FONTMGR_H_ | 8 #define XFA_FXFA_INCLUDE_XFA_FONTMGR_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "core/fxcrt/include/fx_ext.h" | 12 #include "core/fxcrt/include/fx_ext.h" |
| 13 #include "core/fxcrt/include/fx_system.h" | 13 #include "core/fxcrt/include/fx_system.h" |
| 14 #include "xfa/fgas/font/fgas_font.h" | 14 #include "xfa/fgas/font/fgas_font.h" |
| 15 #include "xfa/include/fxfa/fxfa.h" | 15 #include "xfa/fxfa/include/fxfa.h" |
| 16 | 16 |
| 17 class CPDF_Font; | 17 class CPDF_Font; |
| 18 | 18 |
| 19 struct XFA_FONTINFO { | 19 struct XFA_FONTINFO { |
| 20 uint32_t dwFontNameHash; | 20 uint32_t dwFontNameHash; |
| 21 const FX_WCHAR* pPsName; | 21 const FX_WCHAR* pPsName; |
| 22 const FX_WCHAR* pReplaceFont; | 22 const FX_WCHAR* pReplaceFont; |
| 23 uint16_t dwStyles; | 23 uint16_t dwStyles; |
| 24 uint16_t wCodePage; | 24 uint16_t wCodePage; |
| 25 }; | 25 }; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void SetDefFontMgr(CXFA_DefFontMgr* pFontMgr); | 89 void SetDefFontMgr(CXFA_DefFontMgr* pFontMgr); |
| 90 | 90 |
| 91 protected: | 91 protected: |
| 92 void DelAllMgrMap(); | 92 void DelAllMgrMap(); |
| 93 | 93 |
| 94 CFX_MapPtrToPtr m_PDFFontMgrArray; | 94 CFX_MapPtrToPtr m_PDFFontMgrArray; |
| 95 CXFA_DefFontMgr* m_pDefFontMgr; | 95 CXFA_DefFontMgr* m_pDefFontMgr; |
| 96 std::map<CFX_ByteString, IFX_Font*> m_FontMap; | 96 std::map<CFX_ByteString, IFX_Font*> m_FontMap; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 #endif // XFA_INCLUDE_FXFA_XFA_FONTMGR_H_ | 99 #endif // XFA_FXFA_INCLUDE_XFA_FONTMGR_H_ |
| OLD | NEW |