| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ | |
| 8 #define CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ | |
| 9 | |
| 10 #include "core/include/fxcrt/fx_system.h" | |
| 11 | |
| 12 #if _FX_OS_ == _FX_ANDROID_ | |
| 13 | |
| 14 #include "core/include/fxge/fx_font.h" | |
| 15 | |
| 16 class IFPF_FontMgr; | |
| 17 | |
| 18 class CFX_AndroidFontInfo : public IFX_SystemFontInfo { | |
| 19 public: | |
| 20 CFX_AndroidFontInfo(); | |
| 21 virtual void Release() { delete this; } | |
| 22 | |
| 23 virtual FX_BOOL EnumFontList(CFX_FontMapper* pMapper); | |
| 24 | |
| 25 virtual void* MapFont(int weight, | |
| 26 FX_BOOL bItalic, | |
| 27 int charset, | |
| 28 int pitch_family, | |
| 29 const FX_CHAR* face, | |
| 30 int& bExact); | |
| 31 | |
| 32 virtual void* GetFont(const FX_CHAR* face); | |
| 33 virtual FX_DWORD GetFontData(void* hFont, | |
| 34 FX_DWORD table, | |
| 35 uint8_t* buffer, | |
| 36 FX_DWORD size); | |
| 37 virtual FX_BOOL GetFaceName(void* hFont, CFX_ByteString& name); | |
| 38 virtual FX_BOOL GetFontCharset(void* hFont, int& charset); | |
| 39 | |
| 40 virtual void DeleteFont(void* hFont); | |
| 41 virtual void* RetainFont(void* hFont); | |
| 42 FX_BOOL Init(IFPF_FontMgr* pFontMgr); | |
| 43 | |
| 44 protected: | |
| 45 IFPF_FontMgr* m_pFontMgr; | |
| 46 }; | |
| 47 #endif | |
| 48 | |
| 49 #endif // CORE_SRC_FXGE_ANDROID_FX_ANDROID_FONT_H_ | |
| OLD | NEW |