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 "core/fxge/ge/fx_text_int.h" | 11 #include "core/fxge/ge/fx_text_int.h" |
| 12 #include "core/fxge/include/cfx_folderfontinfo.h" |
12 #include "core/fxge/include/fx_ge.h" | 13 #include "core/fxge/include/fx_ge.h" |
13 | 14 |
14 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ | 15 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ |
15 class CFX_LinuxFontInfo : public CFX_FolderFontInfo { | 16 class CFX_LinuxFontInfo : public CFX_FolderFontInfo { |
16 public: | 17 public: |
17 void* MapFont(int weight, | 18 void* MapFont(int weight, |
18 FX_BOOL bItalic, | 19 FX_BOOL bItalic, |
19 int charset, | 20 int charset, |
20 int pitch_family, | 21 int pitch_family, |
21 const FX_CHAR* family, | 22 const FX_CHAR* family, |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 AddPath(*pPath); | 145 AddPath(*pPath); |
145 return TRUE; | 146 return TRUE; |
146 } | 147 } |
147 | 148 |
148 void CFX_GEModule::InitPlatform() { | 149 void CFX_GEModule::InitPlatform() { |
149 m_pFontMgr->SetSystemFontInfo( | 150 m_pFontMgr->SetSystemFontInfo( |
150 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); | 151 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); |
151 } | 152 } |
152 void CFX_GEModule::DestroyPlatform() {} | 153 void CFX_GEModule::DestroyPlatform() {} |
153 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ | 154 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ |
OLD | NEW |