| 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 #include "core/include/fxge/fx_ge.h" | 7 #include "core/include/fxge/fx_ge.h" |
| 8 #include "core/src/fxge/agg/include/fx_agg_driver.h" | 8 #include "core/src/fxge/agg/include/fx_agg_driver.h" |
| 9 #include "text_int.h" | 9 #include "core/src/fxge/ge/fx_text_int.h" |
| 10 | 10 |
| 11 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ | 11 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ |
| 12 class CFX_LinuxFontInfo : public CFX_FolderFontInfo { | 12 class CFX_LinuxFontInfo : public CFX_FolderFontInfo { |
| 13 public: | 13 public: |
| 14 void* MapFont(int weight, | 14 void* MapFont(int weight, |
| 15 FX_BOOL bItalic, | 15 FX_BOOL bItalic, |
| 16 int charset, | 16 int charset, |
| 17 int pitch_family, | 17 int pitch_family, |
| 18 const FX_CHAR* family, | 18 const FX_CHAR* family, |
| 19 int& iExact) override; | 19 int& iExact) override; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 AddPath(*pPath); | 138 AddPath(*pPath); |
| 139 } | 139 } |
| 140 return TRUE; | 140 return TRUE; |
| 141 } | 141 } |
| 142 void CFX_GEModule::InitPlatform() { | 142 void CFX_GEModule::InitPlatform() { |
| 143 m_pFontMgr->SetSystemFontInfo( | 143 m_pFontMgr->SetSystemFontInfo( |
| 144 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); | 144 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); |
| 145 } | 145 } |
| 146 void CFX_GEModule::DestroyPlatform() {} | 146 void CFX_GEModule::DestroyPlatform() {} |
| 147 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ | 147 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ |
| OLD | NEW |