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 _FPF_SKIA_FONTMGR_H_ | 7 #ifndef CORE_SRC_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ |
8 #define _FPF_SKIA_FONTMGR_H_ | 8 #define CORE_SRC_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ |
| 9 |
9 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
10 #define FPF_SKIAFONTTYPE_Unknown 0 | 11 #define FPF_SKIAFONTTYPE_Unknown 0 |
11 #define FPF_SKIAFONTTYPE_Path 1 | 12 #define FPF_SKIAFONTTYPE_Path 1 |
12 #define FPF_SKIAFONTTYPE_File 2 | 13 #define FPF_SKIAFONTTYPE_File 2 |
13 #define FPF_SKIAFONTTYPE_Buffer 3 | 14 #define FPF_SKIAFONTTYPE_Buffer 3 |
14 class CFPF_SkiaFontDescriptor | 15 class CFPF_SkiaFontDescriptor |
15 { | 16 { |
16 public: | 17 public: |
17 CFPF_SkiaFontDescriptor() : m_pFamily(NULL), m_dwStyle(0), m_iFaceIndex(0),
m_dwCharsets(0), m_iGlyphNum(0) {} | 18 CFPF_SkiaFontDescriptor() : m_pFamily(NULL), m_dwStyle(0), m_iFaceIndex(0),
m_dwCharsets(0), m_iGlyphNum(0) {} |
18 virtual ~CFPF_SkiaFontDescriptor() | 19 virtual ~CFPF_SkiaFontDescriptor() |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void ScanPath(FX_BSTR path); | 108 void ScanPath(FX_BSTR path); |
108 void ScanFile(FX_BSTR file); | 109 void ScanFile(FX_BSTR file); |
109 void ReportFace(FXFT_Face face, CFPF_SkiaFont
Descriptor *pFontDesc); | 110 void ReportFace(FXFT_Face face, CFPF_SkiaFont
Descriptor *pFontDesc); |
110 void OutputSystemFonts(); | 111 void OutputSystemFonts(); |
111 FX_BOOL m_bLoaded; | 112 FX_BOOL m_bLoaded; |
112 CFX_PtrArray m_FontFaces; | 113 CFX_PtrArray m_FontFaces; |
113 FXFT_Library m_FTLibrary; | 114 FXFT_Library m_FTLibrary; |
114 CFX_MapPtrToPtr m_FamilyFonts; | 115 CFX_MapPtrToPtr m_FamilyFonts; |
115 }; | 116 }; |
116 #endif | 117 #endif |
117 #endif | 118 |
| 119 #endif // CORE_SRC_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ |
OLD | NEW |