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

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

Issue 809513002: XFA: merge patch from issue 801913002 and 804463003 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 6 years 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/src/fxge/ge/fx_ge_fontmap.cpp ('k') | core/src/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 #include "../../../include/fxge/fx_ge.h" 7 #include "../../../include/fxge/fx_ge.h"
8 #include "../agg/include/fx_agg_driver.h" 8 #include "../agg/include/fx_agg_driver.h"
9 #include "text_int.h" 9 #include "text_int.h"
10 #if !defined(_FPDFAPI_MINI_) && _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ 10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_
11 #if (_FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ && (!defined(_FPDFAPI_MINI_)))
12 void CFX_AggDeviceDriver::InitPlatform()
13 {
14 }
15 void CFX_AggDeviceDriver::DestroyPlatform()
16 {
17 }
18 void CFX_FaceCache::InitPlatform()
19 {
20 }
21 FX_BOOL CFX_AggDeviceDriver::DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pC harPos, CFX_Font* pFont,
22 CFX_FontCache* pCache, const CFX_AffineMatrix* pObject2Device,
23 FX_FLOAT font_size, FX_DWORD argb)
24 {
25 return FALSE;
26 }
27 CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph_Nativetext(CFX_Font* pFont, FX_DWORD glyph_index, const CFX_AffineMatrix* pMatrix,
28 int dest_width, int anti_alias)
29 {
30 return NULL;
31 }
32 void CFX_Font::ReleasePlatformResource()
33 {
34 }
35 #endif
36 static const struct { 11 static const struct {
37 FX_LPCSTR m_pName; 12 FX_LPCSTR m_pName;
38 FX_LPCSTR m_pSubstName; 13 FX_LPCSTR m_pSubstName;
39 } 14 }
40 Base14Substs[] = { 15 Base14Substs[] = {
41 {"Courier", "Courier New"}, 16 {"Courier", "Courier New"},
42 {"Courier-Bold", "Courier New Bold"}, 17 {"Courier-Bold", "Courier New Bold"},
43 {"Courier-BoldOblique", "Courier New Bold Italic"}, 18 {"Courier-BoldOblique", "Courier New Bold Italic"},
44 {"Courier-Oblique", "Courier New Italic"}, 19 {"Courier-Oblique", "Courier New Italic"},
45 {"Helvetica", "Arial"}, 20 {"Helvetica", "Arial"},
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 return FALSE; 225 return FALSE;
251 } 226 }
252 void CFX_GEModule::InitPlatform() 227 void CFX_GEModule::InitPlatform()
253 { 228 {
254 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault()); 229 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault());
255 } 230 }
256 void CFX_GEModule::DestroyPlatform() 231 void CFX_GEModule::DestroyPlatform()
257 { 232 {
258 } 233 }
259 #endif 234 #endif
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_fontmap.cpp ('k') | core/src/fxge/ge/fx_ge_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698