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_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ | 7 #ifndef CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ |
8 #define CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ | 8 #define CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
11 | 11 |
12 #if _FX_OS_ == _FX_ANDROID_ | 12 #if _FX_OS_ == _FX_ANDROID_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "core/include/fxge/fpf.h" | 17 #include "core/fxge/include/fpf.h" |
18 #include "core/include/fxge/fx_font.h" | 18 #include "core/fxge/include/fx_font.h" |
19 | 19 |
20 #define FPF_SKIAFONTTYPE_Unknown 0 | 20 #define FPF_SKIAFONTTYPE_Unknown 0 |
21 #define FPF_SKIAFONTTYPE_Path 1 | 21 #define FPF_SKIAFONTTYPE_Path 1 |
22 #define FPF_SKIAFONTTYPE_File 2 | 22 #define FPF_SKIAFONTTYPE_File 2 |
23 #define FPF_SKIAFONTTYPE_Buffer 3 | 23 #define FPF_SKIAFONTTYPE_Buffer 3 |
24 | 24 |
25 class CFPF_SkiaFont; | 25 class CFPF_SkiaFont; |
26 | 26 |
27 class CFPF_SkiaFontDescriptor { | 27 class CFPF_SkiaFontDescriptor { |
28 public: | 28 public: |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 FX_BOOL m_bLoaded; | 119 FX_BOOL m_bLoaded; |
120 FXFT_Library m_FTLibrary; | 120 FXFT_Library m_FTLibrary; |
121 std::vector<CFPF_SkiaFontDescriptor*> m_FontFaces; | 121 std::vector<CFPF_SkiaFontDescriptor*> m_FontFaces; |
122 std::map<uint32_t, CFPF_SkiaFont*> m_FamilyFonts; | 122 std::map<uint32_t, CFPF_SkiaFont*> m_FamilyFonts; |
123 }; | 123 }; |
124 | 124 |
125 #endif | 125 #endif |
126 | 126 |
127 #endif // CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ | 127 #endif // CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ |
OLD | NEW |