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/src/fxge/android/fx_fpf.h" | 7 #include "core/include/fxcrt/fx_system.h" |
| 8 |
8 #if _FX_OS_ == _FX_ANDROID_ | 9 #if _FX_OS_ == _FX_ANDROID_ |
| 10 |
| 11 #include "core/include/fxge/fpf.h" |
| 12 #include "core/src/fxge/android/fx_android_font.h" |
| 13 |
9 CFX_AndroidFontInfo::CFX_AndroidFontInfo() : m_pFontMgr(NULL) {} | 14 CFX_AndroidFontInfo::CFX_AndroidFontInfo() : m_pFontMgr(NULL) {} |
10 FX_BOOL CFX_AndroidFontInfo::Init(IFPF_FontMgr* pFontMgr) { | 15 FX_BOOL CFX_AndroidFontInfo::Init(IFPF_FontMgr* pFontMgr) { |
11 if (!pFontMgr) { | 16 if (!pFontMgr) { |
12 return FALSE; | 17 return FALSE; |
13 } | 18 } |
14 pFontMgr->LoadSystemFonts(); | 19 pFontMgr->LoadSystemFonts(); |
15 m_pFontMgr = pFontMgr; | 20 m_pFontMgr = pFontMgr; |
16 return TRUE; | 21 return TRUE; |
17 } | 22 } |
18 FX_BOOL CFX_AndroidFontInfo::EnumFontList(CFX_FontMapper* pMapper) { | 23 FX_BOOL CFX_AndroidFontInfo::EnumFontList(CFX_FontMapper* pMapper) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 void CFX_AndroidFontInfo::DeleteFont(void* hFont) { | 80 void CFX_AndroidFontInfo::DeleteFont(void* hFont) { |
76 if (!hFont) { | 81 if (!hFont) { |
77 return; | 82 return; |
78 } | 83 } |
79 ((IFPF_Font*)hFont)->Release(); | 84 ((IFPF_Font*)hFont)->Release(); |
80 } | 85 } |
81 void* CFX_AndroidFontInfo::RetainFont(void* hFont) { | 86 void* CFX_AndroidFontInfo::RetainFont(void* hFont) { |
82 return NULL; | 87 return NULL; |
83 } | 88 } |
84 #endif | 89 #endif |
OLD | NEW |