Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: core/fxge/ge/fx_ge_linux.cpp

Issue 2217663002: Refactor fx_ge part 1 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fxge/ge/fx_ge_font.cpp ('k') | core/fxge/ge/fx_ge_text.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/cfx_folderfontinfo.h" 11 #include "core/fxge/ge/cfx_folderfontinfo.h"
12 #include "core/fxge/ge/fx_text_int.h" 12 #include "core/fxge/ge/fx_text_int.h"
13 #include "core/fxge/include/fx_ge.h" 13 #include "core/fxge/include/cfx_gemodule.h"
14 #include "core/fxge/include/ifx_systemfontinfo.h" 14 #include "core/fxge/include/ifx_systemfontinfo.h"
15 15
16 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ 16 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_
17 class CFX_LinuxFontInfo : public CFX_FolderFontInfo { 17 class CFX_LinuxFontInfo : public CFX_FolderFontInfo {
18 public: 18 public:
19 void* MapFont(int weight, 19 void* MapFont(int weight,
20 FX_BOOL bItalic, 20 FX_BOOL bItalic,
21 int charset, 21 int charset,
22 int pitch_family, 22 int pitch_family,
23 const FX_CHAR* family, 23 const FX_CHAR* family,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 AddPath(*pPath); 146 AddPath(*pPath);
147 return TRUE; 147 return TRUE;
148 } 148 }
149 149
150 void CFX_GEModule::InitPlatform() { 150 void CFX_GEModule::InitPlatform() {
151 m_pFontMgr->SetSystemFontInfo( 151 m_pFontMgr->SetSystemFontInfo(
152 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); 152 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths));
153 } 153 }
154 void CFX_GEModule::DestroyPlatform() {} 154 void CFX_GEModule::DestroyPlatform() {}
155 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ 155 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_
OLDNEW
« no previous file with comments | « core/fxge/ge/fx_ge_font.cpp ('k') | core/fxge/ge/fx_ge_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698