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