| 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_FPF_SKIAFONT_H_ | 7 #ifndef CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ |
| 8 #define CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ | 8 #define CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ |
| 9 | 9 |
| 10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
| 11 | 11 |
| 12 #include "core/include/fxge/fpf.h" | 12 #include "core/include/fxge/fpf.h" |
| 13 | 13 |
| 14 class CFPF_SkiaFontDescriptor; | 14 class CFPF_SkiaFontDescriptor; |
| 15 class CFPF_SkiaFontMgr; | 15 class CFPF_SkiaFontMgr; |
| 16 class SkTypeface; | |
| 17 class CFPF_SkiaFont : public IFPF_Font { | 16 class CFPF_SkiaFont : public IFPF_Font { |
| 18 public: | 17 public: |
| 19 CFPF_SkiaFont(); | 18 CFPF_SkiaFont(); |
| 20 ~CFPF_SkiaFont() override; | 19 ~CFPF_SkiaFont() override; |
| 21 | 20 |
| 22 // IFPF_Font | 21 // IFPF_Font |
| 23 void Release() override; | 22 void Release() override; |
| 24 IFPF_Font* Retain() override; | 23 IFPF_Font* Retain() override; |
| 25 FPF_HFONT GetHandle() override; | 24 FPF_HFONT GetHandle() override; |
| 26 CFX_ByteString GetFamilyName() override; | 25 CFX_ByteString GetFamilyName() override; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 49 CFPF_SkiaFontMgr* m_pFontMgr; | 48 CFPF_SkiaFontMgr* m_pFontMgr; |
| 50 CFPF_SkiaFontDescriptor* m_pFontDes; | 49 CFPF_SkiaFontDescriptor* m_pFontDes; |
| 51 FXFT_Face m_Face; | 50 FXFT_Face m_Face; |
| 52 FX_DWORD m_dwStyle; | 51 FX_DWORD m_dwStyle; |
| 53 uint8_t m_uCharset; | 52 uint8_t m_uCharset; |
| 54 FX_DWORD m_dwRefCount; | 53 FX_DWORD m_dwRefCount; |
| 55 }; | 54 }; |
| 56 #endif | 55 #endif |
| 57 | 56 |
| 58 #endif // CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ | 57 #endif // CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ |
| OLD | NEW |