| 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_FGAS_FONT_FGAS_GEFONT_H_ | 7 #ifndef XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| 8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_ | 8 #define XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "core/fxcrt/include/fx_memory.h" | 12 #include "core/fxcrt/fx_memory.h" |
| 13 #include "xfa/fgas/crt/fgas_utils.h" | 13 #include "xfa/fgas/crt/fgas_utils.h" |
| 14 #include "xfa/fgas/font/fgas_font.h" | 14 #include "xfa/fgas/font/fgas_font.h" |
| 15 | 15 |
| 16 #define FXFONT_SUBST_ITALIC 0x02 | 16 #define FXFONT_SUBST_ITALIC 0x02 |
| 17 | 17 |
| 18 class CFX_UnicodeEncoding; | 18 class CFX_UnicodeEncoding; |
| 19 class CXFA_PDFFontMgr; | 19 class CXFA_PDFFontMgr; |
| 20 | 20 |
| 21 class CFGAS_GEFont { | 21 class CFGAS_GEFont { |
| 22 public: | 22 public: |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 std::unique_ptr<CFX_UnicodeEncoding> m_pFontEncoding; | 105 std::unique_ptr<CFX_UnicodeEncoding> m_pFontEncoding; |
| 106 std::unique_ptr<CFX_DiscreteArrayTemplate<uint16_t>> m_pCharWidthMap; | 106 std::unique_ptr<CFX_DiscreteArrayTemplate<uint16_t>> m_pCharWidthMap; |
| 107 std::unique_ptr<CFX_MassArrayTemplate<CFX_Rect>> m_pRectArray; | 107 std::unique_ptr<CFX_MassArrayTemplate<CFX_Rect>> m_pRectArray; |
| 108 std::unique_ptr<CFX_MapPtrToPtr> m_pBBoxMap; | 108 std::unique_ptr<CFX_MapPtrToPtr> m_pBBoxMap; |
| 109 CXFA_PDFFontMgr* m_pProvider; // not owned. | 109 CXFA_PDFFontMgr* m_pProvider; // not owned. |
| 110 CFX_ArrayTemplate<CFGAS_GEFont*> m_SubstFonts; | 110 CFX_ArrayTemplate<CFGAS_GEFont*> m_SubstFonts; |
| 111 std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper; | 111 std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ | 114 #endif // XFA_FGAS_FONT_FGAS_GEFONT_H_ |
| OLD | NEW |