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 "../../../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 Loading... |
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 |
OLD | NEW |