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 _SKIA_SUPPORT_ | 7 #ifndef _SKIA_SUPPORT_ |
8 #include "core/fxge/agg/fx_agg_driver.h" | 8 #include "core/fxge/agg/fx_agg_driver.h" |
9 #endif | 9 #endif |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
| 13 #include "core/fxge/cfx_gemodule.h" |
13 #include "core/fxge/ge/cfx_folderfontinfo.h" | 14 #include "core/fxge/ge/cfx_folderfontinfo.h" |
14 #include "core/fxge/ge/fx_text_int.h" | 15 #include "core/fxge/ge/fx_text_int.h" |
15 #include "core/fxge/include/cfx_gemodule.h" | 16 #include "core/fxge/ifx_systemfontinfo.h" |
16 #include "core/fxge/include/ifx_systemfontinfo.h" | |
17 | 17 |
18 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ | 18 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ |
19 namespace { | 19 namespace { |
20 | 20 |
21 class CFX_LinuxFontInfo : public CFX_FolderFontInfo { | 21 class CFX_LinuxFontInfo : public CFX_FolderFontInfo { |
22 public: | 22 public: |
23 void* MapFont(int weight, | 23 void* MapFont(int weight, |
24 FX_BOOL bItalic, | 24 FX_BOOL bItalic, |
25 int charset, | 25 int charset, |
26 int pitch_family, | 26 int pitch_family, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 return TRUE; | 160 return TRUE; |
161 } | 161 } |
162 | 162 |
163 void CFX_GEModule::InitPlatform() { | 163 void CFX_GEModule::InitPlatform() { |
164 m_pFontMgr->SetSystemFontInfo( | 164 m_pFontMgr->SetSystemFontInfo( |
165 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); | 165 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); |
166 } | 166 } |
167 | 167 |
168 void CFX_GEModule::DestroyPlatform() {} | 168 void CFX_GEModule::DestroyPlatform() {} |
169 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ | 169 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ |
OLD | NEW |