OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FXGE_ANDROID_CFPF_SKIAFONT_H_ | 7 #ifndef CORE_FXGE_ANDROID_CFPF_SKIAFONT_H_ |
8 #define CORE_FXGE_ANDROID_CFPF_SKIAFONT_H_ | 8 #define CORE_FXGE_ANDROID_CFPF_SKIAFONT_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_system.h" | 10 #include "core/fxcrt/fx_system.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 CFPF_SkiaFont* Retain(); | 22 CFPF_SkiaFont* Retain(); |
23 | 23 |
24 CFX_ByteString GetFamilyName(); | 24 CFX_ByteString GetFamilyName(); |
25 CFX_ByteString GetPsName(); | 25 CFX_ByteString GetPsName(); |
26 uint32_t GetFontStyle() const { return m_dwStyle; } | 26 uint32_t GetFontStyle() const { return m_dwStyle; } |
27 uint8_t GetCharset() const { return m_uCharset; } | 27 uint8_t GetCharset() const { return m_uCharset; } |
28 int32_t GetGlyphIndex(FX_WCHAR wUnicode); | 28 int32_t GetGlyphIndex(FX_WCHAR wUnicode); |
29 int32_t GetGlyphWidth(int32_t iGlyphIndex); | 29 int32_t GetGlyphWidth(int32_t iGlyphIndex); |
30 int32_t GetAscent() const; | 30 int32_t GetAscent() const; |
31 int32_t GetDescent() const; | 31 int32_t GetDescent() const; |
32 FX_BOOL GetGlyphBBox(int32_t iGlyphIndex, FX_RECT& rtBBox); | 32 bool GetGlyphBBox(int32_t iGlyphIndex, FX_RECT& rtBBox); |
33 FX_BOOL GetBBox(FX_RECT& rtBBox); | 33 bool GetBBox(FX_RECT& rtBBox); |
34 int32_t GetHeight() const; | 34 int32_t GetHeight() const; |
35 int32_t GetItalicAngle() const; | 35 int32_t GetItalicAngle() const; |
36 uint32_t GetFontData(uint32_t dwTable, uint8_t* pBuffer, uint32_t dwSize); | 36 uint32_t GetFontData(uint32_t dwTable, uint8_t* pBuffer, uint32_t dwSize); |
37 | 37 |
38 FX_BOOL InitFont(CFPF_SkiaFontMgr* pFontMgr, | 38 bool InitFont(CFPF_SkiaFontMgr* pFontMgr, |
39 CFPF_SkiaFontDescriptor* pFontDes, | 39 CFPF_SkiaFontDescriptor* pFontDes, |
40 const CFX_ByteStringC& bsFamily, | 40 const CFX_ByteStringC& bsFamily, |
41 uint32_t dwStyle, | 41 uint32_t dwStyle, |
42 uint8_t uCharset); | 42 uint8_t uCharset); |
43 | 43 |
44 private: | 44 private: |
45 CFPF_SkiaFontMgr* m_pFontMgr; | 45 CFPF_SkiaFontMgr* m_pFontMgr; |
46 CFPF_SkiaFontDescriptor* m_pFontDes; | 46 CFPF_SkiaFontDescriptor* m_pFontDes; |
47 FXFT_Face m_Face; | 47 FXFT_Face m_Face; |
48 uint32_t m_dwStyle; | 48 uint32_t m_dwStyle; |
49 uint8_t m_uCharset; | 49 uint8_t m_uCharset; |
50 uint32_t m_dwRefCount; | 50 uint32_t m_dwRefCount; |
51 }; | 51 }; |
52 | 52 |
53 #endif // CORE_FXGE_ANDROID_CFPF_SKIAFONT_H_ | 53 #endif // CORE_FXGE_ANDROID_CFPF_SKIAFONT_H_ |
OLD | NEW |