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 _FX_ANDROID_FONT_H_ | 7 #ifndef _FX_ANDROID_FONT_H_ |
8 #define _FX_ANDROID_FONT_H_ | 8 #define _FX_ANDROID_FONT_H_ |
9 #if _FX_OS_ == _FX_ANDROID_ | 9 #if _FX_OS_ == _FX_ANDROID_ |
10 class IFPF_FontMgr; | 10 class IFPF_FontMgr; |
11 class CFX_AndroidFontInfo : public IFX_SystemFontInfo | 11 class CFX_AndroidFontInfo : public IFX_SystemFontInfo { |
12 { | 12 public: |
13 public: | 13 CFX_AndroidFontInfo(); |
14 CFX_AndroidFontInfo(); | 14 virtual void Release() { delete this; } |
15 virtual void» » Release() | |
16 { | |
17 delete this; | |
18 } | |
19 | 15 |
20 virtual» FX_BOOL»» EnumFontList(CFX_FontMapper* pMapper); | 16 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper); |
21 | 17 |
22 virtual void*» » MapFont(int weight, FX_BOOL bItalic, int charset
, int pitch_family, FX_LPCSTR face, FX_BOOL& bExact); | 18 virtual void* MapFont(int weight, |
| 19 FX_BOOL bItalic, |
| 20 int charset, |
| 21 int pitch_family, |
| 22 FX_LPCSTR face, |
| 23 FX_BOOL& bExact); |
23 | 24 |
24 virtual void*» » GetFont(FX_LPCSTR face); | 25 virtual void* GetFont(FX_LPCSTR face); |
25 virtual FX_DWORD» GetFontData(void* hFont, FX_DWORD table, FX_LPBYTE buffe
r, FX_DWORD size); | 26 virtual FX_DWORD GetFontData(void* hFont, |
26 virtual FX_BOOL» » GetFaceName(void* hFont, CFX_ByteString& name); | 27 FX_DWORD table, |
27 virtual FX_BOOL» » GetFontCharset(void* hFont, int& charset); | 28 FX_LPBYTE buffer, |
| 29 FX_DWORD size); |
| 30 virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name); |
| 31 virtual FX_BOOL GetFontCharset(void* hFont, int& charset); |
28 | 32 |
29 virtual void» » DeleteFont(void* hFont); | 33 virtual void DeleteFont(void* hFont); |
30 virtual void* RetainFont(void* hFont); | 34 virtual void* RetainFont(void* hFont); |
31 FX_BOOL» » » » Init(IFPF_FontMgr *pFontMgr); | 35 FX_BOOL Init(IFPF_FontMgr* pFontMgr); |
32 protected: | 36 |
33 IFPF_FontMgr» » *m_pFontMgr; | 37 protected: |
| 38 IFPF_FontMgr* m_pFontMgr; |
34 }; | 39 }; |
35 #endif | 40 #endif |
36 #endif | 41 #endif |
OLD | NEW |