| 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 <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "core/fxcrt/fx_ext.h" | 12 #include "core/fxcrt/fx_ext.h" |
| 13 #include "core/fxge/include/cfx_fontmapper.h" | 13 #include "core/fxge/cfx_fontmapper.h" |
| 14 #include "core/fxge/include/fx_freetype.h" | 14 #include "core/fxge/fx_freetype.h" |
| 15 #include "core/fxge/include/ifx_systemfontinfo.h" | 15 #include "core/fxge/ifx_systemfontinfo.h" |
| 16 #include "third_party/freetype/include/freetype/fttypes.h" | 16 #include "third_party/freetype/include/freetype/fttypes.h" |
| 17 #include "xfa/fgas/font/fgas_font.h" | 17 #include "xfa/fgas/font/fgas_font.h" |
| 18 | 18 |
| 19 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 19 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
| 20 int32_t FX_GetSimilarValue(FX_FONTDESCRIPTOR const* pFont, | 20 int32_t FX_GetSimilarValue(FX_FONTDESCRIPTOR const* pFont, |
| 21 uint32_t dwFontStyles); | 21 uint32_t dwFontStyles); |
| 22 FX_FONTDESCRIPTOR const* FX_DefFontMatcher(FX_LPFONTMATCHPARAMS pParams, | 22 FX_FONTDESCRIPTOR const* FX_DefFontMatcher(FX_LPFONTMATCHPARAMS pParams, |
| 23 const CFX_FontDescriptors& fonts); | 23 const CFX_FontDescriptors& fonts); |
| 24 | 24 |
| 25 class CFGAS_StdFontMgrImp : public IFGAS_FontMgr { | 25 class CFGAS_StdFontMgrImp : public IFGAS_FontMgr { |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 CFX_FontDescriptors m_InstalledFonts; | 213 CFX_FontDescriptors m_InstalledFonts; |
| 214 CFX_MapPtrTemplate<uint32_t, CFX_FontDescriptorInfos*> m_Hash2CandidateList; | 214 CFX_MapPtrTemplate<uint32_t, CFX_FontDescriptorInfos*> m_Hash2CandidateList; |
| 215 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<CFGAS_GEFont*>*> m_Hash2Fonts; | 215 CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<CFGAS_GEFont*>*> m_Hash2Fonts; |
| 216 CFX_MapPtrTemplate<CFGAS_GEFont*, IFX_FileRead*> m_IFXFont2FileRead; | 216 CFX_MapPtrTemplate<CFGAS_GEFont*, IFX_FileRead*> m_IFXFont2FileRead; |
| 217 CFX_MapPtrTemplate<FX_WCHAR, CFGAS_GEFont*> m_FailedUnicodes2Nullptr; | 217 CFX_MapPtrTemplate<FX_WCHAR, CFGAS_GEFont*> m_FailedUnicodes2Nullptr; |
| 218 CFX_FontSourceEnum_File* const m_pFontSource; | 218 CFX_FontSourceEnum_File* const m_pFontSource; |
| 219 }; | 219 }; |
| 220 #endif | 220 #endif |
| 221 | 221 |
| 222 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ | 222 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ |
| OLD | NEW |