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 _FPF_SKIA_FONT_H_ | 7 #ifndef CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ |
8 #define _FPF_SKIA_FONT_H_ | 8 #define CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ |
| 9 |
9 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
10 class CFPF_SkiaFontDescriptor; | 11 class CFPF_SkiaFontDescriptor; |
11 class CFPF_SkiaFontMgr; | 12 class CFPF_SkiaFontMgr; |
12 class SkTypeface; | 13 class SkTypeface; |
13 class CFPF_SkiaFont : public IFPF_Font | 14 class CFPF_SkiaFont : public IFPF_Font |
14 { | 15 { |
15 public: | 16 public: |
16 CFPF_SkiaFont(); | 17 CFPF_SkiaFont(); |
17 virtual ~CFPF_SkiaFont(); | 18 virtual ~CFPF_SkiaFont(); |
18 virtual void Release(); | 19 virtual void Release(); |
(...skipping 28 matching lines...) Expand all Loading... |
47 FX_BOOL InitFont(CFPF_SkiaFontMgr *pFont
Mgr, CFPF_SkiaFontDescriptor *pFontDes, FX_BSTR bsFamily, FX_DWORD dwStyle, FX_B
YTE uCharset); | 48 FX_BOOL InitFont(CFPF_SkiaFontMgr *pFont
Mgr, CFPF_SkiaFontDescriptor *pFontDes, FX_BSTR bsFamily, FX_DWORD dwStyle, FX_B
YTE uCharset); |
48 protected: | 49 protected: |
49 CFPF_SkiaFontMgr *m_pFontMgr; | 50 CFPF_SkiaFontMgr *m_pFontMgr; |
50 CFPF_SkiaFontDescriptor *m_pFontDes; | 51 CFPF_SkiaFontDescriptor *m_pFontDes; |
51 FXFT_Face m_Face; | 52 FXFT_Face m_Face; |
52 FX_DWORD m_dwStyle; | 53 FX_DWORD m_dwStyle; |
53 FX_BYTE m_uCharset; | 54 FX_BYTE m_uCharset; |
54 FX_DWORD m_dwRefCount; | 55 FX_DWORD m_dwRefCount; |
55 }; | 56 }; |
56 #endif | 57 #endif |
57 #endif | 58 |
| 59 #endif // CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ |
OLD | NEW |