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_ |
(...skipping 21 matching lines...) Expand all Loading... |
32 { | 32 { |
33 return m_uCharset; | 33 return m_uCharset; |
34 } | 34 } |
35 | 35 |
36 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode); | 36 virtual int32_t GetGlyphIndex(FX_WCHAR wUnicode); |
37 virtual int32_t GetGlyphWidth(int32_t iGlyphIndex); | 37 virtual int32_t GetGlyphWidth(int32_t iGlyphIndex); |
38 | 38 |
39 virtual int32_t GetAscent() const; | 39 virtual int32_t GetAscent() const; |
40 virtual int32_t GetDescent() const; | 40 virtual int32_t GetDescent() const; |
41 | 41 |
42 virtual FX_BOOL» » » GetGlyphBBox(int32_t iGlyphIndex, FX_REC
T &rtBBox); | 42 virtual bool» » » GetGlyphBBox(int32_t iGlyphIndex, FX_REC
T &rtBBox); |
43 virtual FX_BOOL» » » GetBBox(FX_RECT &rtBBox); | 43 virtual bool» » » GetBBox(FX_RECT &rtBBox); |
44 | 44 |
45 virtual int32_t GetHeight() const; | 45 virtual int32_t GetHeight() const; |
46 virtual int32_t GetItalicAngle() const; | 46 virtual int32_t GetItalicAngle() const; |
47 virtual FX_DWORD GetFontData(FX_DWORD dwTable, uint8_t* pBuffer,
FX_DWORD dwSize); | 47 virtual FX_DWORD GetFontData(FX_DWORD dwTable, uint8_t* pBuffer,
FX_DWORD dwSize); |
48 FX_BOOL» » » » » InitFont(CFPF_SkiaFontMgr *pFont
Mgr, CFPF_SkiaFontDescriptor *pFontDes, const CFX_ByteStringC& bsFamily, FX_DWOR
D dwStyle, uint8_t uCharset); | 48 bool» » » » » InitFont(CFPF_SkiaFontMgr *pFont
Mgr, CFPF_SkiaFontDescriptor *pFontDes, const CFX_ByteStringC& bsFamily, FX_DWOR
D dwStyle, uint8_t uCharset); |
49 protected: | 49 protected: |
50 CFPF_SkiaFontMgr *m_pFontMgr; | 50 CFPF_SkiaFontMgr *m_pFontMgr; |
51 CFPF_SkiaFontDescriptor *m_pFontDes; | 51 CFPF_SkiaFontDescriptor *m_pFontDes; |
52 FXFT_Face m_Face; | 52 FXFT_Face m_Face; |
53 FX_DWORD m_dwStyle; | 53 FX_DWORD m_dwStyle; |
54 uint8_t m_uCharset; | 54 uint8_t m_uCharset; |
55 FX_DWORD m_dwRefCount; | 55 FX_DWORD m_dwRefCount; |
56 }; | 56 }; |
57 #endif | 57 #endif |
58 | 58 |
59 #endif // CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ | 59 #endif // CORE_SRC_FXGE_ANDROID_FPF_SKIAFONT_H_ |
OLD | NEW |