1 // Copyright 2016 The PDFium Authors 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_FXGE_ANDROID_CFPF_SKIAPATHFONT_H_ 8 #define CORE_FXGE_ANDROID_CFPF_SKIAPATHFONT_H_ 9 10 #include <stdint.h> 11 12 #include "core/fxcrt/bytestring.h" 13 14 class CFPF_SkiaPathFont { 15 public: 16 CFPF_SkiaPathFont(const ByteString& path, 17 const char* pFamily, 18 uint32_t dwStyle, 19 int32_t iFaceIndex, 20 uint32_t dwCharsets, 21 int32_t iGlyphNum); 22 ~CFPF_SkiaPathFont(); 23 path()24 const char* path() const { return m_bsPath.c_str(); } family()25 const char* family() const { return m_bsFamily.c_str(); } style()26 uint32_t style() const { return m_dwStyle; } face_index()27 int32_t face_index() const { return m_iFaceIndex; } charsets()28 uint32_t charsets() const { return m_dwCharsets; } glyph_num()29 int32_t glyph_num() const { return m_iGlyphNum; } 30 31 private: 32 const ByteString m_bsPath; 33 const ByteString m_bsFamily; 34 const uint32_t m_dwStyle; 35 const int32_t m_iFaceIndex; 36 const uint32_t m_dwCharsets; 37 const int32_t m_iGlyphNum; 38 }; 39 40 #endif // CORE_FXGE_ANDROID_CFPF_SKIAPATHFONT_H_ 41