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