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 #ifndef CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ | 7 #ifndef CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ |
8 #define CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ | 8 #define CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ |
9 | 9 |
| 10 #include "core/include/fxcrt/fx_system.h" |
| 11 |
10 #if _FX_OS_ == _FX_ANDROID_ | 12 #if _FX_OS_ == _FX_ANDROID_ |
| 13 |
| 14 #include "core/include/fxge/fx_font.h" |
| 15 |
11 class IFPF_FontMgr; | 16 class IFPF_FontMgr; |
| 17 |
12 class CFX_AndroidFontInfo : public IFX_SystemFontInfo { | 18 class CFX_AndroidFontInfo : public IFX_SystemFontInfo { |
13 public: | 19 public: |
14 CFX_AndroidFontInfo(); | 20 CFX_AndroidFontInfo(); |
15 virtual void Release() { delete this; } | 21 virtual void Release() { delete this; } |
16 | 22 |
17 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper); | 23 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper); |
18 | 24 |
19 virtual void* MapFont(int weight, | 25 virtual void* MapFont(int weight, |
20 FX_BOOL bItalic, | 26 FX_BOOL bItalic, |
21 int charset, | 27 int charset, |
(...skipping 12 matching lines...) Expand all Loading... |
34 virtual void DeleteFont(void* hFont); | 40 virtual void DeleteFont(void* hFont); |
35 virtual void* RetainFont(void* hFont); | 41 virtual void* RetainFont(void* hFont); |
36 FX_BOOL Init(IFPF_FontMgr* pFontMgr); | 42 FX_BOOL Init(IFPF_FontMgr* pFontMgr); |
37 | 43 |
38 protected: | 44 protected: |
39 IFPF_FontMgr* m_pFontMgr; | 45 IFPF_FontMgr* m_pFontMgr; |
40 }; | 46 }; |
41 #endif | 47 #endif |
42 | 48 |
43 #endif // CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ | 49 #endif // CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ |
OLD | NEW |