| 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_STDFONTMGR_H_ | 7 #ifndef XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ |
| 8 #define XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ | 8 #define XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_ext.h" | 10 #include "core/fxcrt/include/fx_ext.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 IFX_Font* LoadFont(const FX_WCHAR* pszFileName) override; | 44 IFX_Font* LoadFont(const FX_WCHAR* pszFileName) override; |
| 45 IFX_Font* LoadFont(IFX_Stream* pFontStream, | 45 IFX_Font* LoadFont(IFX_Stream* pFontStream, |
| 46 const FX_WCHAR* pszFontAlias = NULL, | 46 const FX_WCHAR* pszFontAlias = NULL, |
| 47 uint32_t dwFontStyles = 0, | 47 uint32_t dwFontStyles = 0, |
| 48 uint16_t wCodePage = 0, | 48 uint16_t wCodePage = 0, |
| 49 FX_BOOL bSaveStream = FALSE) override; | 49 FX_BOOL bSaveStream = FALSE) override; |
| 50 IFX_Font* LoadFont(IFX_Font* pSrcFont, | 50 IFX_Font* LoadFont(IFX_Font* pSrcFont, |
| 51 uint32_t dwFontStyles, | 51 uint32_t dwFontStyles, |
| 52 uint16_t wCodePage = 0xFFFF) override; | 52 uint16_t wCodePage = 0xFFFF) override; |
| 53 | 53 |
| 54 void ClearFontCache(); | 54 void ClearFontCache() override; |
| 55 void RemoveFont(IFX_Font* pFont); | 55 void RemoveFont(IFX_Font* pFont) override; |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 void RemoveFont(CFX_MapPtrToPtr& fontMap, IFX_Font* pFont); | 58 void RemoveFont(CFX_MapPtrToPtr& fontMap, IFX_Font* pFont); |
| 59 FX_FONTDESCRIPTOR const* FindFont(const FX_WCHAR* pszFontFamily, | 59 FX_FONTDESCRIPTOR const* FindFont(const FX_WCHAR* pszFontFamily, |
| 60 uint32_t dwFontStyles, | 60 uint32_t dwFontStyles, |
| 61 uint32_t dwMatchFlags, | 61 uint32_t dwMatchFlags, |
| 62 uint16_t wCodePage, | 62 uint16_t wCodePage, |
| 63 uint32_t dwUSB = 999, | 63 uint32_t dwUSB = 999, |
| 64 FX_WCHAR wUnicode = 0); | 64 FX_WCHAR wUnicode = 0); |
| 65 IFX_Font* GetFont(FX_FONTDESCRIPTOR const* pFD, uint32_t dwFontStyles); | 65 IFX_Font* GetFont(FX_FONTDESCRIPTOR const* pFD, uint32_t dwFontStyles); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<IFX_Font*>*> m_Hash2Fonts; | 235 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<IFX_Font*>*> m_Hash2Fonts; |
| 236 CFX_MapPtrTemplate<uint32_t, IFX_FileAccess*> m_Hash2FileAccess; | 236 CFX_MapPtrTemplate<uint32_t, IFX_FileAccess*> m_Hash2FileAccess; |
| 237 CFX_MapPtrTemplate<uint32_t, IFX_Font*> m_FileAccess2IFXFont; | 237 CFX_MapPtrTemplate<uint32_t, IFX_Font*> m_FileAccess2IFXFont; |
| 238 CFX_MapPtrTemplate<IFX_Font*, IFX_FileRead*> m_IFXFont2FileRead; | 238 CFX_MapPtrTemplate<IFX_Font*, IFX_FileRead*> m_IFXFont2FileRead; |
| 239 CFX_MapPtrTemplate<FX_WCHAR, IFX_Font*> m_FailedUnicodes2NULL; | 239 CFX_MapPtrTemplate<FX_WCHAR, IFX_Font*> m_FailedUnicodes2NULL; |
| 240 CFX_FontSourceEnum_File* const m_pFontSource; | 240 CFX_FontSourceEnum_File* const m_pFontSource; |
| 241 }; | 241 }; |
| 242 #endif | 242 #endif |
| 243 | 243 |
| 244 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ | 244 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ |
| OLD | NEW |