| 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_CFGAS_GEFONT_H_ | 7 #ifndef XFA_FGAS_FONT_CFGAS_GEFONT_H_ |
| 8 #define XFA_FGAS_FONT_CFGAS_GEFONT_H_ | 8 #define XFA_FGAS_FONT_CFGAS_GEFONT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 91 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 92 bool m_bUseLogFontStyle; | 92 bool m_bUseLogFontStyle; |
| 93 uint32_t m_dwLogFontStyle; | 93 uint32_t m_dwLogFontStyle; |
| 94 #endif | 94 #endif |
| 95 CFX_Font* m_pFont; | 95 CFX_Font* m_pFont; |
| 96 CFGAS_GEFont* const m_pSrcFont; | 96 CFGAS_GEFont* const m_pSrcFont; |
| 97 CFGAS_FontMgr* const m_pFontMgr; | 97 CFGAS_FontMgr* const m_pFontMgr; |
| 98 int32_t m_iRefCount; | 98 int32_t m_iRefCount; |
| 99 bool m_bExternalFont; | 99 bool m_bExternalFont; |
| 100 std::unique_ptr<IFGAS_Stream, ReleaseDeleter<IFGAS_Stream>> m_pStream; | 100 std::unique_ptr<IFGAS_Stream, ReleaseDeleter<IFGAS_Stream>> m_pStream; |
| 101 std::unique_ptr<IFX_SeekableReadStream, | 101 CFX_RetainPtr<IFX_SeekableReadStream> m_pFileRead; |
| 102 ReleaseDeleter<IFX_SeekableReadStream>> | |
| 103 m_pFileRead; | |
| 104 std::unique_ptr<CFX_UnicodeEncoding> m_pFontEncoding; | 102 std::unique_ptr<CFX_UnicodeEncoding> m_pFontEncoding; |
| 105 std::unique_ptr<CFX_DiscreteArrayTemplate<uint16_t>> m_pCharWidthMap; | 103 std::unique_ptr<CFX_DiscreteArrayTemplate<uint16_t>> m_pCharWidthMap; |
| 106 std::unique_ptr<CFX_MassArrayTemplate<CFX_Rect>> m_pRectArray; | 104 std::unique_ptr<CFX_MassArrayTemplate<CFX_Rect>> m_pRectArray; |
| 107 std::unique_ptr<CFX_MapPtrToPtr> m_pBBoxMap; | 105 std::unique_ptr<CFX_MapPtrToPtr> m_pBBoxMap; |
| 108 CXFA_PDFFontMgr* m_pProvider; // not owned. | 106 CXFA_PDFFontMgr* m_pProvider; // not owned. |
| 109 CFX_ArrayTemplate<CFGAS_GEFont*> m_SubstFonts; | 107 CFX_ArrayTemplate<CFGAS_GEFont*> m_SubstFonts; |
| 110 std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper; | 108 std::map<FX_WCHAR, CFGAS_GEFont*> m_FontMapper; |
| 111 }; | 109 }; |
| 112 | 110 |
| 113 #endif // XFA_FGAS_FONT_CFGAS_GEFONT_H_ | 111 #endif // XFA_FGAS_FONT_CFGAS_GEFONT_H_ |
| OLD | NEW |