Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Side by Side Diff: xfa/src/fxfa/app/xfa_fontmgr.cpp

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/src/fxfa/app/xfa_fontmgr.h ('k') | xfa/src/fxfa/app/xfa_fwladapter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 #include "xfa/src/fxfa/app/xfa_fontmgr.h"
8
9 #include <algorithm>
10
11 #include "core/include/fpdfapi/cpdf_dictionary.h"
12 #include "core/include/fpdfapi/cpdf_document.h"
13 #include "core/include/fpdfapi/fpdf_resource.h"
14 #include "xfa/src/fxfa/app/xfa_ffapp.h"
15 #include "xfa/src/fxfa/app/xfa_ffdoc.h"
16
17 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
18 static const XFA_FONTINFO g_XFAFontsMap[] = {
19 {0x01d5d33e, L"SimSun", L"Arial", 0, 936},
20 {0x01e4f102, L"YouYuan", L"Arial", 1, 936},
21 {0x030549dc, L"LiSu", L"Arial", 1, 936},
22 {0x032edd44, L"Simhei", L"Arial", 1, 936},
23 {0x03eac6fc, L"PoorRichard-Regular", L"Arial", 2, 1252},
24 {0x03ed90e6, L"Nina", L"Arial", 0, 1252},
25 {0x077b56b3, L"KingsoftPhoneticPlain", L"Arial", 0, 1252},
26 {0x078ed524, L"MicrosoftSansSerif", L"Arial", 0, 1252},
27 {0x089b18a9, L"Arial", L"Arial", 0, 1252},
28 {0x0b2cad72, L"MonotypeCorsiva", L"Arial", 8, 1252},
29 {0x0bb003e7, L"Kartika", L"Arial", 2, 1252},
30 {0x0bb469df, L"VinerHandITC", L"Arial", 8, 1252},
31 {0x0bc1a851, L"SegoeUI", L"Arial", 0, 1252},
32 {0x0c112ebd, L"KozukaGothicPro-VIM", L"Arial", 0, 1252},
33 {0x0cfcb9c1, L"AdobeThai", L"Kokila,Arial Narrow", 0, 847},
34 {0x0e7de0f9, L"Playbill", L"Arial", 0, 1252},
35 {0x0eff47c3, L"STHupo", L"Arial", 0, 936},
36 {0x107ad374, L"Constantia", L"Arial", 2, 1252},
37 {0x12194c2d, L"KunstlerScript", L"Arial", 8, 1252},
38 {0x135ef6a1, L"MinionProSmBd",
39 L"Bell MT,Corbel,Times New Roman,Cambria,Berlin Sans FB", 0, 1252},
40 {0x158c4049, L"Garamond", L"Arial", 2, 1252},
41 {0x160ecb24, L"STZhongsong", L"Arial", 0, 936},
42 {0x161ed07e, L"MSGothic", L"Arial", 1, 1252},
43 {0x171d1ed1, L"SnapITC-Regular", L"Arial", 0, 1252},
44 {0x18d1188f, L"Cambria", L"Arial", 2, 1252},
45 {0x18eaf350, L"ArialUnicodeMS", L"Arial", 0, 936},
46 {0x1a92d115, L"MingLiU", L"Arial", 1, 1252},
47 {0x1cc217c6, L"TrebuchetMS", L"Arial", 0, 1252},
48 {0x1d649596, L"BasemicTimes", L"Arial", 0, 1252},
49 {0x1e34ee60, L"BellMT", L"Arial", 2, 1252},
50 {0x1eb36945, L"CooperBlack", L"Arial", 2, 1252},
51 {0x1ef7787d, L"BatangChe", L"Arial", 1, 1252},
52 {0x20b3bd3a, L"BrushScriptMT", L"Arial", 8, 1252},
53 {0x220877aa, L"Candara", L"Arial", 0, 1252},
54 {0x22135007, L"FreestyleScript-Regular", L"Arial", 8, 1252},
55 {0x251059c3, L"Chiller", L"Arial", 0, 1252},
56 {0x25bed6dd, L"MSReferenceSansSerif", L"Arial", 0, 1252},
57 {0x28154c81, L"Parchment-Regular", L"Arial", 8, 1252},
58 {0x29711eb9, L"STLiti", L"Arial", 0, 936},
59 {0x2b1993b4, L"Basemic", L"Arial", 0, 1252},
60 {0x2b316339, L"NiagaraSolid-Reg", L"Arial", 0, 1252},
61 {0x2c147529, L"FootlightMTLight", L"Arial", 0, 1252},
62 {0x2c198928, L"HarlowSolid", L"Arial", 0, 1252},
63 {0x2c6ac6b2, L"LucidaBright", L"Arial", 2, 1252},
64 {0x2c9f38e2, L"KozukaMinchoPro-VIR", L"Arial", 0, 1252},
65 {0x2d5a47b0, L"STCaiyun", L"Arial", 0, 936},
66 {0x2def26bf, L"BernardMT-Condensed", L"Arial", 0, 1252},
67 {0x2fd8930b, L"KozukaMinchoPr6NR", L"Arial", 0, 1252},
68 {0x3115525a, L"FangSong_GB2312", L"Arial", 0, 1252},
69 {0x31327817, L"MyriadPro",
70 L"Calibri,Corbel,Candara,Cambria Math,Franklin Gothic Medium,Arial "
71 L"Narrow,Times New Roman",
72 0, 1252},
73 {0x32244975, L"Helvetica", L"Arial", 0, 1252},
74 {0x32ac995c, L"Terminal", L"Arial", 0, 1252},
75 {0x338d648a, L"NiagaraEngraved-Reg", L"Arial", 0, 1252},
76 {0x33bb65f2, L"Sylfaen", L"Arial", 2, 1252},
77 {0x3402c30e, L"MSPMincho", L"Arial", 2, 1252},
78 {0x3412bf31, L"SimSun-PUA", L"Arial", 0, 936},
79 {0x36eb39b9, L"BerlinSansFB", L"Arial", 0, 1252},
80 {0x36f42055, L"UniversATT", L"Microsoft Sans Serif", 0, 1252},
81 {0x3864c4f6, L"HighTowerText", L"Arial", 2, 1252},
82 {0x3a257d03, L"FangSong_GB2312", L"Arial", 0, 1252},
83 {0x3cdae668, L"FreestyleScript", L"Arial", 8, 1252},
84 {0x3d55aed7, L"Jokerman", L"Arial", 0, 1252},
85 {0x3d5b4385, L"PMingLiU", L"Arial", 2, 1252},
86 {0x3d9b7669, L"EstrangeloEdessa", L"Arial", 0, 1252},
87 {0x3e532d74, L"FranklinGothicMedium", L"Arial", 0, 1252},
88 {0x3e6aa32d, L"NSimSun", L"Arial", 1, 936},
89 {0x3f6c36a8, L"Gautami", L"Arial", 0, 1252},
90 {0x3ff32662, L"Chiller-Regular", L"Arial", 0, 1252},
91 {0x409de312, L"ModernNo.20", L"Arial", 2, 1252},
92 {0x41443c5e, L"Georgia", L"Arial", 2, 1252},
93 {0x4160ade5, L"BellGothicStdBlack",
94 L"Arial,Arial Unicode MS,Book Antiqua,Dotum,Georgia", 0, 1252},
95 {0x421976c4, L"Modern-Regular", L"Arial", 2, 1252},
96 {0x422a7252, L"Stencil", L"Arial", 0, 1252},
97 {0x42c8554f, L"Fixedsys", L"Arial", 0, 1252},
98 {0x435cb41d, L"Roman", L"Arial", 0, 1252},
99 {0x47882383, L"CourierNew", L"Arial", 1, 1252},
100 {0x480a2338, L"BerlinSansFBDemi", L"Arial", 0, 1252},
101 {0x480bf7a4, L"CourierStd", L"Courier New,Verdana", 0, 1252},
102 {0x481ad6ed, L"VladimirScript", L"Arial", 8, 1252},
103 {0x4911577a, L"YouYuan", L"Arial", 1, 936},
104 {0x4a788d72, L"STXingkai", L"Arial", 0, 936},
105 {0x4bf88566, L"SegoeCondensed", L"Arial", 0, 1252},
106 {0x4ccf51a4, L"BerlinSansFB-Reg", L"Arial", 0, 1252},
107 {0x4ea967ce, L"GulimChe", L"Arial", 1, 1252},
108 {0x4f68bd79, L"LetterGothicStd", L"Courier New,Verdana", 0, 1252},
109 {0x51a0d0e6, L"KozukaGothicPr6NM", L"Arial", 0, 1252},
110 {0x531b3dea, L"BasemicSymbol", L"Arial", 0, 1252},
111 {0x5333fd39, L"CalifornianFB-Reg", L"Arial", 2, 1252},
112 {0x53561a54, L"FZYTK--GBK1-0", L"Arial", 0, 936},
113 {0x55e0dde6, L"LucidaSansTypewriter", L"Arial", 0, 1252},
114 {0x574d4d3d, L"AdobeArabic", L"Arial Narrow", 0, 1252},
115 {0x5792e759, L"STKaiti", L"Arial", 0, 936},
116 {0x5921978e, L"LucidaSansUnicode", L"Arial", 0, 1252},
117 {0x594e2da4, L"Vrinda", L"Arial", 0, 1252},
118 {0x59baa9a2, L"KaiTi_GB2312", L"Arial", 0, 1252},
119 {0x5cfedf4f, L"BaskOldFace", L"Arial", 0, 1252},
120 {0x5f97921c, L"AdobeMyungjoStdM",
121 L"Batang,Bookman Old Style,Consolas,STZhongsong", 0, 936},
122 {0x5fefbfad, L"Batang", L"Arial", 2, 1252},
123 {0x605342b9, L"DotumChe", L"Arial", 1, 1252},
124 {0x608c5f9a, L"KaiTi_GB2312", L"Arial", 0, 936},
125 {0x61efd0d1, L"MaturaMTScriptCapitals", L"Arial", 0, 1252},
126 {0x626608a9, L"MVBoli", L"Arial", 0, 1252},
127 {0x630501a3, L"SmallFonts", L"Arial", 0, 1252},
128 {0x65d0e2a9, L"FZYTK--GBK1-0", L"Arial", 0, 936},
129 {0x669f29e1, L"FZSTK--GBK1-0", L"Arial", 0, 936},
130 {0x673a9e5f, L"Tunga", L"Arial", 0, 1252},
131 {0x691aa4ce, L"NiagaraSolid", L"Arial", 0, 1252},
132 {0x696259b7, L"Corbel", L"Arial", 0, 1252},
133 {0x696ee9be, L"STXihei", L"Arial", 0, 936},
134 {0x6c59cf69, L"Dotum", L"Arial", 0, 1252},
135 {0x707fa561, L"Gungsuh", L"Arial", 2, 1252},
136 {0x71416bb2, L"ZWAdobeF", L"Arial", 0, 1252},
137 {0x71b41801, L"Verdana", L"Arial", 0, 1252},
138 {0x73f25e4c, L"PalatinoLinotype", L"Arial", 0, 1252},
139 {0x73f4d19f, L"NiagaraEngraved", L"Arial", 0, 1252},
140 {0x74001694, L"MyriadProBlack", L"Book Antiqua,Constantia,Dotum,Georgia", 0,
141 1252},
142 {0x74b14d8f, L"Haettenschweiler", L"Arial", 0, 1252},
143 {0x74cb44ee, L"NSimSun", L"Arial", 1, 936},
144 {0x76b4d7ff, L"Shruti", L"Arial", 0, 1252},
145 {0x788b3533, L"Webdings", L"Arial", 6, 42},
146 {0x797dde99, L"MSSerif", L"Arial", 0, 1252},
147 {0x7a0f9e9e, L"MSMincho", L"Arial", 1, 1252},
148 {0x7b439caf, L"OldEnglishTextMT", L"Arial", 0, 1252},
149 {0x8213a433, L"LucidaSans-Typewriter", L"Arial", 0, 1252},
150 {0x82fec929, L"AdobeSongStdL",
151 L"Centaur,Calibri,STSong,Bell MT,Garamond,Times New Roman", 0, 936},
152 {0x83581825, L"Modern", L"Arial", 0, 1252},
153 {0x835a2823, L"Algerian", L"Arial", 0, 1252},
154 {0x83dab9f5, L"Script", L"Arial", 0, 1252},
155 {0x847b56da, L"Tahoma", L"Arial", 0, 1252},
156 {0x8a783cb2, L"SimSun-PUA", L"Arial", 0, 1252},
157 {0x8b5cac0e, L"Onyx", L"Arial", 0, 1252},
158 {0x8c6a499e, L"Gulim", L"Arial", 0, 1252},
159 {0x8e0af790, L"JuiceITC", L"Arial", 0, 1252},
160 {0x8e8d43b2, L"Centaur", L"Arial", 2, 1252},
161 {0x8ee4dcca, L"BookshelfSymbol7", L"Arial", 0, 1252},
162 {0x90794800, L"BellGothicStdLight", L"Bell MT,Calibri,Times New Roman", 0,
163 1252},
164 {0x909b516a, L"Century", L"Arial", 2, 1252},
165 {0x92ae370d, L"MSOutlook", L"Arial", 4, 42},
166 {0x93c9fbf1, L"LucidaFax", L"Arial", 2, 1252},
167 {0x9565085e, L"BookAntiqua", L"Arial", 2, 1252},
168 {0x9856d95d, L"AdobeMingStdL", L"Arial,Arial Unicode MS,Cambria,BatangChe",
169 0, 949},
170 {0x9bbadd6b, L"ColonnaMT", L"Arial", 0, 1252},
171 {0x9cbd16a4, L"ShowcardGothic-Reg", L"Arial", 0, 1252},
172 {0x9d73008e, L"MSSansSerif", L"Arial", 0, 1252},
173 {0xa0607db1, L"GungsuhChe", L"Arial", 1, 1252},
174 {0xa0bcf6a1, L"LatinWide", L"Arial", 2, 1252},
175 {0xa1429b36, L"Symbol", L"Arial", 6, 42},
176 {0xa1fa5abc, L"Wingdings2", L"Arial", 6, 42},
177 {0xa1fa5abd, L"Wingdings3", L"Arial", 6, 42},
178 {0xa427bad4, L"InformalRoman-Regular", L"Arial", 8, 1252},
179 {0xa8b92ece, L"FZSTK--GBK1-0", L"Arial", 0, 936},
180 {0xa8d83ece, L"CalifornianFB", L"Arial", 2, 1252},
181 {0xaa3e082c, L"Kingsoft-Phonetic", L"Arial", 0, 1252},
182 {0xaa6bcabe, L"HarlowSolidItalic", L"Arial", 0, 1252},
183 {0xade5337c, L"MSUIGothic", L"Arial", 0, 1252},
184 {0xb08dd941, L"WideLatin", L"Arial", 2, 1252},
185 {0xb207f05d, L"PoorRichard", L"Arial", 2, 1252},
186 {0xb3bc492f, L"JuiceITC-Regular", L"Arial", 0, 1252},
187 {0xb5545399, L"Marlett", L"Arial", 4, 42},
188 {0xb5dd1ebb, L"BritannicBold", L"Arial", 0, 1252},
189 {0xb699c1c5, L"LucidaCalligraphy-Italic", L"Arial", 0, 1252},
190 {0xb725d629, L"TimesNewRoman", L"Arial", 2, 1252},
191 {0xb7eaebeb, L"AdobeHeitiStdR", L"Batang,Century,Dotum", 0, 936},
192 {0xbd29c486, L"BerlinSansFBDemi-Bold", L"Arial", 0, 1252},
193 {0xbe8a8db4, L"BookshelfSymbolSeven", L"Arial", 0, 1252},
194 {0xc16c0118, L"AdobeHebrew", L"Bell MT,Berlin Sans FB,Calibri", 0, 1252},
195 {0xc318b0af, L"MyriadProLight", L"Calibri,STFangsong,Times New Roman", 0,
196 1252},
197 {0xc65e5659, L"CambriaMath", L"Arial", 2, 1252},
198 {0xc75c8f05, L"LucidaConsole", L"Arial", 1, 1252},
199 {0xca7c35d6, L"Calibri", L"Arial", 0, 1252},
200 {0xcb053f53, L"MicrosoftYaHei", L"Arial", 0, 936},
201 {0xcb7190f9, L"Magneto-Bold", L"Arial", 0, 1252},
202 {0xcca00cc5, L"System", L"Arial", 0, 1252},
203 {0xccad6f76, L"Jokerman-Regular", L"Arial", 0, 1252},
204 {0xccc5818c, L"EuroSign", L"Arial", 0, 1252},
205 {0xcf3d7234, L"LucidaHandwriting-Italic", L"Arial", 0, 1252},
206 {0xcf7b8fdb, L"MinionPro",
207 L"Bell MT,Corbel,Times New Roman,Cambria,Berlin Sans FB", 0, 1252},
208 {0xcfe5755f, L"Simhei", L"Arial", 1, 936},
209 {0xd011f4ee, L"MSPGothic", L"Arial", 0, 1252},
210 {0xd060e7ef, L"Vivaldi", L"Arial", 8, 1252},
211 {0xd07edec1, L"FranklinGothic-Medium", L"Arial", 0, 1252},
212 {0xd107243f, L"SimSun", L"Arial", 0, 936},
213 {0xd1881562, L"ArialNarrow", L"Arial Narrow", 0, 1252},
214 {0xd22b7dce, L"BodoniMTPosterCompressed", L"Arial", 0, 1252},
215 {0xd22bfa60, L"ComicSansMS", L"Arial", 8, 1252},
216 {0xd3bd0e35, L"Bauhaus93", L"Arial", 0, 1252},
217 {0xd429ee7a, L"STFangsong", L"Arial", 0, 936},
218 {0xd6679c12, L"BernardMTCondensed", L"Arial", 0, 1252},
219 {0xd8e8a027, L"LucidaSans", L"Arial", 0, 1252},
220 {0xd9fe7761, L"HighTowerText-Reg", L"Arial", 2, 1252},
221 {0xda7e551e, L"STSong", L"Arial", 0, 936},
222 {0xdaa6842d, L"STZhongsong", L"Arial", 0, 936},
223 {0xdaaab93f, L"STFangsong", L"Arial", 0, 936},
224 {0xdaeb0713, L"STSong", L"Arial", 0, 936},
225 {0xdafedbef, L"STCaiyun", L"Arial", 0, 936},
226 {0xdb00a3d9, L"Broadway", L"Arial", 0, 1252},
227 {0xdb1f5ad4, L"STXinwei", L"Arial", 0, 936},
228 {0xdb326e7f, L"STKaiti", L"Arial", 0, 936},
229 {0xdb69595a, L"STHupo", L"Arial", 0, 936},
230 {0xdba0082c, L"STXihei", L"Arial", 0, 936},
231 {0xdbd0ab18, L"STXingkai", L"Arial", 0, 936},
232 {0xdc1a7db1, L"STLiti", L"Arial", 0, 936},
233 {0xdc33075f, L"KristenITC-Regular", L"Arial", 8, 1252},
234 {0xdcc7009c, L"Harrington", L"Arial", 0, 1252},
235 {0xdd712466, L"ArialBlack", L"Arial", 0, 1252},
236 {0xdde87b3e, L"Impact", L"Arial", 0, 1252},
237 {0xdf69fb32, L"SnapITC", L"Arial", 0, 1252},
238 {0xdf8b25e8, L"CenturyGothic", L"Arial", 0, 1252},
239 {0xe0f705c0, L"KristenITC", L"Arial", 8, 1252},
240 {0xe1427573, L"Raavi", L"Arial", 0, 1252},
241 {0xe2cea0cb, L"Magneto", L"Arial", 0, 1252},
242 {0xe36a9e17, L"Ravie", L"Arial", 0, 1252},
243 {0xe433f8e2, L"Parchment", L"Arial", 8, 1252},
244 {0xe43dff4a, L"Wingdings", L"Arial", 4, 42},
245 {0xe4e2c405, L"MTExtra", L"Arial", 6, 42},
246 {0xe618cc35, L"InformalRoman", L"Arial", 8, 1252},
247 {0xe6c27ffc, L"Mistral", L"Arial", 8, 1252},
248 {0xe7ebf4b9, L"Courier", L"Courier New", 0, 1252},
249 {0xe8bc4a9d, L"MSReferenceSpecialty", L"Arial", 0, 1252},
250 {0xe90fb013, L"TempusSansITC", L"Arial", 0, 1252},
251 {0xec637b42, L"Consolas", L"Verdana", 1, 1252},
252 {0xed3a683b, L"STXinwei", L"Arial", 0, 936},
253 {0xef264cd1, L"LucidaHandwriting", L"Arial", 0, 1252},
254 {0xf086bca2, L"BaskervilleOldFace", L"Arial", 0, 1252},
255 {0xf1028030, L"Mangal", L"Arial", 2, 1252},
256 {0xf1da7eb9, L"ShowcardGothic", L"Arial", 0, 1252},
257 {0xf210f06a, L"ArialMT", L"Arial", 0, 1252},
258 {0xf477f16a, L"Latha", L"Arial", 0, 1252},
259 {0xf616f3dd, L"LiSu", L"Arial", 1, 936},
260 {0xfa479aa6, L"MicrosoftYaHei", L"Arial", 0, 936},
261 {0xfcd19697, L"BookmanOldStyle", L"Arial", 0, 1252},
262 {0xfe209a82, L"LucidaCalligraphy", L"Arial", 0, 1252},
263 {0xfef135f8, L"AdobeHeitiStd-Regular", L"Batang,Century,Dotum", 0, 936},
264 };
265 #elif _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_
266 static const XFA_FONTINFO g_XFAFontsMap[] = {
267 {0x01d5d33e, L"SimSun",
268 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW,AR "
269 L"PL UMing TW MBE",
270 0, 936},
271 {0x01e4f102, L"YouYuan",
272 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW,AR "
273 L"PL UMing TW MBE",
274 1, 936},
275 {0x030549dc, L"LiSu",
276 L"WenQuanYi Zen Hei,WenQuanYi Zen Hei Sharp,WenQuanYi Zen Hei "
277 L"Mono,WenQuanYi Micro Hei",
278 1, 936},
279 {0x032edd44, L"Simhei",
280 L"WenQuanYi Zen Hei,WenQuanYi Zen Hei Sharp,WenQuanYi Zen Hei "
281 L"Mono,WenQuanYi Micro Hei",
282 1, 936},
283 {0x03eac6fc, L"PoorRichard-Regular", L"Droid Sans Japanese,FreeSerif", 2,
284 1252},
285 {0x03ed90e6, L"Nina", L"FreeSerif", 0, 1252},
286 {0x077b56b3, L"KingsoftPhoneticPlain",
287 L"Tibetan Machine Uni,LKLUG,Samyak Gujarati,Droid Sans Thai,Droid Sans "
288 L"Armenian,Untitled1,utkal,Lohit Oriya",
289 0, 1252},
290 {0x078ed524, L"MicrosoftSansSerif",
291 L"Droid Sans Japanese,FreeSerif,WenQuanYi Micro Hei", 0, 1252},
292 {0x089b18a9, L"Arial",
293 L"Droid Sans Japanese,DejaVu Sans Condensed,FreeSerif,WenQuanYi Micro Hei",
294 0, 1252},
295 {0x0b2cad72, L"MonotypeCorsiva", L"Droid Sans Japanese,FreeSerif", 8, 1252},
296 {0x0bb003e7, L"Kartika",
297 L"FreeSans,Liberation Sans,Liberation Sans Narrow,Nimbus Sans "
298 L"L,Garuda,FreeSerif,WenQuanYi Micro Hei",
299 2, 1252},
300 {0x0bb469df, L"VinerHandITC",
301 L"Droid Sans Japanese,Ubuntu,Liberation Sans,Liberation Serif", 8, 1252},
302 {0x0bc1a851, L"SegoeUI", L"Droid Sans Japanese,DejaVu Sans", 0, 1252},
303 {0x0c112ebd, L"KozukaGothicPro-VIM", L"FreeSerif", 0, 1252},
304 {0x0cfcb9c1, L"AdobeThai", L"Droid Sans Japanese,Waree", 0, 847},
305 {0x0e7de0f9, L"Playbill",
306 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid "
307 L"Sans Ethiopic,Droid Sans Japanese,FreeSerif",
308 0, 1252},
309 {0x0eff47c3, L"STHupo", L"AR PL UKai HK,AR PL UMing HK,AR PL UKai CN", 0,
310 936},
311 {0x107ad374, L"Constantia",
312 L"Droid Sans Japanese,FreeSerif,WenQuanYi Micro Hei,Ubuntu", 2, 1252},
313 {0x12194c2d, L"KunstlerScript", L"Droid Sans Japanese,Liberation Serif", 8,
314 1252},
315 {0x135ef6a1, L"MinionProSmBd", L"Liberation Serif", 0, 1252},
316 {0x158c4049, L"Garamond",
317 L"Droid Sans Japanese,Liberation Serif,Ubuntu,FreeSerif", 2, 1252},
318 {0x160ecb24, L"STZhongsong",
319 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
320 L"Sharp,WenQuanYi Micro Hei",
321 0, 936},
322 {0x161ed07e, L"MSGothic",
323 L"WenQuanYi Micro Hei Mono,WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,AR PL "
324 L"UMing CN,AR PL UMing HK,AR PL UMing TW",
325 1, 1252},
326 {0x171d1ed1, L"SnapITC-Regular",
327 L"Liberation Sans Narrow,Ubuntu Condensed,Nimbus Sans L,DejaVu Sans", 0,
328 1252},
329 {0x18d1188f, L"Cambria", L"Droid Sans Japanese,FreeSerif,FreeMono", 2,
330 1252},
331 {0x18eaf350, L"ArialUnicodeMS",
332 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
333 L"Sharp,WenQuanYi Micro Hei",
334 0, 936},
335 {0x1a92d115, L"MingLiU",
336 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
337 L"Sharp,WenQuanYi Micro Hei",
338 1, 1252},
339 {0x1cc217c6, L"TrebuchetMS",
340 L"Droid Sans Japanese,Liberation Serif,FreeSerif,Ubuntu", 0, 1252},
341 {0x1d649596, L"BasemicTimes",
342 L"Liberation Serif,Times New Roman,Droid Sans Japanese,FreeSerif,Ubuntu",
343 0, 1252},
344 {0x1e34ee60, L"BellMT",
345 L"KacstQurn,Droid Sans Japanese,Ubuntu,Liberation Serif", 2, 1252},
346 {0x1eb36945, L"CooperBlack",
347 L"KacstQurn,Droid Sans Japanese,FreeMono,Liberation Mono, WenQuanYi Micro "
348 L"Hei Mono",
349 2, 1252},
350 {0x1ef7787d, L"BatangChe",
351 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing "
352 L"TW,WenQuanYi Zen Hei,WenQuanYi Micro Hei",
353 1, 1252},
354 {0x20b3bd3a, L"BrushScriptMT",
355 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,Droid Sans "
356 L"Japanese,URW Chancery L,Liberation Sans",
357 8, 1252},
358 {0x220877aa, L"Candara", L"Droid Sans Japanese,DejaVu Sans", 0, 1252},
359 {0x22135007, L"FreestyleScript-Regular",
360 L"KacstQurn,Droid Sans Japanese,Liberation Sans", 8, 1252},
361 {0x251059c3, L"Chiller",
362 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,Droid Sans "
363 L"Japanese,Liberation Sans",
364 0, 1252},
365 {0x25bed6dd, L"MSReferenceSansSerif",
366 L"DejaVu Sans Condensed,Ubuntu Condensed,Droid Sans Japanese,AR PL UKai "
367 L"HK",
368 0, 1252},
369 {0x28154c81, L"Parchment-Regular", L"Droid Sans Japanese,Liberation Sans",
370 8, 1252},
371 {0x29711eb9, L"STLiti", L"AR PL UKai HK", 0, 936},
372 {0x2b1993b4, L"Basemic",
373 L"Liberation Serif,Droid Sans Japanese,Liberation Sans", 0, 1252},
374 {0x2b316339, L"NiagaraSolid-Reg", L"Droid Sans Japanese,Liberation Sans", 0,
375 1252},
376 {0x2c147529, L"FootlightMTLight",
377 L"KacstQurn,Droid Sans Japanese,Liberation Sans", 0, 1252},
378 {0x2c198928, L"HarlowSolid",
379 L"KacstQurn,Droid Sans Japanese,Liberation Sans", 0, 1252},
380 {0x2c6ac6b2, L"LucidaBright",
381 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid "
382 L"Sans Japanese,Liberation Sans",
383 2, 1252},
384 {0x2c9f38e2, L"KozukaMinchoPro-VIR", L"DejaVu Sans", 0, 1252},
385 {0x2d5a47b0, L"STCaiyun", L"AR PL UKai HK", 0, 936},
386 {0x2def26bf, L"BernardMT-Condensed",
387 L"KacstQurn,Droid Sans Japanese,DejaVu Serif", 0, 1252},
388 {0x2fd8930b, L"KozukaMinchoPr6NR", L"DejaVu Serif", 0, 1252},
389 {0x3115525a, L"FangSong_GB2312",
390 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
391 L"Sharp,WenQuanYi Micro Hei",
392 0, 1252},
393 {0x31327817, L"MyriadPro",
394 L"Ubuntu Condensed,Droid Sans Japanese, FreeSerif", 0, 1252},
395 {0x32244975, L"Helvetica",
396 L"Ubuntu,DejaVu Sans Condensed,Liberation Sans,Liberation Sans "
397 L"Narrow,Nimbus Sans L",
398 0, 1252},
399 {0x32ac995c, L"Terminal", L"DejaVu Serif", 0, 1252},
400 {0x338d648a, L"NiagaraEngraved-Reg", L"Droid Sans Japanese,DejaVu Serif", 0,
401 1252},
402 {0x33bb65f2, L"Sylfaen", L"Droid Sans Japanese,DejaVu Sans", 2, 1252},
403 {0x3402c30e, L"MSPMincho",
404 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW", 2,
405 1252},
406 {0x3412bf31, L"SimSun-PUA",
407 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing CN,AR PL UMing HK", 0,
408 936},
409 {0x36eb39b9, L"BerlinSansFB",
410 L"Droid Sans Japanese,Liberation Serif,Ubuntu,FreeSerif", 0, 1252},
411 {0x36f42055, L"UniversATT", L"Microsoft Sans Serif", 0, 1252},
412 {0x3864c4f6, L"HighTowerText", L"Droid Sans Japanese,DejaVu Serif", 2,
413 1252},
414 {0x3a257d03, L"FangSong_GB2312",
415 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei", 0, 1252},
416 {0x3c7d1d07, L"Garamond3LTStd",
417 L"Droid Sans Japanese,Ubuntu Condensed,DejaVu Sans Condensed,Liberation "
418 L"Serif,Ubuntu,FreeSerif",
419 2, 1252},
420 {0x3cdae668, L"FreestyleScript",
421 L"KacstQurn,Droid Sans Japanese,DejaVu Sans", 8, 1252},
422 {0x3d55aed7, L"Jokerman", L"Droid Sans Japanese,DejaVu Sans", 0, 1252},
423 {0x3d5b4385, L"PMingLiU",
424 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
425 L"Sharp,WenQuanYi Micro Hei",
426 2, 1252},
427 {0x3d9b7669, L"EstrangeloEdessa", L"Droid Sans Japanese,DejaVu Sans", 0,
428 1252},
429 {0x3e532d74, L"FranklinGothicMedium", L"Droid Sans Japanese,Ubuntu", 0,
430 1252},
431 {0x3e6aa32d, L"NSimSun",
432 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
433 L"Sharp,WenQuanYi Micro Hei",
434 1, 936},
435 {0x3f6c36a8, L"Gautami",
436 L"Droid Arabic Naskh,Droid Sans Ethiopic, mry_KacstQurn,Droid Sans "
437 L"Japanese,FreeSans",
438 0, 1252},
439 {0x3ff32662, L"Chiller-Regular",
440 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,FreeSans", 0, 1252},
441 {0x409de312, L"ModernNo.20",
442 L"KacstQurn,Droid Sans Japanese,Nimbus Sans L,Nimbus Sans L,FreeSans", 2,
443 1252},
444 {0x41443c5e, L"Georgia", L"Droid Sans Japanese,FreeSans", 2, 1252},
445 {0x4160ade5, L"BellGothicStdBlack", L"FreeSans", 0, 1252},
446 {0x421976c4, L"Modern-Regular", L"FreeSans", 2, 1252},
447 {0x422a7252, L"Stencil", L"Droid Sans Japanese,FreeSans,Liberation Sans", 0,
448 1252},
449 {0x42c8554f, L"Fixedsys", L"FreeSerif", 0, 1252},
450 {0x435cb41d, L"Roman", L"FreeSerif", 0, 1252},
451 {0x47882383, L"CourierNew",
452 L"FreeMono,WenQuanYi Micro Hei Mono,AR PL UKai CN,AR PL UKai HK,AR PL "
453 L"UKai TW,AR PL UKai TW MBE,DejaVu Sans",
454 1, 1252},
455 {0x480a2338, L"BerlinSansFBDemi", L"Droid Sans Japanese,Liberation Serif",
456 0, 1252},
457 {0x480bf7a4, L"CourierStd", L"DejaVu Sans", 0, 1252},
458 {0x481ad6ed, L"VladimirScript", L"Droid Sans Japanese,DejaVu Serif", 8,
459 1252},
460 {0x4911577a, L"YouYuan",
461 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW", 1,
462 936},
463 {0x4a788d72, L"STXingkai", L"AR PL UKai HK,AR PL UMing HK,AR PL UKai CN", 0,
464 936},
465 {0x4bf88566, L"SegoeCondensed", L"FreeSerif", 0, 1252},
466 {0x4ccf51a4, L"BerlinSansFB-Reg", L"Droid Sans Japanese,Liberation Serif",
467 0, 1252},
468 {0x4ea967ce, L"GulimChe",
469 L"WenQuanYi Zen Hei Mono,AR PL UKai CN,AR PL UKai HK,AR PL UKai TW,AR PL "
470 L"UKai TW MBE",
471 1, 1252},
472 {0x4f68bd79, L"LetterGothicStd",
473 L"FreeMono,Liberation Mono,Andale Mono,WenQuanYi Micro Hei Mono", 0, 1252},
474 {0x51a0d0e6, L"KozukaGothicPr6NM", L"FreeSerif", 0, 1252},
475 {0x531b3dea, L"BasemicSymbol", L"FreeSerif", 0, 1252},
476 {0x5333fd39, L"CalifornianFB-Reg",
477 L"Droid Sans Japanese,URW Chancery L,FreeSerif", 2, 1252},
478 {0x53561a54, L"FZYTK--GBK1-0",
479 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
480 L"Sharp,WenQuanYi Micro Hei",
481 0, 936},
482 {0x55e0dde6, L"LucidaSansTypewriter",
483 L"Ubuntu Mono,DejaVu Sans Mono,Nimbus Mono L,Liberation Mono,Courier 10 "
484 L"Pitch,FreeMono",
485 0, 1252},
486 {0x574d4d3d, L"AdobeArabic", L"Droid Sans Japanese,DejaVu Sans", 0, 1252},
487 {0x5792e759, L"STKaiti", L"WenQuanYi Micro Hei Mono", 0, 936},
488 {0x5921978e, L"LucidaSansUnicode", L"Droid Sans Japanese,DejaVu Sans", 0,
489 1252},
490 {0x594e2da4, L"Vrinda",
491 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Arabic "
492 L"Naskh,mry_KacstQurn,Droid Sans Japanese,FreeSans,FreeSerif",
493 0, 1252},
494 {0x59baa9a2, L"KaiTi_GB2312",
495 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
496 L"Sharp,WenQuanYi Micro Hei",
497 0, 1252},
498 {0x5cfedf4f, L"BaskOldFace",
499 L"KacstQurn,Droid Sans Japanese,Ubuntu,Liberation Serif", 0, 1252},
500 {0x5e16ac91, L"TrajanPro",
501 L"Nimbus Sans L,AR PL UMing HK,AR PL UKai HK,AR PL UMing TW,AR PL UMing "
502 L"TW MBE,DejaVu Sans,DejaVu Serif",
503 0, 1252},
504 {0x5f388196, L"ITCLegacySansStdMedium",
505 L"Liberation Serif,FreeSerif,FreeSans,Ubuntu", 0, 1252},
506 {0x5f97921c, L"AdobeMyungjoStdM",
507 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
508 L"Sharp,WenQuanYi Micro Hei",
509 0, 936},
510 {0x5fefbfad, L"Batang",
511 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
512 L"Sharp,WenQuanYi Micro Hei",
513 2, 1252},
514 {0x605342b9, L"DotumChe",
515 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW", 1,
516 1252},
517 {0x608c5f9a, L"KaiTi_GB2312",
518 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
519 L"Sharp,WenQuanYi Micro Hei",
520 0, 936},
521 {0x61efd0d1, L"MaturaMTScriptCapitals",
522 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid "
523 L"Sans Japanese,DejaVu Serif,DejaVu Sans",
524 0, 1252},
525 {0x626608a9, L"MVBoli",
526 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid Sans "
527 L"Ethiopic,Droid Sans Japanese,DejaVu Sans",
528 0, 1252},
529 {0x630501a3, L"SmallFonts", L"DejaVu Serif", 0, 1252},
530 {0x65d0e2a9, L"FZYTK--GBK1-0",
531 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
532 L"Sharp,WenQuanYi Micro Hei",
533 0, 936},
534 {0x669f29e1, L"FZSTK--GBK1-0",
535 L"AR PL UMing CN,AR PL UKai CN, AR PL UMing HK", 0, 936},
536 {0x673a9e5f, L"Tunga",
537 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid Sans "
538 L"Japanese,DejaVu Serif",
539 0, 1252},
540 {0x691aa4ce, L"NiagaraSolid", L"Droid Sans Japanese,DejaVu Serif", 0, 1252},
541 {0x696259b7, L"Corbel", L"Droid Sans Japanese,DejaVu Sans", 0, 1252},
542 {0x696ee9be, L"STXihei", L"WenQuanYi Micro Hei Mono", 0, 936},
543 {0x6c59cf69, L"Dotum", L"WenQuanYi Zen Hei Mono", 0, 1252},
544 {0x707fa561, L"Gungsuh", L"WenQuanYi Zen Hei Mono", 2, 1252},
545 {0x71416bb2, L"ZWAdobeF",
546 L"KacstArt,KacstBookm,KacstDecorative,KacstDigital,KacstFarsi,KacstLetter,"
547 L"KacstOffice,Dingbats,FreeSerif",
548 0, 1252},
549 {0x71b41801, L"Verdana",
550 L"DejaVu Sans Condensed,Ubuntu Condensed,Droid Sans Japanese,DejaVu Sans",
551 0, 1252},
552 {0x73f25e4c, L"PalatinoLinotype", L"Droid Sans Japanese,FreeSerif", 0,
553 1252},
554 {0x73f4d19f, L"NiagaraEngraved", L"Droid Sans Japanese,FreeSerif", 0, 1252},
555 {0x74001694, L"MyriadProBlack", L"Droid Sans Japanese,AR PL UKai HK", 0,
556 1252},
557 {0x74b14d8f, L"Haettenschweiler", L"Droid Sans Japanese,DejaVu Serif", 0,
558 1252},
559 {0x74cb44ee, L"NSimSun", L"WenQuanYi Zen Hei Mono", 1, 936},
560 {0x76b4d7ff, L"Shruti",
561 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid Sans "
562 L"Japanese,FreeSans",
563 0, 1252},
564 {0x788b3533, L"Webdings", L"FreeSans", 6, 42},
565 {0x797dde99, L"MSSerif", L"FreeSans", 0, 1252},
566 {0x7a0f9e9e, L"MSMincho",
567 L"WenQuanYi Micro Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW",
568 1, 1252},
569 {0x7b439caf, L"OldEnglishTextMT",
570 L"Droid Sans Japanese,Liberation Sans,Ubuntu", 0, 1252},
571 {0x8213a433, L"LucidaSans-Typewriter",
572 L"Ubuntu Mono,Liberation Mono,DejaVu Sans Mono", 0, 1252},
573 {0x82fec929, L"AdobeSongStdL",
574 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
575 L"Sharp,WenQuanYi Micro Hei",
576 0, 936},
577 {0x83581825, L"Modern", L"FreeSans", 0, 1252},
578 {0x835a2823, L"Algerian",
579 L"KacstQurn,Droid Sans Japanese,FreeSans,Liberation Sans,Ubuntu", 0, 1252},
580 {0x83dab9f5, L"Script", L"FreeSans", 0, 1252},
581 {0x847b56da, L"Tahoma",
582 L"Droid Sans Japanese,DejaVu Sans Condensed,FreeSerif", 0, 1252},
583 {0x8a783cb2, L"SimSun-PUA",
584 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
585 L"Sharp,WenQuanYi Micro Hei",
586 0, 1252},
587 {0x8b5cac0e, L"Onyx", L"Droid Sans Japanese,Liberation Sans", 0, 1252},
588 {0x8c6a499e, L"Gulim",
589 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
590 L"Sharp,WenQuanYi Micro Hei",
591 0, 1252},
592 {0x8e0af790, L"JuiceITC", L"Droid Sans Japanese,Liberation Sans", 0, 1252},
593 {0x8e8d43b2, L"Centaur",
594 L"KacstQurn,Droid Sans Japanese,Khmer OS,Khmer OS System", 2, 1252},
595 {0x8ee4dcca, L"BookshelfSymbol7", L"Liberation Sans", 0, 1252},
596 {0x90794800, L"BellGothicStdLight", L"Liberation Sans", 0, 1252},
597 {0x909b516a, L"Century",
598 L"Droid Sans Japanese,Liberation Sans,Liberation Mono,Liberation Serif", 2,
599 1252},
600 {0x92ae370d, L"MSOutlook", L"Liberation Sans", 4, 42},
601 {0x93c9fbf1, L"LucidaFax",
602 L"KacstQurn,Droid Arabic Naskh,Droid Sans "
603 L"Ethiopic,mry_KacstQurn,Liberation Sans",
604 2, 1252},
605 {0x9565085e, L"BookAntiqua",
606 L"Droid Sans Japanese,Liberation Sans,Liberation Serif", 2, 1252},
607 {0x9856d95d, L"AdobeMingStdL", L"AR PL UMing HK", 0, 949},
608 {0x9bbadd6b, L"ColonnaMT",
609 L"KacstQurn,Droid Sans Japanese,Khmer OS,Khmer OS System", 0, 1252},
610 {0x9cbd16a4, L"ShowcardGothic-Reg",
611 L"Droid Sans Japanese,Liberation Sans,Ubuntu", 0, 1252},
612 {0x9d73008e, L"MSSansSerif", L"FreeSerif", 0, 1252},
613 {0xa0607db1, L"GungsuhChe",
614 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
615 L"Sharp,WenQuanYi Micro Hei",
616 1, 1252},
617 {0xa0bcf6a1, L"LatinWide", L"FreeSerif", 2, 1252},
618 {0xa1429b36, L"Symbol", L"FreeSerif", 6, 42},
619 {0xa1fa5abc, L"Wingdings2", L"FreeSerif", 6, 42},
620 {0xa1fa5abd, L"Wingdings3", L"FreeSerif", 6, 42},
621 {0xa427bad4, L"InformalRoman-Regular",
622 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid Sans "
623 L"Japanese,FreeSerif",
624 8, 1252},
625 {0xa8b92ece, L"FZSTK--GBK1-0", L"AR PL UMing CN", 0, 936},
626 {0xa8d83ece, L"CalifornianFB", L"Droid Sans Japanese,FreeSerif", 2, 1252},
627 {0xaa3e082c, L"Kingsoft-Phonetic",
628 L"Tibetan Machine Uni,LKLUG,Samyak Gujarati,Droid Sans "
629 L"Thai,utkal,Kedage,Mallige,AR PL UKai CN",
630 0, 1252},
631 {0xaa6bcabe, L"HarlowSolidItalic",
632 L"KacstQurn,Droid Sans Japanese,Liberation Serif", 0, 1252},
633 {0xade5337c, L"MSUIGothic",
634 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
635 L"Sharp,WenQuanYi Micro Hei",
636 0, 1252},
637 {0xb08dd941, L"WideLatin",
638 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid "
639 L"Sans Japanese,Liberation Serif",
640 2, 1252},
641 {0xb12765e0, L"ITCLegacySansStdBook",
642 L"AR PL UMing HK,AR PL UKai HK,FreeSerif,Ubuntu,FreeSans", 0, 1252},
643 {0xb207f05d, L"PoorRichard", L"Droid Sans Japanese,Liberation Serif", 2,
644 1252},
645 {0xb3bc492f, L"JuiceITC-Regular", L"Droid Sans Japanese,Liberation Serif",
646 0, 1252},
647 {0xb5545399, L"Marlett", L"Liberation Serif", 4, 42},
648 {0xb5dd1ebb, L"BritannicBold",
649 L"KacstQurn,Droid Arabic Naskh,Droid Sans "
650 L"Ethiopic,mry_KacstQurn,Liberation Serif",
651 0, 1252},
652 {0xb699c1c5, L"LucidaCalligraphy-Italic",
653 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid "
654 L"Sans Japanese,DejaVu Serif",
655 0, 1252},
656 {0xb725d629, L"TimesNewRoman", L"Droid Sans Japanese,Liberation Sans", 2,
657 1252},
658 {0xb7eaebeb, L"AdobeHeitiStdR",
659 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
660 L"Sharp,WenQuanYi Micro Hei",
661 0, 936},
662 {0xbd29c486, L"BerlinSansFBDemi-Bold", L"Droid Sans Japanese,DejaVu Serif",
663 0, 1252},
664 {0xbe8a8db4, L"BookshelfSymbolSeven", L"DejaVu Sans", 0, 1252},
665 {0xc16c0118, L"AdobeHebrew", L"Droid Sans Japanese,Ubuntu,Liberation Serif",
666 0, 1252},
667 {0xc318b0af, L"MyriadProLight",
668 L"Droid Sans Japanese,AR PL UKai HK,AR PL UMing HK,AR PL UKai CN", 0,
669 1252},
670 {0xc65e5659, L"CambriaMath", L"Droid Sans Japanese,FreeSerif,FreeMono", 2,
671 1252},
672 {0xc75c8f05, L"LucidaConsole",
673 L"Liberation Mono,DejaVu Sans Mono,FreeMono,WenQuanYi Micro Hei Mono", 1,
674 1252},
675 {0xca7c35d6, L"Calibri", L"Droid Sans Japanese,DejaVu Sans", 0, 1252},
676 {0xcb053f53, L"MicrosoftYaHei",
677 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
678 L"Sharp,WenQuanYi Micro Hei",
679 0, 936},
680 {0xcb7190f9, L"Magneto-Bold",
681 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid Sans "
682 L"Japanese,DejaVu Serif",
683 0, 1252},
684 {0xcca00cc5, L"System", L"DejaVu Sans", 0, 1252},
685 {0xccad6f76, L"Jokerman-Regular", L"Droid Sans Japanese,DejaVu Sans", 0,
686 1252},
687 {0xccc5818c, L"EuroSign", L"DejaVu Serif", 0, 1252},
688 {0xcf3d7234, L"LucidaHandwriting-Italic",
689 L"Liberation Sans Narrow,Ubuntu Condensed,Nimbus Sans L,DejaVu Serif", 0,
690 1252},
691 {0xcf7b8fdb, L"MinionPro", L"DejaVu Sans", 0, 1252},
692 {0xcfe5755f, L"Simhei",
693 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
694 L"Sharp,WenQuanYi Micro Hei",
695 1, 936},
696 {0xd011f4ee, L"MSPGothic",
697 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW", 0,
698 1252},
699 {0xd060e7ef, L"Vivaldi",
700 L"KacstQurn,Droid Sans Japanese,Liberation Sans,Ubuntu", 8, 1252},
701 {0xd07edec1, L"FranklinGothic-Medium", L"Droid Sans Japanese,Ubuntu", 0,
702 1252},
703 {0xd107243f, L"SimSun", L"WenQuanYi Zen Hei Mono", 0, 936},
704 {0xd1881562, L"ArialNarrow",
705 L"Liberation Sans Narrow,Droid Sans Japanese,FreeSerif", 0, 1252},
706 {0xd22b7dce, L"BodoniMTPosterCompressed",
707 L"Droid Sans Japanese,DejaVu Serif", 0, 1252},
708 {0xd22bfa60, L"ComicSansMS",
709 L"Droid Sans Japanese,FreeMono,Liberation Mono", 8, 1252},
710 {0xd3bd0e35, L"Bauhaus93",
711 L"KacstQurn,Droid Sans Japanese,Liberation Sans,Ubuntu", 0, 1252},
712 {0xd429ee7a, L"STFangsong", L"WenQuanYi Micro Hei Mono", 0, 936},
713 {0xd6679c12, L"BernardMTCondensed",
714 L"KacstQurn,Droid Sans Japanese,Nimbus Sans L,URW Chancery "
715 L"L,KacstOne,Liberation Sans",
716 0, 1252},
717 {0xd8e8a027, L"LucidaSans",
718 L"Liberation Sans Narrow,Nimbus Sans L,KacstQurn,Droid Arabic Naskh,Droid "
719 L"Sans Ethiopic,DejaVu Serif Condensed,Liberation Mono,Ubuntu",
720 0, 1252},
721 {0xd9fe7761, L"HighTowerText-Reg",
722 L"Droid Sans Japanese,Ubuntu,Liberation Serif", 2, 1252},
723 {0xda7e551e, L"STSong", L"WenQuanYi Micro Hei Mono", 0, 936},
724 {0xdaa6842d, L"STZhongsong",
725 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
726 L"Sharp,WenQuanYi Micro Hei",
727 0, 936},
728 {0xdaaab93f, L"STFangsong",
729 L"WenQuanYi Micro Hei Mono,WenQuanYi Zen Hei Mono,WenQuanYi Zen "
730 L"Hei,WenQuanYi Zen Hei Sharp",
731 0, 936},
732 {0xdaeb0713, L"STSong",
733 L"WenQuanYi Micro Hei Mono,WenQuanYi Zen Hei Mono,WenQuanYi Zen "
734 L"Hei,WenQuanYi Zen Hei Sharp",
735 0, 936},
736 {0xdafedbef, L"STCaiyun", L"AR PL UKai HK,AR PL UMing HK,AR PL UKai CN", 0,
737 936},
738 {0xdb00a3d9, L"Broadway",
739 L"KacstQurn,Droid Sans Japanese,DejaVu Sans,FreeMono,Liberation Mono", 0,
740 1252},
741 {0xdb1f5ad4, L"STXinwei", L"AR PL UKai HK,AR PL UMing HK,AR PL UKai CN", 0,
742 936},
743 {0xdb326e7f, L"STKaiti",
744 L"WenQuanYi Micro Hei Mono,WenQuanYi Zen Hei Mono,WenQuanYi Zen "
745 L"Hei,WenQuanYi Zen Hei Sharp",
746 0, 936},
747 {0xdb69595a, L"STHupo",
748 L"WenQuanYi Micro Hei Mono,WenQuanYi Zen Hei Mono,WenQuanYi Zen "
749 L"Hei,WenQuanYi Zen Hei Sharp",
750 0, 936},
751 {0xdba0082c, L"STXihei",
752 L" WenQuanYi Micro Hei Mono,WenQuanYi Zen Hei Mono,WenQuanYi Zen "
753 L"Hei,WenQuanYi Zen Hei Sharp",
754 0, 936},
755 {0xdbd0ab18, L"STXingkai", L"AR PL UKai HK,AR PL UMing HK,AR PL UKai CN", 0,
756 936},
757 {0xdc1a7db1, L"STLiti", L"AR PL UKai HK,AR PL UMing HK,AR PL UKai CN", 0,
758 936},
759 {0xdc33075f, L"KristenITC-Regular",
760 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,DejaVu Sans "
761 L"Condensed,Ubuntu,Liberation Sans",
762 8, 1252},
763 {0xdcc7009c, L"Harrington",
764 L"KacstQurn,Droid Sans Japanese,Liberation Serif,FreeSerif,Ubuntu", 0,
765 1252},
766 {0xdd712466, L"ArialBlack",
767 L"Droid Sans Japanese,DejaVu Sans,DejaVu Serif,FreeMono", 0, 1252},
768 {0xdde87b3e, L"Impact", L"Droid Sans Japanese,DejaVu Serif", 0, 1252},
769 {0xdf69fb32, L"SnapITC",
770 L"Liberation Sans Narrow,Ubuntu Condensed,DejaVu Sans,DejaVu "
771 L"Serif,FreeMono",
772 0, 1252},
773 {0xdf8b25e8, L"CenturyGothic",
774 L"Droid Sans Japanese,Liberation Mono,Liberation Sans,Liberation Serif", 0,
775 1252},
776 {0xe0f705c0, L"KristenITC",
777 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,DejaVu Sans "
778 L"Condensed,Ubuntu,Liberation Sans",
779 8, 1252},
780 {0xe1427573, L"Raavi",
781 L"Droid Arabic Naskh,Droid Sans "
782 L"Ethiopic,mry_KacstQurn,FreeSerif,Liberation Serif,Khmer OS",
783 0, 1252},
784 {0xe2cea0cb, L"Magneto",
785 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,DejaVu "
786 L"Serif,DejaVu Serif Condensed,DejaVu Sans",
787 0, 1252},
788 {0xe36a9e17, L"Ravie",
789 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,DejaVu "
790 L"Serif,DejaVu Sans,FreeMono",
791 0, 1252},
792 {0xe433f8e2, L"Parchment", L"Droid Sans Japanese,DejaVu Serif", 8, 1252},
793 {0xe43dff4a, L"Wingdings", L"DejaVu Serif", 4, 42},
794 {0xe4e2c405, L"MTExtra", L"DejaVu Serif", 6, 42},
795 {0xe618cc35, L"InformalRoman",
796 L"Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid Sans "
797 L"Japanese,Nimbus Sans L,DejaVu Sans Condensed,Ubuntu,Liberation Sans",
798 8, 1252},
799 {0xe6c27ffc, L"Mistral", L"Droid Sans Japanese,DejaVu Serif", 8, 1252},
800 {0xe7ebf4b9, L"Courier", L"DejaVu Sans,DejaVu Sans Condensed,FreeSerif", 0,
801 1252},
802 {0xe8bc4a9d, L"MSReferenceSpecialty", L"DejaVu Serif", 0, 1252},
803 {0xe90fb013, L"TempusSansITC",
804 L"Droid Sans Japanese,Ubuntu,Liberation Serif,FreeSerif", 0, 1252},
805 {0xec637b42, L"Consolas",
806 L"DejaVu Sans Condensed,AR PL UKai CN,AR PL UKai HK,AR PL UKai "
807 L"TW,FreeSerif,FreeSans",
808 1, 1252},
809 {0xed3a683b, L"STXinwei", L"AR PL UKai HK,AR PL UMing HK,AR PL UKai CN", 0,
810 936},
811 {0xef264cd1, L"LucidaHandwriting",
812 L"Liberation Sans Narrow,Ubuntu Condensed,Nimbus Sans "
813 L"L,KacstQurn,Liberation Mono",
814 0, 1252},
815 {0xf086bca2, L"BaskervilleOldFace",
816 L"KacstQurn,Droid Sans Japanese,Liberation Serif,Ubuntu,FreeSerif", 0,
817 1252},
818 {0xf1028030, L"Mangal",
819 L"FreeSans,TSCu_Paranar,Garuda,Liberation Sans,Liberation Sans "
820 L"Narrow,Nimbus Sans L",
821 2, 1252},
822 {0xf1da7eb9, L"ShowcardGothic",
823 L"Droid Sans Japanese,DejaVu Serif Condensed,DejaVu Sans "
824 L"Condensed,Liberation Sans,Ubuntu",
825 0, 1252},
826 {0xf210f06a, L"ArialMT",
827 L"Liberation Sans,Liberation Sans Narrow,FreeSans,Nimbus Sans L,Khmer OS "
828 L"System,Khmer OS",
829 0, 1252},
830 {0xf477f16a, L"Latha",
831 L"Liberation Sans Narrow,Nimbus Sans L,Droid Arabic "
832 L"Naskh,mry_KacstQurn,FreeSerif,Nimbus Sans L",
833 0, 1252},
834 {0xf616f3dd, L"LiSu",
835 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW,AR "
836 L"PL UMing TW MBE",
837 1, 936},
838 {0xfa479aa6, L"MicrosoftYaHei",
839 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
840 L"Sharp,WenQuanYi Micro Hei",
841 0, 936},
842 {0xfcd19697, L"BookmanOldStyle",
843 L"Droid Sans Japanese,Liberation Mono,Liberation Sans,Liberation Serif", 0,
844 1252},
845 {0xfe209a82, L"LucidaCalligraphy",
846 L"KacstQurn,Droid Arabic Naskh,Droid Sans Ethiopic,mry_KacstQurn,Droid "
847 L"Sans Japanese,DejaVu Serif,DejaVu Sans,FreeMono",
848 0, 1252},
849 {0xfef135f8, L"AdobeHeitiStd-Regular",
850 L"WenQuanYi Zen Hei Mono,WenQuanYi Zen Hei,WenQuanYi Zen Hei "
851 L"Sharp,WenQuanYi Micro Hei",
852 0, 936},
853 };
854 #elif _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
855 static const XFA_FONTINFO g_XFAFontsMap[] = {
856 {0x01d5d33e, L"SimSun", L"STHeiti,Heiti TC,STFangsong", 0, 936},
857 {0x01e4f102, L"YouYuan", L"STHeiti,Heiti TC,STFangsong", 1, 936},
858 {0x030549dc, L"LiSu", L"STHeiti,Heiti TC,STFangsong", 1, 936},
859 {0x032edd44, L"Simhei", L"STHeiti,Heiti TC,STFangsong", 1, 936},
860 {0x03eac6fc, L"PoorRichard-Regular",
861 L"Noteworthy,Avenir Next Condensed,Impact", 2, 1252},
862 {0x03ed90e6, L"Nina", L"Microsoft Sans Serif", 0, 1252},
863 {0x077b56b3, L"KingsoftPhoneticPlain",
864 L"LastResort,Apple "
865 L"Chancery,STIXVariants,STIXSizeOneSym,STIXSizeOneSym,Apple Braille",
866 0, 1252},
867 {0x078ed524, L"MicrosoftSansSerif", L"Songti SC,Apple Symbols", 0, 1252},
868 {0x089b18a9, L"Arial",
869 L"Arial Unicode MS,Microsoft Sans Serif,Apple Symbols", 0, 1252},
870 {0x0b2cad72, L"MonotypeCorsiva", L"Arial Narrow,Impact", 8, 1252},
871 {0x0bb003e7, L"Kartika",
872 L"Arial Unicode MS,Microsoft Sans Serif,Arial Narrow,Damascus", 2, 1252},
873 {0x0bb469df, L"VinerHandITC", L"Comic Sans MS,Songti SC,STSong", 8, 1252},
874 {0x0bc1a851, L"SegoeUI", L"Apple Symbols", 0, 1252},
875 {0x0c112ebd, L"KozukaGothicPro-VIM", L"Microsoft Sans Serif,Apple Symbols",
876 0, 1252},
877 {0x0cfcb9c1, L"AdobeThai", L"Avenir Next Condensed Ultra Light", 0, 847},
878 {0x0e7de0f9, L"Playbill", L"STIXNonUnicode", 0, 1252},
879 {0x0eff47c3, L"STHupo", L"Kaiti SC,Songti SC,STHeiti", 0, 936},
880 {0x107ad374, L"Constantia", L"Arial Unicode MS,Palatino,Baskerville", 2,
881 1252},
882 {0x12194c2d, L"KunstlerScript",
883 L"Avenir Next Condensed Demi Bold,Arial Narrow", 8, 1252},
884 {0x135ef6a1, L"MinionProSmBd", L"Microsoft Sans Serif,Apple Symbols", 0,
885 1252},
886 {0x158c4049, L"Garamond", L"Impact,Arial Narrow", 2, 1252},
887 {0x160ecb24, L"STZhongsong", L"STFangsong,Songti SC", 0, 936},
888 {0x161ed07e, L"MSGothic",
889 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing "
890 L"TW,Microsoft Sans Serif,Apple Symbols",
891 1, 1252},
892 {0x171d1ed1, L"SnapITC-Regular", L"STHeiti,Arial Black", 0, 1252},
893 {0x18d1188f, L"Cambria", L"Arial Unicode MS", 2, 1252},
894 {0x18eaf350, L"ArialUnicodeMS", L"Microsoft Sans Serif,Apple Symbols", 0,
895 936},
896 {0x1a92d115, L"MingLiU", L"Heiti SC,STHeiti", 1, 1252},
897 {0x1cc217c6, L"TrebuchetMS", L"Damascus,Impact,Arial Narrow", 0, 1252},
898 {0x1d649596, L"BasemicTimes", L"Liberation Serif,Impact,Arial Narrow", 0,
899 1252},
900 {0x1e34ee60, L"BellMT",
901 L"Papyrus,STIXNonUnicode,Microsoft Sans Serif,Avenir Light", 2, 1252},
902 {0x1eb36945, L"CooperBlack",
903 L"Marion,STIXNonUnicode,Arial Rounded MT Bold,Lucida Grande", 2, 1252},
904 {0x1ef7787d, L"BatangChe",
905 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,,AR PL UMing HK,AR PL UMing TW,AR "
906 L"PL UMing TW MBE,Arial Unicode MS,Heiti TC",
907 1, 1252},
908 {0x20b3bd3a, L"BrushScriptMT",
909 L"STIXNonUnicode,Damascus,Arial Narrow,Avenir Next Condensed,Cochin", 8,
910 1252},
911 {0x220877aa, L"Candara", L"Cochin,Baskerville,Marion", 0, 1252},
912 {0x22135007, L"FreestyleScript-Regular",
913 L"STIXNonUnicode,Nadeem,Zapf Dingbats", 8, 1252},
914 {0x251059c3, L"Chiller",
915 L"Zapf Dingbats,Damascus,STIXNonUnicode,Papyrus,KufiStandardGK,Baghdad", 0,
916 1252},
917 {0x25bed6dd, L"MSReferenceSansSerif",
918 L"Tahoma,Apple Symbols,Apple LiGothic,Arial Unicode MS,Lucida "
919 L"Grande,Microsoft Sans Serif",
920 0, 1252},
921 {0x28154c81, L"Parchment-Regular", L"Microsoft Sans Serif,Apple Symbols", 8,
922 1252},
923 {0x29711eb9, L"STLiti", L"Kaiti SC,Songti SC", 0, 936},
924 {0x2b1993b4, L"Basemic", L"Impact,Arial Narrow", 0, 1252},
925 {0x2b316339, L"NiagaraSolid-Reg", L"Microsoft Sans Serif,Apple Symbols", 0,
926 1252},
927 {0x2c147529, L"FootlightMTLight",
928 L"STIXNonUnicode,Avenir Next Condensed Heavy,PT Sans,Noteworthy", 0, 1252},
929 {0x2c198928, L"HarlowSolid",
930 L"Avenir Medium,Avenir Next Medium,Arial Unicode MS", 0, 1252},
931 {0x2c6ac6b2, L"LucidaBright",
932 L"PT Sans Narrow,Papyrus,Damascus,STIXNonUnicode,Arial Rounded MT "
933 L"Bold,Comic Sans MS,Avenir Next",
934 2, 1252},
935 {0x2c9f38e2, L"KozukaMinchoPro-VIR", L"Microsoft Sans Serif,Apple Symbols",
936 0, 1252},
937 {0x2d5a47b0, L"STCaiyun", L"Kaiti SC,Songti SC", 0, 936},
938 {0x2def26bf, L"BernardMT-Condensed",
939 L"Impact,Avenir Next Condensed Demi Bold,American Typewriter", 0, 1252},
940 {0x2fd8930b, L"KozukaMinchoPr6NR", L"Microsoft Sans Serif,Apple Symbols", 0,
941 1252},
942 {0x3115525a, L"FangSong_GB2312", L"Hiragino Sans GB,STHeiti", 0, 1252},
943 {0x31327817, L"MyriadPro", L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
944 {0x32244975, L"Helvetica",
945 L"Arial Narrow,Arial Unicode MS,Damascus,STIXNonUnicode", 0, 1252},
946 {0x32ac995c, L"Terminal", L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
947 {0x338d648a, L"NiagaraEngraved-Reg", L"Microsoft Sans Serif,Apple Symbols",
948 0, 1252},
949 {0x33bb65f2, L"Sylfaen", L"Arial Unicode MS,Marion", 2, 1252},
950 {0x3402c30e, L"MSPMincho", L"Arial Unicode MS,Apple SD Gothic Neo", 2,
951 1252},
952 {0x3412bf31, L"SimSun-PUA", L"STHeiti,Heiti TC,STFangsong", 0, 936},
953 {0x36eb39b9, L"BerlinSansFB", L"American Typewriter,Impact", 0, 1252},
954 {0x36f42055, L"UniversATT", L"Microsoft Sans Serif", 0, 1252},
955 {0x3864c4f6, L"HighTowerText", L"STIXGeneral,.Helvetica Neue Desk UI", 2,
956 1252},
957 {0x3a257d03, L"FangSong_GB2312", L"Hiragino Sans GB,STHeiti", 0, 1252},
958 {0x3cdae668, L"FreestyleScript", L"Nadeem,Zapf Dingbats,STIXNonUnicode", 8,
959 1252},
960 {0x3d55aed7, L"Jokerman",
961 L"Papyrus,Lucida Grande,Heiti TC,American Typewriter", 0, 1252},
962 {0x3d5b4385, L"PMingLiU", L"Heiti SC,STHeiti", 2, 1252},
963 {0x3d9b7669, L"EstrangeloEdessa", L"American Typewriter,Marion", 0, 1252},
964 {0x3e532d74, L"FranklinGothicMedium", L"Impact,Arial Narrow", 0, 1252},
965 {0x3e6aa32d, L"NSimSun", L"STHeiti,STFangsong", 1, 936},
966 {0x3f6c36a8, L"Gautami",
967 L"Damascus,STIXNonUnicode,STIXGeneral,American Typewriter", 0, 1252},
968 {0x3ff32662, L"Chiller-Regular", L"Papyrus,KufiStandardGK,Baghdad", 0,
969 1252},
970 {0x409de312, L"ModernNo.20", L"Avenir Next Condensed,Impact", 2, 1252},
971 {0x41443c5e, L"Georgia", L".Helvetica Neue Desk UI,Arial Unicode MS", 2,
972 1252},
973 {0x4160ade5, L"BellGothicStdBlack", L"Microsoft Sans Serif,Apple Symbols",
974 0, 1252},
975 {0x421976c4, L"Modern-Regular", L"Impact", 2, 1252},
976 {0x422a7252, L"Stencil", L"STIXNonUnicode,Songti SC,Georgia,Baskerville", 0,
977 1252},
978 {0x42c8554f, L"Fixedsys", L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
979 {0x435cb41d, L"Roman", L"Arial Narrow", 0, 1252},
980 {0x47882383, L"CourierNew", L"PCMyungjo,Osaka,Arial Unicode MS,Songti SC",
981 1, 1252},
982 {0x480a2338, L"BerlinSansFBDemi",
983 L"STIXNonUnicode,American Typewriter,Avenir Next Condensed Heavy", 0,
984 1252},
985 {0x480bf7a4, L"CourierStd", L"Courier New", 0, 1252},
986 {0x481ad6ed, L"VladimirScript",
987 L"STIXNonUnicode,Avenir Next Condensed,Impact", 8, 1252},
988 {0x4911577a, L"YouYuan", L"STHeiti,Heiti TC", 1, 936},
989 {0x4a788d72, L"STXingkai", L"Kaiti SC,Songti SC", 0, 936},
990 {0x4bf88566, L"SegoeCondensed", L"Microsoft Sans Serif,Apple Symbols", 0,
991 1252},
992 {0x4ccf51a4, L"BerlinSansFB-Reg",
993 L"STIXNonUnicode,American Typewriter,Impact", 0, 1252},
994 {0x4ea967ce, L"GulimChe", L"Arial Unicode MS,Heiti TC,STFangsong", 1, 1252},
995 {0x4f68bd79, L"LetterGothicStd",
996 L"Courier New,Andale Mono,Ayuthaya,PCMyungjo,Osaka", 0, 1252},
997 {0x51a0d0e6, L"KozukaGothicPr6NM", L"Microsoft Sans Serif,Apple Symbols", 0,
998 1252},
999 {0x531b3dea, L"BasemicSymbol", L"Microsoft Sans Serif,Apple Symbols", 0,
1000 1252},
1001 {0x5333fd39, L"CalifornianFB-Reg",
1002 L"American Typewriter,Avenir Next Condensed,Impact", 2, 1252},
1003 {0x53561a54, L"FZYTK--GBK1-0", L"STFangsong,Songti SC,STSong", 0, 936},
1004 {0x55e0dde6, L"LucidaSansTypewriter", L"Menlo,Courier New,Andale Mono", 0,
1005 1252},
1006 {0x574d4d3d, L"AdobeArabic", L"Arial Narrow", 0, 1252},
1007 {0x5792e759, L"STKaiti", L"Songti SC,Arial Unicode MS", 0, 936},
1008 {0x5921978e, L"LucidaSansUnicode", L"Lucida Grande,Arial Unicode MS,Menlo",
1009 0, 1252},
1010 {0x594e2da4, L"Vrinda", L"Geeza Pro,Damascus,STIXGeneral,Gill Sans", 0,
1011 1252},
1012 {0x59baa9a2, L"KaiTi_GB2312", L"Hiragino Sans GB,STHeiti", 0, 1252},
1013 {0x5cfedf4f, L"BaskOldFace",
1014 L"Avenir Next Condensed Heavy,PT Sans,Avenir Next Condensed", 0, 1252},
1015 {0x5e16ac91, L"TrajanPro", L"Arial Narrow,PT Sans Narrow,Damascus", 0,
1016 1252},
1017 {0x5f97921c, L"AdobeMyungjoStdM",
1018 L"AppleMyungjo,AppleGothic,Arial Unicode MS", 0, 936},
1019 {0x5fefbfad, L"Batang", L"Arial Unicode MS,Songti SC", 2, 1252},
1020 {0x605342b9, L"DotumChe", L"Arial Unicode MS,Heiti TC", 1, 1252},
1021 {0x608c5f9a, L"KaiTi_GB2312", L"Hiragino Sans GB,STHeiti,Heiti TC", 0, 936},
1022 {0x61efd0d1, L"MaturaMTScriptCapitals",
1023 L"Kokonor,Damascus,STIXNonUnicode,STHeiti,Arial Black,Avenir Next Heavy",
1024 0, 1252},
1025 {0x626608a9, L"MVBoli",
1026 L"Apple Braille,Geeza Pro,Microsoft Sans Serif,Apple Symbols", 0, 1252},
1027 {0x630501a3, L"SmallFonts", L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
1028 {0x65d0e2a9, L"FZYTK--GBK1-0", L"STFangsong,Songti SC,STSong", 0, 936},
1029 {0x669f29e1, L"FZSTK--GBK1-0", L"STHeiti,Heiti TC", 0, 936},
1030 {0x673a9e5f, L"Tunga",
1031 L"Damascus,STIXNonUnicode,Avenir Next Condensed,Avenir Next Condensed "
1032 L"Ultra Light,Futura",
1033 0, 1252},
1034 {0x691aa4ce, L"NiagaraSolid", L"Microsoft Sans Serif,Apple Symbols", 0,
1035 1252},
1036 {0x696259b7, L"Corbel", L"Cochin,Baskerville,Marion", 0, 1252},
1037 {0x696ee9be, L"STXihei", L"STHeiti,Heiti TC,Songti SC,Arial Unicode MS", 0,
1038 936},
1039 {0x6c59cf69, L"Dotum", L"Arial Unicode MS,Songti SC", 0, 1252},
1040 {0x707fa561, L"Gungsuh", L"Arial Unicode MS,Heiti TC", 2, 1252},
1041 {0x71416bb2, L"ZWAdobeF",
1042 L"STIXSizeFourSym,STIXSizeThreeSym,STIXSizeTwoSym,STIXSizeOneSym", 0,
1043 1252},
1044 {0x71b41801, L"Verdana",
1045 L"Tahoma,Marion,Apple Symbols,.Helvetica Neue Desk UI,Lucida "
1046 L"Grande,Courier New",
1047 0, 1252},
1048 {0x73f25e4c, L"PalatinoLinotype", L"Palatino,Arial Unicode MS", 0, 1252},
1049 {0x73f4d19f, L"NiagaraEngraved", L"Microsoft Sans Serif,Apple Symbols", 0,
1050 1252},
1051 {0x74001694, L"MyriadProBlack", L"Palatino,Baskerville,Marion,Cochin", 0,
1052 1252},
1053 {0x74b14d8f, L"Haettenschweiler", L"Microsoft Sans Serif,Apple Symbols", 0,
1054 1252},
1055 {0x74cb44ee, L"NSimSun", L"STHeiti,Heiti TC,STFangsong", 1, 936},
1056 {0x76b4d7ff, L"Shruti",
1057 L"Damascus,STIXNonUnicode,Arial Unicode MS,American Typewriter", 0, 1252},
1058 {0x788b3533, L"Webdings", L"Microsoft Sans Serif,Apple Symbols", 6, 42},
1059 {0x797dde99, L"MSSerif", L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
1060 {0x7a0f9e9e, L"MSMincho",
1061 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW,AR "
1062 L"PL UMing TW MBE,Arial Unicode MS,Apple SD Gothic Neo",
1063 1, 1252},
1064 {0x7b439caf, L"OldEnglishTextMT",
1065 L"STIXNonUnicode,Arial Unicode MS,Baskerville,Avenir Next Medium", 0,
1066 1252},
1067 {0x8213a433, L"LucidaSans-Typewriter",
1068 L"Comic Sans MS,Avenir Next,Arial Rounded MT Bold", 0, 1252},
1069 {0x82fec929, L"AdobeSongStdL", L"Heiti TC,STHeiti", 0, 936},
1070 {0x83581825, L"Modern", L"Avenir Next Condensed,Impact", 0, 1252},
1071 {0x835a2823, L"Algerian",
1072 L"STIXNonUnicode,Baskerville,Avenir Next Medium,American Typewriter", 0,
1073 1252},
1074 {0x83dab9f5, L"Script", L"Arial Narrow", 0, 1252},
1075 {0x847b56da, L"Tahoma", L"Songti SC,Apple Symbols", 0, 1252},
1076 {0x8a783cb2, L"SimSun-PUA", L"STHeiti,Heiti TC,STFangsong", 0, 1252},
1077 {0x8b5cac0e, L"Onyx", L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
1078 {0x8c6a499e, L"Gulim", L"Arial Unicode MS,Songti SC", 0, 1252},
1079 {0x8e0af790, L"JuiceITC", L"Nadeem,Al Bayan", 0, 1252},
1080 {0x8e8d43b2, L"Centaur", L"Avenir Next Condensed,Noteworthy,Impact", 2,
1081 1252},
1082 {0x8ee4dcca, L"BookshelfSymbol7", L"Microsoft Sans Serif,Apple Symbols", 0,
1083 1252},
1084 {0x90794800, L"BellGothicStdLight", L"Microsoft Sans Serif,Apple Symbols",
1085 0, 1252},
1086 {0x909b516a, L"Century", L"Damascus,Andale Mono,Songti SC,Arial Unicode MS",
1087 2, 1252},
1088 {0x92ae370d, L"MSOutlook", L"Microsoft Sans Serif,Apple Symbols", 4, 42},
1089 {0x93c9fbf1, L"LucidaFax",
1090 L"PT Sans Narrow,Papyrus,Kokonor,Geeza Pro,Arial Rounded MT Bold,Lucida "
1091 L"Grande,Futura",
1092 2, 1252},
1093 {0x9565085e, L"BookAntiqua", L"Palatino,Microsoft Sans Serif,Apple Symbols",
1094 2, 1252},
1095 {0x9856d95d, L"AdobeMingStdL", L"AHiragino Sans GB,Heiti TC,STHeiti", 0,
1096 949},
1097 {0x9bbadd6b, L"ColonnaMT", L"Noteworthy,Avenir Next Condensed,Impact", 0,
1098 1252},
1099 {0x9cbd16a4, L"ShowcardGothic-Reg",
1100 L"Arial Unicode MS,Georgia,American Typewriter", 0, 1252},
1101 {0x9d73008e, L"MSSansSerif", L"Songti SC,Apple Symbols", 0, 1252},
1102 {0xa0607db1, L"GungsuhChe",
1103 L"WenQuanYi Zen Hei Mono,AR PL UMing CN,AR PL UMing HK,AR PL UMing TW,AR "
1104 L"PL UMing TW MBE,Arial Unicode MS,Heiti TC,STFangsong",
1105 1, 1252},
1106 {0xa0bcf6a1, L"LatinWide", L"Zapfino,Arial Black,STHeiti", 2, 1252},
1107 {0xa1429b36, L"Symbol", L"Microsoft Sans Serif,Apple Symbols", 6, 42},
1108 {0xa1fa5abc, L"Wingdings2", L"Microsoft Sans Serif,Apple Symbols", 6, 42},
1109 {0xa1fa5abd, L"Wingdings3", L"Microsoft Sans Serif,Apple Symbols", 6, 42},
1110 {0xa427bad4, L"InformalRoman-Regular",
1111 L"STIXNonUnicode,Arial Narrow,Avenir Next Condensed Demi Bold", 8, 1252},
1112 {0xa8b92ece, L"FZSTK--GBK1-0", L"STHeiti,Heiti TC,STFangsong", 0, 936},
1113 {0xa8d83ece, L"CalifornianFB",
1114 L"American Typewriter,Avenir Next Condensed,Impact", 2, 1252},
1115 {0xaa3e082c, L"Kingsoft-Phonetic",
1116 L"STIXVariants,STIXSizeOneSym,Apple Braille", 0, 1252},
1117 {0xaa6bcabe, L"HarlowSolidItalic",
1118 L"STIXNonUnicode,Avenir Medium,Avenir Next Medium,Arial Unicode MS", 0,
1119 1252},
1120 {0xade5337c, L"MSUIGothic", L"Arial Unicode MS,Apple SD Gothic Neo", 0,
1121 1252},
1122 {0xb08dd941, L"WideLatin",
1123 L"Marion,Papyrus,Nanum Pen Script,Zapf Dingbats,Damascus,Zapfino,Arial "
1124 L"Black,STHeiti",
1125 2, 1252},
1126 {0xb12765e0, L"ITCLegacySansStdBook",
1127 L"LastResort,.Helvetica Neue Desk UI,Arial Unicode MS,Palatino", 0, 1252},
1128 {0xb207f05d, L"PoorRichard", L"Noteworthy,Avenir Next Condensed,Impact", 2,
1129 1252},
1130 {0xb3bc492f, L"JuiceITC-Regular", L"Nadeem,Al Bayan,STIXNonUnicode", 0,
1131 1252},
1132 {0xb5545399, L"Marlett", L"Microsoft Sans Serif,Apple Symbols", 4, 42},
1133 {0xb5dd1ebb, L"BritannicBold",
1134 L"Damascus,STIXNonUnicode,Avenir Next Condensed Heavy,PT Sans", 0, 1252},
1135 {0xb699c1c5, L"LucidaCalligraphy-Italic", L"STHeiti,Arial Black", 0, 1252},
1136 {0xb725d629, L"TimesNewRoman", L"Microsoft Sans Serif,Apple Symbols", 2,
1137 1252},
1138 {0xb7eaebeb, L"AdobeHeitiStdR", L"Heiti TC,STHeiti", 0, 936},
1139 {0xbd29c486, L"BerlinSansFBDemi-Bold",
1140 L"American Typewriter,Avenir Next Condensed Heavy", 0, 1252},
1141 {0xbe8a8db4, L"BookshelfSymbolSeven", L"Microsoft Sans Serif,Apple Symbols",
1142 0, 1252},
1143 {0xc16c0118, L"AdobeHebrew",
1144 L".Helvetica Neue Desk UI,Palatino,American Typewriter", 0, 1252},
1145 {0xc318b0af, L"MyriadProLight", L"Palatino,Baskerville,Marion", 0, 1252},
1146 {0xc65e5659, L"CambriaMath", L"Arial Unicode MS", 2, 1252},
1147 {0xc75c8f05, L"LucidaConsole", L"Courier New,Menlo,Andale Mono", 1, 1252},
1148 {0xca7c35d6, L"Calibri", L"Apple Symbols,HeadLineA", 0, 1252},
1149 {0xcb053f53, L"MicrosoftYaHei", L"Arial Unicode MS", 0, 936},
1150 {0xcb7190f9, L"Magneto-Bold", L"Lucida Grande", 0, 1252},
1151 {0xcca00cc5, L"System", L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
1152 {0xccad6f76, L"Jokerman-Regular", L"Lucida Grande", 0, 1252},
1153 {0xccc5818c, L"EuroSign", L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
1154 {0xcf3d7234, L"LucidaHandwriting-Italic",
1155 L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
1156 {0xcf7b8fdb, L"MinionPro",
1157 L"Bell MT,Corbel,Times New Roman,Cambria,Berlin Sans FB", 0, 1252},
1158 {0xcfe5755f, L"Simhei", L"STHeiti,Heiti TC,STFangsong", 1, 936},
1159 {0xd011f4ee, L"MSPGothic", L"Arial Unicode MS,Apple SD Gothic Neo", 0,
1160 1252},
1161 {0xd060e7ef, L"Vivaldi",
1162 L"STIXNonUnicode,Arial Unicode MS,Avenir Medium,Avenir Next Medium", 8,
1163 1252},
1164 {0xd07edec1, L"FranklinGothic-Medium", L"Impact,Arial Narrow", 0, 1252},
1165 {0xd107243f, L"SimSun", L"STHeiti,Heiti TC,STFangsong", 0, 936},
1166 {0xd1881562, L"ArialNarrow", L"PT Sans Narrow,Apple Symbols", 0, 1252},
1167 {0xd22b7dce, L"BodoniMTPosterCompressed",
1168 L"Microsoft Sans Serif,Apple Symbols", 0, 1252},
1169 {0xd22bfa60, L"ComicSansMS",
1170 L"Damascus,Georgia,.Helvetica Neue Desk UI,Lucida Grande,Arial Unicode MS",
1171 8, 1252},
1172 {0xd3bd0e35, L"Bauhaus93",
1173 L"STIXNonUnicode,Arial Unicode MS,Avenir Next,Avenir", 0, 1252},
1174 {0xd429ee7a, L"STFangsong", L"Songti SC,Arial Unicode MS", 0, 936},
1175 {0xd6679c12, L"BernardMTCondensed",
1176 L"Impact,Avenir Next Condensed Demi Bold", 0, 1252},
1177 {0xd8e8a027, L"LucidaSans",
1178 L"Arial Narrow,Khmer MN,Kokonor,Damascus,Microsoft Sans Serif,Apple "
1179 L"Symbols",
1180 0, 1252},
1181 {0xd9fe7761, L"HighTowerText-Reg",
1182 L"STIXGeneral,.Helvetica Neue Desk UI,Trebuchet MS", 2, 1252},
1183 {0xda7e551e, L"STSong", L"Arial Unicode MS", 0, 936},
1184 {0xdaa6842d, L"STZhongsong", L"STFangsong,Songti SC,STSong", 0, 936},
1185 {0xdaaab93f, L"STFangsong", L"Songti SC,Arial Unicode MS", 0, 936},
1186 {0xdaeb0713, L"STSong", L"Songti SC,Arial Unicode MS", 0, 936},
1187 {0xdafedbef, L"STCaiyun", L"Kaiti SC,Songti SC,STHeiti", 0, 936},
1188 {0xdb00a3d9, L"Broadway",
1189 L"Papyrus,STIXNonUnicode,Arial Black,Avenir Next Heavy,Heiti TC", 0, 1252},
1190 {0xdb1f5ad4, L"STXinwei", L"Kaiti SC,Songti SC,STHeiti", 0, 936},
1191 {0xdb326e7f, L"STKaiti", L"Songti SC,Arial Unicode MS", 0, 936},
1192 {0xdb69595a, L"STHupo", L"Kaiti SC,Songti SC,STHeiti", 0, 936},
1193 {0xdba0082c, L"STXihei", L"Songti SC,Arial Unicode MS", 0, 936},
1194 {0xdbd0ab18, L"STXingkai", L"Kaiti SC,Songti SC", 0, 936},
1195 {0xdc1a7db1, L"STLiti", L"Kaiti SC,Songti SC", 0, 936},
1196 {0xdc33075f, L"KristenITC-Regular",
1197 L"STIXNonUnicode,Damascus,Songti SC,STSong", 8, 1252},
1198 {0xdcc7009c, L"Harrington",
1199 L"STIXNonUnicode,Avenir Next Condensed Heavy,Noteworthy", 0, 1252},
1200 {0xdd712466, L"ArialBlack", L"Geeza Pro,Damascus,Songti SC,STSong", 0,
1201 1252},
1202 {0xdde87b3e, L"Impact", L"Arial Narrow,Marion", 0, 1252},
1203 {0xdf69fb32, L"SnapITC",
1204 L"Arial Narrow,PT Sans Narrow,Marion,STHeiti,Arial Black", 0, 1252},
1205 {0xdf8b25e8, L"CenturyGothic",
1206 L"Damascus,Andale Mono,Songti SC,Arial Unicode MS", 0, 1252},
1207 {0xe0f705c0, L"KristenITC", L"Songti SC,STSong", 8, 1252},
1208 {0xe1427573, L"Raavi",
1209 L"Damascus,STIXNonUnicode,Marion,Papyrus,Avenir Next Condensed "
1210 L"Heavy,American Typewriter",
1211 0, 1252},
1212 {0xe2cea0cb, L"Magneto",
1213 L"STIXNonUnicode,Damascus,Geeza Pro,Lucida Grande,Georgia,Heiti TC", 0,
1214 1252},
1215 {0xe36a9e17, L"Ravie", L"STHeiti,Arial Black", 0, 1252},
1216 {0xe433f8e2, L"Parchment", L"Microsoft Sans Serif,Apple Symbols", 8, 1252},
1217 {0xe43dff4a, L"Wingdings", L"Microsoft Sans Serif,Apple Symbols", 4, 42},
1218 {0xe4e2c405, L"MTExtra", L"Microsoft Sans Serif,Apple Symbols", 6, 42},
1219 {0xe618cc35, L"InformalRoman", L"Arial Narrow", 8, 1252},
1220 {0xe6c27ffc, L"Mistral", L"Apple Symbols", 8, 1252},
1221 {0xe7ebf4b9, L"Courier", L"Courier New", 0, 1252},
1222 {0xe8bc4a9d, L"MSReferenceSpecialty", L"Microsoft Sans Serif,Apple Symbols",
1223 0, 1252},
1224 {0xe90fb013, L"TempusSansITC",
1225 L"STIXNonUnicode,Microsoft Sans Serif,Avenir Light", 0, 1252},
1226 {0xec637b42, L"Consolas",
1227 L"AR PL UKai CN,AR PL UKai HK,AR PL UKai TW,AR PL UKai TW MBE,AR PL UMing "
1228 L"CN,AR PL UMing HK,Microsoft Sans Serif,Tahoma",
1229 1, 1252},
1230 {0xed3a683b, L"STXinwei", L"Kaiti SC,Songti SC,", 0, 936},
1231 {0xef264cd1, L"LucidaHandwriting",
1232 L"Arial Narrow,Avenir Next Condensed Demi Bold,Avenir Next "
1233 L"Condensed,Avenir Next Condensed Medium,STHeiti,Arial Black",
1234 0, 1252},
1235 {0xf086bca2, L"BaskervilleOldFace",
1236 L"STIXNonUnicode,Avenir Next Condensed Heavy,PT Sans", 0, 1252},
1237 {0xf1028030, L"Mangal",
1238 L"Arial Unicode MS,Microsoft Sans Serif,Arial Narrow,Tahoma", 2, 1252},
1239 {0xf1da7eb9, L"ShowcardGothic",
1240 L"Papyrus,Arial Unicode MS,Georgia,American Typewriter", 0, 1252},
1241 {0xf210f06a, L"ArialMT",
1242 L"Arial Unicode MS,Arial Narrow,STIXNonUnicode,Damascus,Avenir Next "
1243 L"Condensed Demi Bold,Avenir Next Condensed Medium,Avenir Next Condensed",
1244 0, 1252},
1245 {0xf477f16a, L"Latha",
1246 L"Arial Narrow,Damascus,STIXNonUnicode,American Typewriter", 0, 1252},
1247 {0xf616f3dd, L"LiSu", L"STHeiti,Heiti TC,STFangsong", 1, 936},
1248 {0xfa479aa6, L"MicrosoftYaHei", L"Arial Unicode MS", 0, 936},
1249 {0xfcd19697, L"BookmanOldStyle",
1250 L"Geeza Pro,Damascus,Andale Mono,Songti SC,Arial Unicode MS", 0, 1252},
1251 {0xfe209a82, L"LucidaCalligraphy",
1252 L"Kokonor,Damascus,STIXNonUnicode,STHeiti,Arial Black", 0, 1252},
1253 {0xfef135f8, L"AdobeHeitiStd-Regular", L"Heiti TC,STHeiti", 0, 936},
1254 };
1255 #elif _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_
1256 static const XFA_FONTINFO g_XFAFontsMap[] = {
1257 {0x01d5d33e, L"SimSun", L"Droid Sans Fallback", 0, 936},
1258 {0x01e4f102, L"YouYuan", L"Droid Sans Fallback", 1, 936},
1259 {0x030549dc, L"LiSu", L"Droid Sans Fallback", 1, 936},
1260 {0x032edd44, L"Simhei", L"Droid Sans Fallback", 1, 936},
1261 {0x03eac6fc, L"PoorRichard-Regular",
1262 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback,Droid Arabic "
1263 L"Naskh,Droid Sans Ethiopic",
1264 2, 1252},
1265 {0x03ed90e6, L"Nina",
1266 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1267 {0x077b56b3, L"KingsoftPhoneticPlain",
1268 L"Droid Sans Thai,Droid Sans Armenian,Droid Arabic Naskh,Droid Sans "
1269 L"Ethiopic,Droid Sans Fallback",
1270 0, 1252},
1271 {0x078ed524, L"MicrosoftSansSerif", L"Droid Sans Fallback", 0, 1252},
1272 {0x089b18a9, L"Arial", L"Droid Sans Fallback", 0, 1252},
1273 {0x0b2cad72, L"MonotypeCorsiva",
1274 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1275 {0x0bb003e7, L"Kartika",
1276 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1277 L"Mono",
1278 2, 1252},
1279 {0x0bb469df, L"VinerHandITC",
1280 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1281 {0x0bc1a851, L"SegoeUI", L"Droid Sans Fallback", 0, 1252},
1282 {0x0c112ebd, L"KozukaGothicPro-VIM",
1283 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1284 {0x0cfcb9c1, L"AdobeThai",
1285 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 847},
1286 {0x0e7de0f9, L"Playbill",
1287 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1288 L"Mono",
1289 0, 1252},
1290 {0x0eff47c3, L"STHupo", L"Droid Sans Fallback", 0, 936},
1291 {0x107ad374, L"Constantia",
1292 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1293 {0x12194c2d, L"KunstlerScript",
1294 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1295 {0x135ef6a1, L"MinionProSmBd",
1296 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1297 {0x158c4049, L"Garamond",
1298 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1299 {0x160ecb24, L"STZhongsong", L"Droid Sans Fallback", 0, 936},
1300 {0x161ed07e, L"MSGothic", L"Droid Sans Fallback", 1, 1252},
1301 {0x171d1ed1, L"SnapITC-Regular",
1302 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1303 {0x18d1188f, L"Cambria", L"Droid Sans Fallback", 2, 1252},
1304 {0x18eaf350, L"ArialUnicodeMS", L"Droid Sans Fallback", 0, 936},
1305 {0x1a92d115, L"MingLiU", L"Droid Sans Fallback", 1, 1252},
1306 {0x1cc217c6, L"TrebuchetMS",
1307 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1308 {0x1d649596, L"BasemicTimes",
1309 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1310 {0x1e34ee60, L"BellMT",
1311 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1312 {0x1eb36945, L"CooperBlack",
1313 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1314 {0x1ef7787d, L"BatangChe", L"Droid Sans Fallback", 1, 1252},
1315 {0x20b3bd3a, L"BrushScriptMT", L"Droid Arabic Naskh,Droid Sans Ethiopic", 8,
1316 1252},
1317 {0x220877aa, L"Candara",
1318 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1319 {0x22135007, L"FreestyleScript-Regular",
1320 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1321 {0x251059c3, L"Chiller",
1322 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif", 0, 1252},
1323 {0x25bed6dd, L"MSReferenceSansSerif", L"Droid Sans Fallback", 0, 1252},
1324 {0x28154c81, L"Parchment-Regular",
1325 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1326 {0x29711eb9, L"STLiti", L"Droid Sans Fallback", 0, 936},
1327 {0x2b1993b4, L"Basemic",
1328 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1329 {0x2b316339, L"NiagaraSolid-Reg",
1330 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1331 {0x2c147529, L"FootlightMTLight",
1332 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1333 {0x2c198928, L"HarlowSolid",
1334 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1335 {0x2c6ac6b2, L"LucidaBright",
1336 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto", 2, 1252},
1337 {0x2c9f38e2, L"KozukaMinchoPro-VIR",
1338 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1339 {0x2d5a47b0, L"STCaiyun", L"Droid Sans Fallback", 0, 936},
1340 {0x2def26bf, L"BernardMT-Condensed",
1341 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1342 {0x2fd8930b, L"KozukaMinchoPr6NR",
1343 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1344 {0x3115525a, L"FangSong_GB2312", L"Droid Sans Fallback", 0, 1252},
1345 {0x31327817, L"MyriadPro",
1346 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1347 {0x32244975, L"Helvetica",
1348 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto", 0, 1252},
1349 {0x32ac995c, L"Terminal",
1350 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1351 {0x338d648a, L"NiagaraEngraved-Reg",
1352 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1353 {0x33bb65f2, L"Sylfaen",
1354 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1355 {0x3402c30e, L"MSPMincho", L"Droid Sans Fallback", 2, 1252},
1356 {0x3412bf31, L"SimSun-PUA", L"Droid Sans Fallback", 0, 936},
1357 {0x36eb39b9, L"BerlinSansFB",
1358 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1359 {0x36f42055, L"UniversATT", L"Microsoft Sans Serif", 0, 1252},
1360 {0x3864c4f6, L"HighTowerText",
1361 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1362 {0x3a257d03, L"FangSong_GB2312", L"Droid Sans Fallback", 0, 1252},
1363 {0x3cdae668, L"FreestyleScript",
1364 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1365 {0x3d55aed7, L"Jokerman",
1366 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1367 {0x3d5b4385, L"PMingLiU", L"Droid Sans Fallback", 2, 1252},
1368 {0x3d9b7669, L"EstrangeloEdessa",
1369 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1370 {0x3e532d74, L"FranklinGothicMedium",
1371 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1372 {0x3e6aa32d, L"NSimSun", L"Droid Sans Fallback", 1, 936},
1373 {0x3f6c36a8, L"Gautami",
1374 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1375 L"Mono,Droid Sans Fallback",
1376 0, 1252},
1377 {0x3ff32662, L"Chiller-Regular",
1378 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1379 {0x409de312, L"ModernNo.20",
1380 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1381 {0x41443c5e, L"Georgia",
1382 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1383 {0x4160ade5, L"BellGothicStdBlack",
1384 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1385 {0x421976c4, L"Modern-Regular",
1386 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1387 {0x422a7252, L"Stencil",
1388 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1389 {0x42c8554f, L"Fixedsys",
1390 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1391 {0x435cb41d, L"Roman",
1392 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1393 {0x47882383, L"CourierNew", L"Droid Sans Fallback", 1, 1252},
1394 {0x480a2338, L"BerlinSansFBDemi",
1395 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1396 {0x480bf7a4, L"CourierStd", L"Droid Sans Fallback", 0, 1252},
1397 {0x481ad6ed, L"VladimirScript",
1398 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1399 {0x4911577a, L"YouYuan", L"Droid Sans Fallback", 1, 936},
1400 {0x4a788d72, L"STXingkai", L"Droid Sans Fallback", 0, 936},
1401 {0x4bf88566, L"SegoeCondensed",
1402 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1403 {0x4ccf51a4, L"BerlinSansFB-Reg",
1404 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1405 {0x4ea967ce, L"GulimChe", L"Droid Sans Fallback", 1, 1252},
1406 {0x4f68bd79, L"LetterGothicStd",
1407 L"Droid Sans Mono,Droid Arabic Naskh,Droid Sans Ethiopic,Droid Sans "
1408 L"Mono,Droid Serif,Droid Sans Fallback",
1409 0, 1252},
1410 {0x51a0d0e6, L"KozukaGothicPr6NM",
1411 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1412 {0x531b3dea, L"BasemicSymbol",
1413 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1414 {0x5333fd39, L"CalifornianFB-Reg",
1415 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1416 {0x53561a54, L"FZYTK--GBK1-0", L"Droid Sans Fallback", 0, 936},
1417 {0x55e0dde6, L"LucidaSansTypewriter",
1418 L"Droid Sans Mono,Droid Arabic Naskh,Droid Sans Ethiopic", 0, 1252},
1419 {0x574d4d3d, L"AdobeArabic",
1420 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1421 {0x5792e759, L"STKaiti", L"Droid Sans Fallback", 0, 936},
1422 {0x5921978e, L"LucidaSansUnicode", L"Droid Sans Fallback", 0, 1252},
1423 {0x594e2da4, L"Vrinda",
1424 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1425 L"Mono",
1426 0, 1252},
1427 {0x59baa9a2, L"KaiTi_GB2312", L"Droid Sans Fallback", 0, 1252},
1428 {0x5cfedf4f, L"BaskOldFace",
1429 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1430 {0x5f97921c, L"AdobeMyungjoStdM", L"Droid Sans Fallback", 0, 936},
1431 {0x5fefbfad, L"Batang", L"Droid Sans Fallback", 2, 1252},
1432 {0x605342b9, L"DotumChe", L"Droid Sans Fallback", 1, 1252},
1433 {0x608c5f9a, L"KaiTi_GB2312", L"Droid Sans Fallback", 0, 936},
1434 {0x61efd0d1, L"MaturaMTScriptCapitals",
1435 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1436 L"Mono",
1437 0, 1252},
1438 {0x626608a9, L"MVBoli",
1439 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1440 L"Mono",
1441 0, 1252},
1442 {0x630501a3, L"SmallFonts",
1443 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1444 {0x65d0e2a9, L"FZYTK--GBK1-0", L"Droid Sans Fallback", 0, 936},
1445 {0x669f29e1, L"FZSTK--GBK1-0", L"Droid Sans Fallback", 0, 936},
1446 {0x673a9e5f, L"Tunga",
1447 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1448 L"Mono,Droid Sans Fallback",
1449 0, 1252},
1450 {0x691aa4ce, L"NiagaraSolid",
1451 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1452 {0x696259b7, L"Corbel",
1453 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1454 {0x696ee9be, L"STXihei", L"Droid Sans Fallback", 0, 936},
1455 {0x6c59cf69, L"Dotum", L"Droid Sans Fallback", 0, 1252},
1456 {0x707fa561, L"Gungsuh", L"Droid Sans Fallback", 2, 1252},
1457 {0x71416bb2, L"ZWAdobeF",
1458 L"Droid Arabic Naskh,Droid Sans Armenian,Droid Sans Ethiopic,Droid Sans "
1459 L"Georgian,Droid Sans Hebrew,Droid Sans Thai",
1460 0, 1252},
1461 {0x71b41801, L"Verdana",
1462 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1463 {0x73f25e4c, L"PalatinoLinotype", L"Droid Sans Fallback", 0, 1252},
1464 {0x73f4d19f, L"NiagaraEngraved",
1465 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1466 {0x74001694, L"MyriadProBlack", L"Book Antiqua,Constantia,Dotum,Georgia", 0,
1467 1252},
1468 {0x74b14d8f, L"Haettenschweiler",
1469 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1470 {0x74cb44ee, L"NSimSun", L"Droid Sans Fallback", 1, 936},
1471 {0x76b4d7ff, L"Shruti",
1472 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1473 L"Mono",
1474 0, 1252},
1475 {0x788b3533, L"Webdings",
1476 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 6, 42},
1477 {0x797dde99, L"MSSerif",
1478 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1479 {0x7a0f9e9e, L"MSMincho", L"Droid Sans Fallback", 1, 1252},
1480 {0x7b439caf, L"OldEnglishTextMT",
1481 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1482 {0x8213a433, L"LucidaSans-Typewriter",
1483 L"Droid Sans Mono,Droid Serif,Roboto,Droid Sans Fallback", 0, 1252},
1484 {0x82fec929, L"AdobeSongStdL", L"Droid Sans Fallback", 0, 936},
1485 {0x83581825, L"Modern",
1486 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1487 {0x835a2823, L"Algerian",
1488 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1489 {0x83dab9f5, L"Script",
1490 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1491 {0x847b56da, L"Tahoma", L"Droid Sans Fallback", 0, 1252},
1492 {0x8a783cb2, L"SimSun-PUA", L"Droid Sans Fallback", 0, 1252},
1493 {0x8b5cac0e, L"Onyx",
1494 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1495 {0x8c6a499e, L"Gulim", L"Droid Sans Fallback", 0, 1252},
1496 {0x8e0af790, L"JuiceITC",
1497 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1498 {0x8e8d43b2, L"Centaur",
1499 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1500 {0x8ee4dcca, L"BookshelfSymbol7",
1501 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1502 {0x90794800, L"BellGothicStdLight",
1503 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1504 {0x909b516a, L"Century",
1505 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1506 {0x92ae370d, L"MSOutlook",
1507 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 4, 42},
1508 {0x93c9fbf1, L"LucidaFax",
1509 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1510 L"Mono",
1511 2, 1252},
1512 {0x9565085e, L"BookAntiqua",
1513 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1514 {0x9856d95d, L"AdobeMingStdL", L"Droid Sans Fallback", 0, 949},
1515 {0x9bbadd6b, L"ColonnaMT",
1516 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1517 {0x9cbd16a4, L"ShowcardGothic-Reg",
1518 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallbac", 0, 1252},
1519 {0x9d73008e, L"MSSansSerif",
1520 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1521 {0xa0607db1, L"GungsuhChe", L"Droid Sans Fallback", 1, 1252},
1522 {0xa0bcf6a1, L"LatinWide",
1523 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1524 {0xa1429b36, L"Symbol",
1525 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 6, 42},
1526 {0xa1fa5abc, L"Wingdings2",
1527 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 6, 42},
1528 {0xa1fa5abd, L"Wingdings3",
1529 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 6, 42},
1530 {0xa427bad4, L"InformalRoman-Regular",
1531 L"Droid Arabic Naskh,Droid Sans Ethiopic", 8, 1252},
1532 {0xa8b92ece, L"FZSTK--GBK1-0", L"Droid Sans Fallback", 0, 936},
1533 {0xa8d83ece, L"CalifornianFB",
1534 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1535 {0xaa3e082c, L"Kingsoft-Phonetic",
1536 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1537 {0xaa6bcabe, L"HarlowSolidItalic",
1538 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1539 {0xade5337c, L"MSUIGothic",
1540 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1541 {0xb08dd941, L"WideLatin",
1542 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1543 L"Mono",
1544 2, 1252},
1545 {0xb207f05d, L"PoorRichard",
1546 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1547 {0xb3bc492f, L"JuiceITC-Regular",
1548 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1549 {0xb5545399, L"Marlett",
1550 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 4, 42},
1551 {0xb5dd1ebb, L"BritannicBold", L"Droid Arabic Naskh,Droid Sans Ethiopic", 0,
1552 1252},
1553 {0xb699c1c5, L"LucidaCalligraphy-Italic",
1554 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1555 {0xb725d629, L"TimesNewRoman", L"Droid Sans Fallback", 2, 1252},
1556 {0xb7eaebeb, L"AdobeHeitiStdR", L"Droid Sans Fallback", 0, 936},
1557 {0xbd29c486, L"BerlinSansFBDemi-Bold",
1558 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1559 {0xbe8a8db4, L"BookshelfSymbolSeven",
1560 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1561 {0xc16c0118, L"AdobeHebrew",
1562 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback,Droid Arabic "
1563 L"Naskh,Droid Sans Ethiopic",
1564 0, 1252},
1565 {0xc318b0af, L"MyriadProLight",
1566 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1567 {0xc65e5659, L"CambriaMath", L"Droid Sans Fallback", 2, 1252},
1568 {0xc75c8f05, L"LucidaConsole",
1569 L"Droid Sans Mono,Droid Serif,Roboto,Droid Sans Fallback", 1, 1252},
1570 {0xca7c35d6, L"Calibri", L"Droid Sans Fallback", 0, 1252},
1571 {0xcb053f53, L"MicrosoftYaHei", L"Droid Sans Fallback", 0, 936},
1572 {0xcb7190f9, L"Magneto-Bold",
1573 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1574 {0xcca00cc5, L"System",
1575 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1576 {0xccad6f76, L"Jokerman-Regular",
1577 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1578 {0xccc5818c, L"EuroSign",
1579 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1580 {0xcf3d7234, L"LucidaHandwriting-Italic",
1581 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1582 {0xcf7b8fdb, L"MinionPro",
1583 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1584 {0xcfe5755f, L"Simhei", L"Droid Sans Fallback", 1, 936},
1585 {0xd011f4ee, L"MSPGothic", L"Droid Sans Fallback", 0, 1252},
1586 {0xd060e7ef, L"Vivaldi",
1587 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1588 {0xd07edec1, L"FranklinGothic-Medium",
1589 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1590 {0xd107243f, L"SimSun", L"Droid Sans Fallback", 0, 936},
1591 {0xd1881562, L"ArialNarrow",
1592 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1593 {0xd22b7dce, L"BodoniMTPosterCompressed",
1594 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1595 {0xd22bfa60, L"ComicSansMS", L"Droid Serif,Roboto,Droid Sans Fallback", 8,
1596 1252},
1597 {0xd3bd0e35, L"Bauhaus93",
1598 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1599 {0xd429ee7a, L"STFangsong", L"Droid Sans Fallback", 0, 936},
1600 {0xd6679c12, L"BernardMTCondensed",
1601 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1602 {0xd8e8a027, L"LucidaSans",
1603 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto", 0, 1252},
1604 {0xd9fe7761, L"HighTowerText-Reg",
1605 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 2, 1252},
1606 {0xda7e551e, L"STSong", L"Droid Sans Fallback", 0, 936},
1607 {0xdaa6842d, L"STZhongsong", L"Droid Sans Fallback", 0, 936},
1608 {0xdaaab93f, L"STFangsong", L"Droid Sans Fallback", 0, 936},
1609 {0xdaeb0713, L"STSong",
1610 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 936},
1611 {0xdafedbef, L"STCaiyun", L"Droid Sans Fallback", 0, 936},
1612 {0xdb00a3d9, L"Broadway",
1613 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1614 {0xdb1f5ad4, L"STXinwei", L"Droid Sans Fallback", 0, 936},
1615 {0xdb326e7f, L"STKaiti", L"Droid Sans Fallback", 0, 936},
1616 {0xdb69595a, L"STHupo", L"Droid Sans Fallback", 0, 936},
1617 {0xdba0082c, L"STXihei", L"Droid Sans Fallback", 0, 936},
1618 {0xdbd0ab18, L"STXingkai", L"Droid Sans Fallback", 0, 936},
1619 {0xdc1a7db1, L"STLiti", L"Droid Sans Fallback", 0, 936},
1620 {0xdc33075f, L"KristenITC-Regular",
1621 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto", 8, 1252},
1622 {0xdcc7009c, L"Harrington",
1623 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1624 {0xdd712466, L"ArialBlack",
1625 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1626 {0xdde87b3e, L"Impact",
1627 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1628 {0xdf69fb32, L"SnapITC",
1629 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1630 L"Mono",
1631 0, 1252},
1632 {0xdf8b25e8, L"CenturyGothic",
1633 L"Droid Serif,Roboto,Droid Serif,Droid Sans Mono", 0, 1252},
1634 {0xe0f705c0, L"KristenITC",
1635 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto", 8, 1252},
1636 {0xe1427573, L"Raavi",
1637 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1638 L"Mono",
1639 0, 1252},
1640 {0xe2cea0cb, L"Magneto",
1641 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1642 L"Mono",
1643 0, 1252},
1644 {0xe36a9e17, L"Ravie",
1645 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1646 L"Mono",
1647 0, 1252},
1648 {0xe433f8e2, L"Parchment",
1649 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1650 {0xe43dff4a, L"Wingdings",
1651 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 4, 42},
1652 {0xe4e2c405, L"MTExtra",
1653 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 6, 42},
1654 {0xe618cc35, L"InformalRoman",
1655 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif", 8, 1252},
1656 {0xe6c27ffc, L"Mistral",
1657 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 8, 1252},
1658 {0xe7ebf4b9, L"Courier", L"Droid Sans Fallback", 0, 1252},
1659 {0xe8bc4a9d, L"MSReferenceSpecialty",
1660 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1661 {0xe90fb013, L"TempusSansITC",
1662 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1663 {0xec637b42, L"Consolas", L"Droid Sans Fallback", 1, 1252},
1664 {0xed3a683b, L"STXinwei", L"Droid Sans Fallback", 0, 936},
1665 {0xef264cd1, L"LucidaHandwriting",
1666 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1667 L"Mono",
1668 0, 1252},
1669 {0xf086bca2, L"BaskervilleOldFace",
1670 L"Roboto,Droid Serif,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1671 {0xf1028030, L"Mangal",
1672 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1673 L"Mono",
1674 2, 1252},
1675 {0xf1da7eb9, L"ShowcardGothic",
1676 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallbac", 0, 1252},
1677 {0xf210f06a, L"ArialMT",
1678 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif", 0, 1252},
1679 {0xf477f16a, L"Latha",
1680 L"Droid Arabic Naskh,Droid Sans Ethiopic,Roboto,Droid Serif,Droid Sans "
1681 L"Mono",
1682 0, 1252},
1683 {0xf616f3dd, L"LiSu", L"Droid Sans Fallback", 1, 936},
1684 {0xfa479aa6, L"MicrosoftYaHei", L"Droid Sans Fallback", 0, 936},
1685 {0xfcd19697, L"BookmanOldStyle",
1686 L"Droid Serif,Roboto,Droid Sans Mono,Droid Sans Fallback", 0, 1252},
1687 {0xfe209a82, L"LucidaCalligraphy",
1688 L"Droid Arabic Naskh,Droid Sans Ethiopic,Droid Serif,Roboto,Droid Sans "
1689 L"Mono",
1690 0, 1252},
1691 {0xfef135f8, L"AdobeHeitiStd-Regular", L"Droid Sans Fallback", 0, 936},
1692 };
1693 #endif
1694 void XFA_LocalFontNameToEnglishName(const CFX_WideStringC& wsLocalName,
1695 CFX_WideString& wsEnglishName) {
1696 wsEnglishName = wsLocalName;
1697 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ || \
1698 _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || \
1699 _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || \
1700 _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_
1701 FX_DWORD dwLocalNameHash = FX_HashCode_String_GetW(
1702 wsLocalName.GetPtr(), wsLocalName.GetLength(), TRUE);
1703 int32_t iStart = 0;
1704 int32_t iEnd = sizeof(g_XFAFontsMap) / sizeof(XFA_FONTINFO) - 1;
1705 int32_t iMid = 0;
1706 do {
1707 iMid = (iStart + iEnd) / 2;
1708 FX_DWORD dwFontNameHash = g_XFAFontsMap[iMid].dwFontNameHash;
1709 if (dwFontNameHash == dwLocalNameHash) {
1710 wsEnglishName = g_XFAFontsMap[iMid].pPsName;
1711 break;
1712 } else if (dwFontNameHash < dwLocalNameHash) {
1713 iStart = iMid + 1;
1714 } else {
1715 iEnd = iMid - 1;
1716 }
1717 } while (iEnd >= iStart);
1718 #endif
1719 }
1720 const XFA_FONTINFO* XFA_GetFontINFOByFontName(
1721 const CFX_WideStringC& wsFontName) {
1722 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ || \
1723 _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || \
1724 _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || \
1725 _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_
1726 CFX_WideString wsFontNameTemp = wsFontName;
1727 wsFontNameTemp.Remove(L' ');
1728 FX_DWORD dwCurFontNameHash =
1729 FX_HashCode_String_GetW(wsFontNameTemp, wsFontNameTemp.GetLength(), TRUE);
1730 int32_t iStart = 0;
1731 int32_t iEnd = sizeof(g_XFAFontsMap) / sizeof(XFA_FONTINFO) - 1;
1732 int32_t iMid = 0;
1733 const XFA_FONTINFO* pFontInfo = NULL;
1734 do {
1735 iMid = (iStart + iEnd) / 2;
1736 FX_DWORD dwFontNameHash = g_XFAFontsMap[iMid].dwFontNameHash;
1737 if (dwFontNameHash == dwCurFontNameHash) {
1738 pFontInfo = &g_XFAFontsMap[iMid];
1739 break;
1740 } else if (dwFontNameHash < dwCurFontNameHash) {
1741 iStart = iMid + 1;
1742 } else {
1743 iEnd = iMid - 1;
1744 }
1745 } while (iEnd >= iStart);
1746 return pFontInfo;
1747 #else
1748 return NULL;
1749 #endif
1750 }
1751 // static
1752 IXFA_FontMgr* IXFA_FontMgr::CreateDefault() {
1753 return new CXFA_DefFontMgr;
1754 }
1755 // virtual
1756 IXFA_FontMgr::~IXFA_FontMgr() {}
1757 CXFA_DefFontMgr::~CXFA_DefFontMgr() {
1758 int32_t iCounts = m_CacheFonts.GetSize();
1759 for (int32_t i = 0; i < iCounts; i++) {
1760 ((IFX_Font*)m_CacheFonts[i])->Release();
1761 }
1762 m_CacheFonts.RemoveAll();
1763 }
1764
1765 IFX_Font* CXFA_DefFontMgr::GetFont(IXFA_Doc* hDoc,
1766 const CFX_WideStringC& wsFontFamily,
1767 FX_DWORD dwFontStyles,
1768 FX_WORD wCodePage) {
1769 CFX_WideString wsFontName = wsFontFamily;
1770 IFX_FontMgr* pFDEFontMgr =
1771 static_cast<CXFA_FFDoc*>(hDoc)->GetApp()->GetFDEFontMgr();
1772 IFX_Font* pFont = pFDEFontMgr->LoadFont(wsFontName, dwFontStyles, wCodePage);
1773 if (!pFont) {
1774 const XFA_FONTINFO* pCurFont = XFA_GetFontINFOByFontName(wsFontName);
1775 if (pCurFont && pCurFont->pReplaceFont) {
1776 FX_DWORD dwStyle = 0;
1777 if (dwFontStyles & FX_FONTSTYLE_Bold) {
1778 dwStyle |= FX_FONTSTYLE_Bold;
1779 }
1780 if (dwFontStyles & FX_FONTSTYLE_Italic) {
1781 dwStyle |= FX_FONTSTYLE_Italic;
1782 }
1783 const FX_WCHAR* pReplace = pCurFont->pReplaceFont;
1784 int32_t iLength = FXSYS_wcslen(pReplace);
1785 while (iLength > 0) {
1786 const FX_WCHAR* pNameText = pReplace;
1787 while (*pNameText != L',' && iLength > 0) {
1788 pNameText++;
1789 iLength--;
1790 }
1791 CFX_WideString wsReplace =
1792 CFX_WideString(pReplace, pNameText - pReplace);
1793 pFont = pFDEFontMgr->LoadFont(wsReplace, dwStyle, wCodePage);
1794 if (pFont) {
1795 break;
1796 }
1797 iLength--;
1798 pNameText++;
1799 pReplace = pNameText;
1800 }
1801 }
1802 }
1803 if (pFont) {
1804 m_CacheFonts.Add(pFont);
1805 }
1806 return pFont;
1807 }
1808
1809 IFX_Font* CXFA_DefFontMgr::GetDefaultFont(IXFA_Doc* hDoc,
1810 const CFX_WideStringC& wsFontFamily,
1811 FX_DWORD dwFontStyles,
1812 FX_WORD wCodePage) {
1813 IFX_FontMgr* pFDEFontMgr = ((CXFA_FFDoc*)hDoc)->GetApp()->GetFDEFontMgr();
1814 IFX_Font* pFont =
1815 pFDEFontMgr->LoadFont(L"Arial Narrow", dwFontStyles, wCodePage);
1816 if (!pFont)
1817 pFont =
1818 pFDEFontMgr->LoadFont((const FX_WCHAR*)NULL, dwFontStyles, wCodePage);
1819 FXSYS_assert(pFont);
1820 if (pFont) {
1821 m_CacheFonts.Add(pFont);
1822 }
1823 return pFont;
1824 }
1825 struct XFA_PDFFONTNAME {
1826 const FX_CHAR* lpPsName;
1827 const FX_CHAR* lpNormal;
1828 const FX_CHAR* lpBold;
1829 const FX_CHAR* lpItalic;
1830 const FX_CHAR* lpBoldItalic;
1831 };
1832 const XFA_PDFFONTNAME g_XFAPDFFontName[] = {
1833 {"Adobe PI Std", "AdobePIStd", "AdobePIStd", "AdobePIStd", "AdobePIStd"},
1834 {"Myriad Pro Light", "MyriadPro-Light", "MyriadPro-Semibold",
1835 "MyriadPro-LightIt", "MyriadPro-SemiboldIt"},
1836 };
1837 CXFA_PDFFontMgr::CXFA_PDFFontMgr(CXFA_FFDoc* pDoc) {
1838 m_pDoc = pDoc;
1839 }
1840 CXFA_PDFFontMgr::~CXFA_PDFFontMgr() {
1841 m_FDE2PDFFont.RemoveAll();
1842 for (const auto& pair : m_FontMap) {
1843 if (pair.second)
1844 pair.second->Release();
1845 }
1846 }
1847 IFX_Font* CXFA_PDFFontMgr::FindFont(CFX_ByteString strPsName,
1848 FX_BOOL bBold,
1849 FX_BOOL bItalic,
1850 CPDF_Font** pDstPDFFont,
1851 FX_BOOL bStrictMatch) {
1852 CPDF_Document* pDoc = m_pDoc->GetPDFDoc();
1853 if (pDoc == NULL) {
1854 return NULL;
1855 }
1856 CPDF_Dictionary* pFontSetDict =
1857 pDoc->GetRoot()->GetDictBy("AcroForm")->GetDictBy("DR");
1858 if (!pFontSetDict) {
1859 return NULL;
1860 }
1861 pFontSetDict = (CPDF_Dictionary*)pFontSetDict->GetDictBy("Font");
1862 if (!pFontSetDict) {
1863 return NULL;
1864 }
1865 strPsName.Remove(' ');
1866 IFX_FontMgr* pFDEFontMgr = m_pDoc->GetApp()->GetFDEFontMgr();
1867 for (const auto& it : *pFontSetDict) {
1868 const CFX_ByteString& key = it.first;
1869 CPDF_Object* pObj = it.second;
1870 if (!PsNameMatchDRFontName(strPsName, bBold, bItalic, key, bStrictMatch)) {
1871 continue;
1872 }
1873 CPDF_Object* pDirect = pObj->GetDirect();
1874 if (!pDirect || !pDirect->IsDictionary()) {
1875 return NULL;
1876 }
1877 CPDF_Dictionary* pFontDict = (CPDF_Dictionary*)pDirect;
1878 if (pFontDict->GetStringBy("Type") != "Font") {
1879 return NULL;
1880 }
1881 CPDF_Font* pPDFFont = pDoc->LoadFont(pFontDict);
1882 if (!pPDFFont) {
1883 return NULL;
1884 }
1885 if (!pPDFFont->IsEmbedded()) {
1886 *pDstPDFFont = pPDFFont;
1887 return NULL;
1888 }
1889 return IFX_Font::LoadFont(&pPDFFont->m_Font, pFDEFontMgr);
1890 }
1891 return NULL;
1892 }
1893 IFX_Font* CXFA_PDFFontMgr::GetFont(const CFX_WideStringC& wsFontFamily,
1894 FX_DWORD dwFontStyles,
1895 CPDF_Font** pPDFFont,
1896 FX_BOOL bStrictMatch) {
1897 FX_DWORD dwHashCode =
1898 FX_HashCode_String_GetW(wsFontFamily.GetPtr(), wsFontFamily.GetLength());
1899 CFX_ByteString strKey;
1900 strKey.Format("%u%u", dwHashCode, dwFontStyles);
1901 auto it = m_FontMap.find(strKey);
1902 if (it != m_FontMap.end())
1903 return it->second;
1904 CFX_ByteString bsPsName = CFX_ByteString::FromUnicode(wsFontFamily);
1905 FX_BOOL bBold = (dwFontStyles & FX_FONTSTYLE_Bold) == FX_FONTSTYLE_Bold;
1906 FX_BOOL bItalic = (dwFontStyles & FX_FONTSTYLE_Italic) == FX_FONTSTYLE_Italic;
1907 CFX_ByteString strFontName = PsNameToFontName(bsPsName, bBold, bItalic);
1908 IFX_Font* pFont =
1909 FindFont(strFontName, bBold, bItalic, pPDFFont, bStrictMatch);
1910 if (pFont)
1911 m_FontMap[strKey] = pFont;
1912 return pFont;
1913 }
1914 CFX_ByteString CXFA_PDFFontMgr::PsNameToFontName(
1915 const CFX_ByteString& strPsName,
1916 FX_BOOL bBold,
1917 FX_BOOL bItalic) {
1918 int32_t nCount = sizeof(g_XFAPDFFontName) / sizeof(XFA_PDFFONTNAME);
1919 for (int32_t i = 0; i < nCount; i++) {
1920 if (strPsName == g_XFAPDFFontName[i].lpPsName) {
1921 int32_t index = 1 + ((bItalic << 1) | bBold);
1922 return *(&g_XFAPDFFontName[i].lpPsName + index);
1923 }
1924 }
1925 return strPsName;
1926 }
1927 FX_BOOL CXFA_PDFFontMgr::PsNameMatchDRFontName(
1928 const CFX_ByteStringC& bsPsName,
1929 FX_BOOL bBold,
1930 FX_BOOL bItalic,
1931 const CFX_ByteString& bsDRFontName,
1932 FX_BOOL bStrictMatch) {
1933 CFX_ByteString bsDRName = bsDRFontName;
1934 bsDRName.Remove('-');
1935 int32_t iPsLen = bsPsName.GetLength();
1936 int32_t nIndex = bsDRName.Find(bsPsName);
1937 if (nIndex != -1 && !bStrictMatch) {
1938 return TRUE;
1939 }
1940 if (nIndex != 0) {
1941 return FALSE;
1942 }
1943 int32_t iDifferLength = bsDRName.GetLength() - iPsLen;
1944 if (iDifferLength > 1 || (bBold || bItalic)) {
1945 int32_t iBoldIndex = bsDRName.Find("Bold");
1946 FX_BOOL bBoldFont = iBoldIndex > 0;
1947 if (bBold ^ bBoldFont) {
1948 return FALSE;
1949 }
1950 if (bBoldFont) {
1951 iDifferLength =
1952 std::min(iDifferLength - 4, bsDRName.GetLength() - iBoldIndex - 4);
1953 }
1954 FX_BOOL bItalicFont = TRUE;
1955 if (bsDRName.Find("Italic") > 0) {
1956 iDifferLength -= 6;
1957 } else if (bsDRName.Find("It") > 0) {
1958 iDifferLength -= 2;
1959 } else if (bsDRName.Find("Oblique") > 0) {
1960 iDifferLength -= 7;
1961 } else {
1962 bItalicFont = FALSE;
1963 }
1964 if (bItalic ^ bItalicFont) {
1965 return FALSE;
1966 }
1967 if (iDifferLength > 1) {
1968 CFX_ByteString bsDRTailer = bsDRName.Right(iDifferLength);
1969 if (bsDRTailer.Equal("MT") || bsDRTailer.Equal("PSMT") ||
1970 bsDRTailer.Equal("Regular") || bsDRTailer.Equal("Reg")) {
1971 return TRUE;
1972 }
1973 if (bBoldFont || bItalicFont) {
1974 return FALSE;
1975 }
1976 FX_BOOL bMatch = FALSE;
1977 switch (bsPsName.GetAt(iPsLen - 1)) {
1978 case 'L': {
1979 if (bsDRName.Right(5).Equal("Light")) {
1980 bMatch = TRUE;
1981 }
1982 } break;
1983 case 'R': {
1984 if (bsDRName.Right(7).Equal("Regular") ||
1985 bsDRName.Right(3).Equal("Reg")) {
1986 bMatch = TRUE;
1987 }
1988 } break;
1989 case 'M': {
1990 if (bsDRName.Right(5).Equal("Medium")) {
1991 bMatch = TRUE;
1992 }
1993 } break;
1994 default:
1995 break;
1996 }
1997 return bMatch;
1998 }
1999 }
2000 return TRUE;
2001 }
2002 FX_BOOL CXFA_PDFFontMgr::GetCharWidth(IFX_Font* pFont,
2003 FX_WCHAR wUnicode,
2004 int32_t& iWidth,
2005 FX_BOOL bCharCode) {
2006 if (wUnicode != 0x20 || bCharCode) {
2007 return FALSE;
2008 }
2009 CPDF_Font* pPDFFont = (CPDF_Font*)m_FDE2PDFFont.GetValueAt(pFont);
2010 if (!pPDFFont) {
2011 return FALSE;
2012 }
2013 wUnicode = (FX_WCHAR)pPDFFont->CharCodeFromUnicode(wUnicode);
2014 iWidth = pPDFFont->GetCharWidthF(wUnicode);
2015 return TRUE;
2016 }
2017 CXFA_FontMgr::CXFA_FontMgr() : m_pDefFontMgr(NULL) {}
2018 CXFA_FontMgr::~CXFA_FontMgr() {
2019 DelAllMgrMap();
2020 }
2021 IFX_Font* CXFA_FontMgr::GetFont(IXFA_Doc* hDoc,
2022 const CFX_WideStringC& wsFontFamily,
2023 FX_DWORD dwFontStyles,
2024 FX_WORD wCodePage) {
2025 FX_DWORD dwHash = FX_HashCode_String_GetW(wsFontFamily.GetPtr(),
2026 wsFontFamily.GetLength(), FALSE);
2027 CFX_ByteString bsKey;
2028 bsKey.Format("%u%u%u", dwHash, dwFontStyles, wCodePage);
2029 auto it = m_FontMap.find(bsKey);
2030 if (it != m_FontMap.end())
2031 return it->second;
2032 CFX_WideString wsEnglishName;
2033 XFA_LocalFontNameToEnglishName(wsFontFamily, wsEnglishName);
2034 CXFA_PDFFontMgr* pMgr = (CXFA_PDFFontMgr*)m_PDFFontMgrArray.GetValueAt(hDoc);
2035 CPDF_Font* pPDFFont = NULL;
2036 IFX_Font* pFont = NULL;
2037 if (pMgr) {
2038 pFont = pMgr->GetFont(wsEnglishName, dwFontStyles, &pPDFFont);
2039 if (pFont)
2040 return pFont;
2041 }
2042 if (!pFont && m_pDefFontMgr) {
2043 pFont = m_pDefFontMgr->GetFont(hDoc, wsFontFamily, dwFontStyles, wCodePage);
2044 }
2045 if (!pFont && pMgr) {
2046 pPDFFont = NULL;
2047 pFont = pMgr->GetFont(wsEnglishName, dwFontStyles, &pPDFFont, FALSE);
2048 if (pFont)
2049 return pFont;
2050 }
2051 if (!pFont && m_pDefFontMgr) {
2052 pFont = m_pDefFontMgr->GetDefaultFont(hDoc, wsFontFamily, dwFontStyles,
2053 wCodePage);
2054 }
2055 if (pFont) {
2056 if (pPDFFont) {
2057 pMgr->m_FDE2PDFFont.SetAt(pFont, pPDFFont);
2058 pFont->SetFontProvider(pMgr);
2059 }
2060 m_FontMap[bsKey] = pFont;
2061 }
2062 return pFont;
2063 }
2064 void CXFA_FontMgr::LoadDocFonts(IXFA_Doc* hDoc) {
2065 if (!m_PDFFontMgrArray.GetValueAt(hDoc)) {
2066 m_PDFFontMgrArray.SetAt(hDoc, new CXFA_PDFFontMgr((CXFA_FFDoc*)hDoc));
2067 }
2068 }
2069 void CXFA_FontMgr::ReleaseDocFonts(IXFA_Doc* hDoc) {
2070 CXFA_PDFFontMgr* pMgr = NULL;
2071 if (m_PDFFontMgrArray.Lookup(hDoc, (void*&)pMgr)) {
2072 delete pMgr;
2073 m_PDFFontMgrArray.RemoveKey(hDoc);
2074 }
2075 }
2076 void CXFA_FontMgr::DelAllMgrMap() {
2077 FX_POSITION ps = m_PDFFontMgrArray.GetStartPosition();
2078 while (ps) {
2079 IXFA_Doc* hDoc = NULL;
2080 CXFA_PDFFontMgr* pMgr = NULL;
2081 m_PDFFontMgrArray.GetNextAssoc(ps, (void*&)hDoc, (void*&)pMgr);
2082 delete pMgr;
2083 }
2084 m_PDFFontMgrArray.RemoveAll();
2085 m_FontMap.clear();
2086 }
2087 void CXFA_FontMgr::SetDefFontMgr(IXFA_FontMgr* pFontMgr) {
2088 m_pDefFontMgr = pFontMgr;
2089 }
OLDNEW
« no previous file with comments | « xfa/src/fxfa/app/xfa_fontmgr.h ('k') | xfa/src/fxfa/app/xfa_fwladapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698