|
1 /* |
|
2 * Copyright 2012 Google Inc. |
|
3 * |
|
4 * Use of this source code is governed by a BSD-style license that can be |
|
5 * found in the LICENSE file. |
|
6 */ |
|
7 |
|
8 #ifndef SkOTTable_OS_2_V3_DEFINED |
|
9 #define SkOTTable_OS_2_V3_DEFINED |
|
10 |
|
11 #include "SkEndian.h" |
|
12 #include "SkIBMFamilyClass.h" |
|
13 #include "SkOTTableTypes.h" |
|
14 #include "SkPanose.h" |
|
15 #include "SkTypedEnum.h" |
|
16 |
|
17 #pragma pack(push, 1) |
|
18 |
|
19 struct SkOTTableOS2_V3 { |
|
20 SK_OT_USHORT version; |
|
21 static const SK_OT_USHORT VERSION = SkTEndian_SwapBE16(3); |
|
22 |
|
23 SK_OT_SHORT xAvgCharWidth; |
|
24 struct WeightClass { |
|
25 SK_TYPED_ENUM(Value, SK_OT_USHORT, |
|
26 ((Thin, SkTEndian_SwapBE16(100))) |
|
27 ((ExtraLight, SkTEndian_SwapBE16(200))) |
|
28 ((Light, SkTEndian_SwapBE16(300))) |
|
29 ((Normal, SkTEndian_SwapBE16(400))) |
|
30 ((Medium, SkTEndian_SwapBE16(500))) |
|
31 ((SemiBold, SkTEndian_SwapBE16(600))) |
|
32 ((Bold, SkTEndian_SwapBE16(700))) |
|
33 ((ExtraBold, SkTEndian_SwapBE16(800))) |
|
34 ((Black, SkTEndian_SwapBE16(900))) |
|
35 SK_SEQ_END, |
|
36 SK_SEQ_END) |
|
37 SK_OT_USHORT value; |
|
38 } usWeightClass; |
|
39 struct WidthClass { |
|
40 SK_TYPED_ENUM(Value, SK_OT_USHORT, |
|
41 ((UltraCondensed, SkTEndian_SwapBE16(1))) |
|
42 ((ExtraCondensed, SkTEndian_SwapBE16(2))) |
|
43 ((Condensed, SkTEndian_SwapBE16(3))) |
|
44 ((SemiCondensed, SkTEndian_SwapBE16(4))) |
|
45 ((Medium, SkTEndian_SwapBE16(5))) |
|
46 ((SemiExpanded, SkTEndian_SwapBE16(6))) |
|
47 ((Expanded, SkTEndian_SwapBE16(7))) |
|
48 ((ExtraExpanded, SkTEndian_SwapBE16(8))) |
|
49 ((UltraExpanded, SkTEndian_SwapBE16(9))) |
|
50 SK_SEQ_END, |
|
51 (value)SK_SEQ_END) |
|
52 } usWidthClass; |
|
53 union Type { |
|
54 struct Field { |
|
55 //8-15 |
|
56 SK_OT_BYTE_BITFIELD( |
|
57 NoSubsetting, |
|
58 Bitmap, |
|
59 Reserved10, |
|
60 Reserved11, |
|
61 Reserved12, |
|
62 Reserved13, |
|
63 Reserved14, |
|
64 Reserved15) |
|
65 //0-7 |
|
66 SK_OT_BYTE_BITFIELD( |
|
67 Reserved00, |
|
68 Restricted, |
|
69 PreviewPrint, |
|
70 Editable, |
|
71 Reserved04, |
|
72 Reserved05, |
|
73 Reserved06, |
|
74 Reserved07) |
|
75 } field; |
|
76 struct Raw { |
|
77 static const SK_OT_USHORT Installable = 0; |
|
78 static const SK_OT_USHORT RestrictedMask = SkOTSetUSHORTBit<1>::value; |
|
79 static const SK_OT_USHORT PreviewPrintMask = SkOTSetUSHORTBit<2>::value; |
|
80 static const SK_OT_USHORT EditableMask = SkOTSetUSHORTBit<3>::value; |
|
81 static const SK_OT_USHORT NoSubsettingMask = SkOTSetUSHORTBit<8>::value; |
|
82 static const SK_OT_USHORT BitmapMask = SkOTSetUSHORTBit<9>::value; |
|
83 SK_OT_USHORT value; |
|
84 } raw; |
|
85 } fsType; |
|
86 SK_OT_SHORT ySubscriptXSize; |
|
87 SK_OT_SHORT ySubscriptYSize; |
|
88 SK_OT_SHORT ySubscriptXOffset; |
|
89 SK_OT_SHORT ySubscriptYOffset; |
|
90 SK_OT_SHORT ySuperscriptXSize; |
|
91 SK_OT_SHORT ySuperscriptYSize; |
|
92 SK_OT_SHORT ySuperscriptXOffset; |
|
93 SK_OT_SHORT ySuperscriptYOffset; |
|
94 SK_OT_SHORT yStrikeoutSize; |
|
95 SK_OT_SHORT yStrikeoutPosition; |
|
96 SkIBMFamilyClass sFamilyClass; |
|
97 SkPanose panose; |
|
98 union UnicodeRange { |
|
99 struct Field { |
|
100 //l0 24-31 |
|
101 SK_OT_BYTE_BITFIELD( |
|
102 Thai, |
|
103 Lao, |
|
104 Georgian, |
|
105 Reserved027, |
|
106 HangulJamo, |
|
107 LatinExtendedAdditional, |
|
108 GreekExtended, |
|
109 GeneralPunctuation) |
|
110 //l0 16-23 |
|
111 SK_OT_BYTE_BITFIELD( |
|
112 Bengali, |
|
113 Gurmukhi, |
|
114 Gujarati, |
|
115 Oriya, |
|
116 Tamil, |
|
117 Telugu, |
|
118 Kannada, |
|
119 Malayalam) |
|
120 //l0 8-15 |
|
121 SK_OT_BYTE_BITFIELD( |
|
122 Reserved008, |
|
123 Cyrillic, |
|
124 Armenian, |
|
125 Hebrew, |
|
126 Reserved012, |
|
127 Arabic, |
|
128 Reserved014, |
|
129 Devanagari) |
|
130 //l0 0-7 |
|
131 SK_OT_BYTE_BITFIELD( |
|
132 BasicLatin, |
|
133 Latin1Supplement, |
|
134 LatinExtendedA, |
|
135 LatinExtendedB, |
|
136 IPAExtensions, |
|
137 SpacingModifierLetters, |
|
138 CombiningDiacriticalMarks, |
|
139 GreekAndCoptic) |
|
140 |
|
141 //l1 24-31 |
|
142 SK_OT_BYTE_BITFIELD( |
|
143 Hangul, |
|
144 NonPlane0, |
|
145 Reserved058, |
|
146 CJKUnifiedIdeographs, |
|
147 PrivateUseArea, |
|
148 CJKCompatibilityIdeographs, |
|
149 AlphabeticPresentationForms, |
|
150 ArabicPresentationFormsA) |
|
151 //l1 16-23 |
|
152 SK_OT_BYTE_BITFIELD( |
|
153 CJKSymbolsAndPunctuation, |
|
154 Hiragana, |
|
155 Katakana, |
|
156 Bopomofo, |
|
157 HangulCompatibilityJamo, |
|
158 Reserved053, |
|
159 EnclosedCJKLettersAndMonths, |
|
160 CJKCompatibility) |
|
161 //l1 8-15 |
|
162 SK_OT_BYTE_BITFIELD( |
|
163 ControlPictures, |
|
164 OpticalCharacterRecognition, |
|
165 EnclosedAlphanumerics, |
|
166 BoxDrawing, |
|
167 BlockElements, |
|
168 GeometricShapes, |
|
169 MiscellaneousSymbols, |
|
170 Dingbats) |
|
171 //l1 0-7 |
|
172 SK_OT_BYTE_BITFIELD( |
|
173 SuperscriptsAndSubscripts, |
|
174 CurrencySymbols, |
|
175 CombiningDiacriticalMarksForSymbols, |
|
176 LetterlikeSymbols, |
|
177 NumberForms, |
|
178 Arrows, |
|
179 MathematicalOperators, |
|
180 MiscellaneousTechnical) |
|
181 |
|
182 //l2 24-31 |
|
183 SK_OT_BYTE_BITFIELD( |
|
184 MusicalSymbols, |
|
185 MathematicalAlphanumericSymbols, |
|
186 PrivateUse, |
|
187 VariationSelectors, |
|
188 Tags, |
|
189 Reserved093, |
|
190 Reserved094, |
|
191 Reserved095) |
|
192 //l2 16-23 |
|
193 SK_OT_BYTE_BITFIELD( |
|
194 Khmer, |
|
195 Mongolian, |
|
196 Braille, |
|
197 Yi, |
|
198 Tagalog_Hanunoo_Buhid_Tagbanwa, |
|
199 OldItalic, |
|
200 Gothic, |
|
201 Deseret) |
|
202 //l2 8-15 |
|
203 SK_OT_BYTE_BITFIELD( |
|
204 Thaana, |
|
205 Sinhala, |
|
206 Myanmar, |
|
207 Ethiopic, |
|
208 Cherokee, |
|
209 UnifiedCanadianSyllabics, |
|
210 Ogham, |
|
211 Runic) |
|
212 //l2 0-7 |
|
213 SK_OT_BYTE_BITFIELD( |
|
214 CombiningHalfMarks, |
|
215 CJKCompatibilityForms, |
|
216 SmallFormVariants, |
|
217 ArabicPresentationFormsB, |
|
218 HalfwidthAndFullwidthForms, |
|
219 Specials, |
|
220 Tibetan, |
|
221 Syriac) |
|
222 |
|
223 //l3 24-31 |
|
224 SK_OT_BYTE_BITFIELD( |
|
225 Reserved120, |
|
226 Reserved121, |
|
227 Reserved122, |
|
228 Reserved123, |
|
229 Reserved124, |
|
230 Reserved125, |
|
231 Reserved126, |
|
232 Reserved127) |
|
233 //l3 16-23 |
|
234 SK_OT_BYTE_BITFIELD( |
|
235 Reserved112, |
|
236 Reserved113, |
|
237 Reserved114, |
|
238 Reserved115, |
|
239 Reserved116, |
|
240 Reserved117, |
|
241 Reserved118, |
|
242 Reserved119) |
|
243 //l3 8-15 |
|
244 SK_OT_BYTE_BITFIELD( |
|
245 Reserved104, |
|
246 Reserved105, |
|
247 Reserved106, |
|
248 Reserved107, |
|
249 Reserved108, |
|
250 Reserved109, |
|
251 Reserved110, |
|
252 Reserved111) |
|
253 //l3 0-7 |
|
254 SK_OT_BYTE_BITFIELD( |
|
255 Reserved096, |
|
256 Reserved097, |
|
257 Reserved098, |
|
258 Reserved099, |
|
259 Reserved100, |
|
260 Reserved101, |
|
261 Reserved102, |
|
262 Reserved103) |
|
263 } field; |
|
264 struct Raw { |
|
265 struct l0 { |
|
266 static const SK_OT_ULONG BasicLatinMask = SkOTSetULONGBit<0>::value; |
|
267 static const SK_OT_ULONG Latin1SupplementMask = SkOTSetULONGBit<1>::value; |
|
268 static const SK_OT_ULONG LatinExtendedAMask = SkOTSetULONGBit<2>::value; |
|
269 static const SK_OT_ULONG LatinExtendedBMask = SkOTSetULONGBit<3>::value; |
|
270 static const SK_OT_ULONG IPAExtensionsMask = SkOTSetULONGBit<4>::value; |
|
271 static const SK_OT_ULONG SpacingModifierLettersMask = SkOTSetULONGBit<5>::value; |
|
272 static const SK_OT_ULONG CombiningDiacriticalMarksMask = SkOTSetULONGBit<6>::value; |
|
273 static const SK_OT_ULONG GreekAndCopticMask = SkOTSetULONGBit<7>::value; |
|
274 //Reserved |
|
275 static const SK_OT_ULONG CyrillicMask = SkOTSetULONGBit<9>::value; |
|
276 static const SK_OT_ULONG ArmenianMask = SkOTSetULONGBit<10>::value; |
|
277 static const SK_OT_ULONG HebrewMask = SkOTSetULONGBit<11>::value; |
|
278 //Reserved |
|
279 static const SK_OT_ULONG ArabicMask = SkOTSetULONGBit<13>::value; |
|
280 //Reserved |
|
281 static const SK_OT_ULONG DevanagariMask = SkOTSetULONGBit<15>::value; |
|
282 static const SK_OT_ULONG BengaliMask = SkOTSetULONGBit<16>::value; |
|
283 static const SK_OT_ULONG GurmukhiMask = SkOTSetULONGBit<17>::value; |
|
284 static const SK_OT_ULONG GujaratiMask = SkOTSetULONGBit<18>::value; |
|
285 static const SK_OT_ULONG OriyaMask = SkOTSetULONGBit<19>::value; |
|
286 static const SK_OT_ULONG TamilMask = SkOTSetULONGBit<20>::value; |
|
287 static const SK_OT_ULONG TeluguMask = SkOTSetULONGBit<21>::value; |
|
288 static const SK_OT_ULONG KannadaMask = SkOTSetULONGBit<22>::value; |
|
289 static const SK_OT_ULONG MalayalamMask = SkOTSetULONGBit<23>::value; |
|
290 static const SK_OT_ULONG ThaiMask = SkOTSetULONGBit<24>::value; |
|
291 static const SK_OT_ULONG LaoMask = SkOTSetULONGBit<25>::value; |
|
292 static const SK_OT_ULONG GeorgianMask = SkOTSetULONGBit<26>::value; |
|
293 //Reserved |
|
294 static const SK_OT_ULONG HangulJamoMask = SkOTSetULONGBit<28>::value; |
|
295 static const SK_OT_ULONG LatinExtendedAdditionalMask = SkOTSetULONGBit<29>::value; |
|
296 static const SK_OT_ULONG GreekExtendedMask = SkOTSetULONGBit<30>::value; |
|
297 static const SK_OT_ULONG GeneralPunctuationMask = SkOTSetULONGBit<31>::value; |
|
298 }; |
|
299 struct l1 { |
|
300 static const SK_OT_ULONG SuperscriptsAndSubscriptsMask = SkOTSetULONGBit<32 - 32>::value; |
|
301 static const SK_OT_ULONG CurrencySymbolsMask = SkOTSetULONGBit<33 - 32>::value; |
|
302 static const SK_OT_ULONG CombiningDiacriticalMarksForSymbolsMask = SkOTSetULONGBit<34 - 32>::value; |
|
303 static const SK_OT_ULONG LetterlikeSymbolsMask = SkOTSetULONGBit<35 - 32>::value; |
|
304 static const SK_OT_ULONG NumberFormsMask = SkOTSetULONGBit<36 - 32>::value; |
|
305 static const SK_OT_ULONG ArrowsMask = SkOTSetULONGBit<37 - 32>::value; |
|
306 static const SK_OT_ULONG MathematicalOperatorsMask = SkOTSetULONGBit<38 - 32>::value; |
|
307 static const SK_OT_ULONG MiscellaneousTechnicalMask = SkOTSetULONGBit<39 - 32>::value; |
|
308 static const SK_OT_ULONG ControlPicturesMask = SkOTSetULONGBit<40 - 32>::value; |
|
309 static const SK_OT_ULONG OpticalCharacterRecognitionMask = SkOTSetULONGBit<41 - 32>::value; |
|
310 static const SK_OT_ULONG EnclosedAlphanumericsMask = SkOTSetULONGBit<42 - 32>::value; |
|
311 static const SK_OT_ULONG BoxDrawingMask = SkOTSetULONGBit<43 - 32>::value; |
|
312 static const SK_OT_ULONG BlockElementsMask = SkOTSetULONGBit<44 - 32>::value; |
|
313 static const SK_OT_ULONG GeometricShapesMask = SkOTSetULONGBit<45 - 32>::value; |
|
314 static const SK_OT_ULONG MiscellaneousSymbolsMask = SkOTSetULONGBit<46 - 32>::value; |
|
315 static const SK_OT_ULONG DingbatsMask = SkOTSetULONGBit<47 - 32>::value; |
|
316 static const SK_OT_ULONG CJKSymbolsAndPunctuationMask = SkOTSetULONGBit<48 - 32>::value; |
|
317 static const SK_OT_ULONG HiraganaMask = SkOTSetULONGBit<49 - 32>::value; |
|
318 static const SK_OT_ULONG KatakanaMask = SkOTSetULONGBit<50 - 32>::value; |
|
319 static const SK_OT_ULONG BopomofoMask = SkOTSetULONGBit<51 - 32>::value; |
|
320 static const SK_OT_ULONG HangulCompatibilityJamoMask = SkOTSetULONGBit<52 - 32>::value; |
|
321 //Reserved |
|
322 static const SK_OT_ULONG EnclosedCJKLettersAndMonthsMask = SkOTSetULONGBit<54 - 32>::value; |
|
323 static const SK_OT_ULONG CJKCompatibilityMask = SkOTSetULONGBit<55 - 32>::value; |
|
324 static const SK_OT_ULONG HangulMask = SkOTSetULONGBit<56 - 32>::value; |
|
325 static const SK_OT_ULONG NonPlane0Mask = SkOTSetULONGBit<57 - 32>::value; |
|
326 //Reserved |
|
327 static const SK_OT_ULONG CJKUnifiedIdeographsMask = SkOTSetULONGBit<59 - 32>::value; |
|
328 static const SK_OT_ULONG PrivateUseAreaMask = SkOTSetULONGBit<60 - 32>::value; |
|
329 static const SK_OT_ULONG CJKCompatibilityIdeographsMask = SkOTSetULONGBit<61 - 32>::value; |
|
330 static const SK_OT_ULONG AlphabeticPresentationFormsMask = SkOTSetULONGBit<62 - 32>::value; |
|
331 static const SK_OT_ULONG ArabicPresentationFormsAMask = SkOTSetULONGBit<63 - 32>::value; |
|
332 }; |
|
333 struct l2 { |
|
334 static const SK_OT_ULONG CombiningHalfMarksMask = SkOTSetULONGBit<64 - 64>::value; |
|
335 static const SK_OT_ULONG CJKCompatibilityFormsMask = SkOTSetULONGBit<65 - 64>::value; |
|
336 static const SK_OT_ULONG SmallFormVariantsMask = SkOTSetULONGBit<66 - 64>::value; |
|
337 static const SK_OT_ULONG ArabicPresentationFormsBMask = SkOTSetULONGBit<67 - 64>::value; |
|
338 static const SK_OT_ULONG HalfwidthAndFullwidthFormsMask = SkOTSetULONGBit<68 - 64>::value; |
|
339 static const SK_OT_ULONG SpecialsMask = SkOTSetULONGBit<69 - 64>::value; |
|
340 static const SK_OT_ULONG TibetanMask = SkOTSetULONGBit<70 - 64>::value; |
|
341 static const SK_OT_ULONG SyriacMask = SkOTSetULONGBit<71 - 64>::value; |
|
342 static const SK_OT_ULONG ThaanaMask = SkOTSetULONGBit<72 - 64>::value; |
|
343 static const SK_OT_ULONG SinhalaMask = SkOTSetULONGBit<73 - 64>::value; |
|
344 static const SK_OT_ULONG MyanmarMask = SkOTSetULONGBit<74 - 64>::value; |
|
345 static const SK_OT_ULONG EthiopicMask = SkOTSetULONGBit<75 - 64>::value; |
|
346 static const SK_OT_ULONG CherokeeMask = SkOTSetULONGBit<76 - 64>::value; |
|
347 static const SK_OT_ULONG UnifiedCanadianSyllabicsMask = SkOTSetULONGBit<77 - 64>::value; |
|
348 static const SK_OT_ULONG OghamMask = SkOTSetULONGBit<78 - 64>::value; |
|
349 static const SK_OT_ULONG RunicMask = SkOTSetULONGBit<79 - 64>::value; |
|
350 static const SK_OT_ULONG KhmerMask = SkOTSetULONGBit<80 - 64>::value; |
|
351 static const SK_OT_ULONG MongolianMask = SkOTSetULONGBit<81 - 64>::value; |
|
352 static const SK_OT_ULONG BrailleMask = SkOTSetULONGBit<82 - 64>::value; |
|
353 static const SK_OT_ULONG YiMask = SkOTSetULONGBit<83 - 64>::value; |
|
354 static const SK_OT_ULONG Tagalog_Hanunoo_Buhid_TagbanwaMask = SkOTSetULONGBit<84 - 64>::value; |
|
355 static const SK_OT_ULONG OldItalicMask = SkOTSetULONGBit<85 - 64>::value; |
|
356 static const SK_OT_ULONG GothicMask = SkOTSetULONGBit<86 - 64>::value; |
|
357 static const SK_OT_ULONG DeseretMask = SkOTSetULONGBit<87 - 64>::value; |
|
358 static const SK_OT_ULONG MusicalSymbolsMask = SkOTSetULONGBit<88 - 64>::value; |
|
359 static const SK_OT_ULONG MathematicalAlphanumericSymbolsMask = SkOTSetULONGBit<89 - 64>::value; |
|
360 static const SK_OT_ULONG PrivateUseMask = SkOTSetULONGBit<90 - 64>::value; |
|
361 static const SK_OT_ULONG VariationSelectorsMask = SkOTSetULONGBit<91 - 64>::value; |
|
362 static const SK_OT_ULONG TagsMask = SkOTSetULONGBit<92 - 64>::value; |
|
363 }; |
|
364 SK_OT_ULONG value[4]; |
|
365 } raw; |
|
366 } ulUnicodeRange; |
|
367 SK_OT_CHAR achVendID[4]; |
|
368 union Selection { |
|
369 struct Field { |
|
370 //8-15 |
|
371 SK_OT_BYTE_BITFIELD( |
|
372 Reserved08, |
|
373 Reserved09, |
|
374 Reserved10, |
|
375 Reserved11, |
|
376 Reserved12, |
|
377 Reserved13, |
|
378 Reserved14, |
|
379 Reserved15) |
|
380 //0-7 |
|
381 SK_OT_BYTE_BITFIELD( |
|
382 Italic, |
|
383 Underscore, |
|
384 Negative, |
|
385 Outlined, |
|
386 Strikeout, |
|
387 Bold, |
|
388 Regular, |
|
389 Reserved07) |
|
390 } field; |
|
391 struct Raw { |
|
392 static const SK_OT_USHORT ItalicMask = SkOTSetUSHORTBit<0>::value; |
|
393 static const SK_OT_USHORT UnderscoreMask = SkOTSetUSHORTBit<1>::value; |
|
394 static const SK_OT_USHORT NegativeMask = SkOTSetUSHORTBit<2>::value; |
|
395 static const SK_OT_USHORT OutlinedMask = SkOTSetUSHORTBit<3>::value; |
|
396 static const SK_OT_USHORT StrikeoutMask = SkOTSetUSHORTBit<4>::value; |
|
397 static const SK_OT_USHORT BoldMask = SkOTSetUSHORTBit<5>::value; |
|
398 static const SK_OT_USHORT RegularMask = SkOTSetUSHORTBit<6>::value; |
|
399 SK_OT_USHORT value; |
|
400 } raw; |
|
401 } fsSelection; |
|
402 SK_OT_USHORT usFirstCharIndex; |
|
403 SK_OT_USHORT usLastCharIndex; |
|
404 //version0 |
|
405 SK_OT_SHORT sTypoAscender; |
|
406 SK_OT_SHORT sTypoDescender; |
|
407 SK_OT_SHORT sTypoLineGap; |
|
408 SK_OT_USHORT usWinAscent; |
|
409 SK_OT_USHORT usWinDescent; |
|
410 //version1 |
|
411 union CodePageRange { |
|
412 struct Field { |
|
413 //l0 24-31 |
|
414 SK_OT_BYTE_BITFIELD( |
|
415 Reserved24, |
|
416 Reserved25, |
|
417 Reserved26, |
|
418 Reserved27, |
|
419 Reserved28, |
|
420 MacintoshCharacterSet, |
|
421 OEMCharacterSet, |
|
422 SymbolCharacterSet) |
|
423 //l0 16-23 |
|
424 SK_OT_BYTE_BITFIELD( |
|
425 Thai_874, |
|
426 JISJapan_932, |
|
427 ChineseSimplified_936, |
|
428 KoreanWansung_949, |
|
429 ChineseTraditional_950, |
|
430 KoreanJohab_1361, |
|
431 Reserved22, |
|
432 Reserved23) |
|
433 //l0 8-15 |
|
434 SK_OT_BYTE_BITFIELD( |
|
435 Vietnamese, |
|
436 Reserved09, |
|
437 Reserved10, |
|
438 Reserved11, |
|
439 Reserved12, |
|
440 Reserved13, |
|
441 Reserved14, |
|
442 Reserved15) |
|
443 //l0 0-7 |
|
444 SK_OT_BYTE_BITFIELD( |
|
445 Latin1_1252, |
|
446 Latin2EasternEurope_1250, |
|
447 Cyrillic_1251, |
|
448 Greek_1253, |
|
449 Turkish_1254, |
|
450 Hebrew_1255, |
|
451 Arabic_1256, |
|
452 WindowsBaltic_1257) |
|
453 |
|
454 //l1 24-31 |
|
455 SK_OT_BYTE_BITFIELD( |
|
456 IBMTurkish_857, |
|
457 IBMCyrillic_855, |
|
458 Latin2_852, |
|
459 MSDOSBaltic_775, |
|
460 Greek_737, |
|
461 Arabic_708, |
|
462 WELatin1_850, |
|
463 US_437) |
|
464 //l1 16-23 |
|
465 SK_OT_BYTE_BITFIELD( |
|
466 IBMGreek_869, |
|
467 MSDOSRussian_866, |
|
468 MSDOSNordic_865, |
|
469 Arabic_864, |
|
470 MSDOSCanadianFrench_863, |
|
471 Hebrew_862, |
|
472 MSDOSIcelandic_861, |
|
473 MSDOSPortuguese_860) |
|
474 //l1 8-15 |
|
475 SK_OT_BYTE_BITFIELD( |
|
476 Reserved40, |
|
477 Reserved41, |
|
478 Reserved42, |
|
479 Reserved43, |
|
480 Reserved44, |
|
481 Reserved45, |
|
482 Reserved46, |
|
483 Reserved47) |
|
484 //l1 0-7 |
|
485 SK_OT_BYTE_BITFIELD( |
|
486 Reserved32, |
|
487 Reserved33, |
|
488 Reserved34, |
|
489 Reserved35, |
|
490 Reserved36, |
|
491 Reserved37, |
|
492 Reserved38, |
|
493 Reserved39) |
|
494 } field; |
|
495 struct Raw { |
|
496 struct l0 { |
|
497 static const SK_OT_ULONG Latin1_1252Mask = SkOTSetULONGBit<0>::value; |
|
498 static const SK_OT_ULONG Latin2EasternEurope_1250Mask = SkOTSetULONGBit<1>::value; |
|
499 static const SK_OT_ULONG Cyrillic_1251Mask = SkOTSetULONGBit<2>::value; |
|
500 static const SK_OT_ULONG Greek_1253Mask = SkOTSetULONGBit<3>::value; |
|
501 static const SK_OT_ULONG Turkish_1254Mask = SkOTSetULONGBit<4>::value; |
|
502 static const SK_OT_ULONG Hebrew_1255Mask = SkOTSetULONGBit<5>::value; |
|
503 static const SK_OT_ULONG Arabic_1256Mask = SkOTSetULONGBit<6>::value; |
|
504 static const SK_OT_ULONG WindowsBaltic_1257Mask = SkOTSetULONGBit<7>::value; |
|
505 static const SK_OT_ULONG Vietnamese_1258Mask = SkOTSetULONGBit<8>::value; |
|
506 static const SK_OT_ULONG Thai_874Mask = SkOTSetULONGBit<16>::value; |
|
507 static const SK_OT_ULONG JISJapan_932Mask = SkOTSetULONGBit<17>::value; |
|
508 static const SK_OT_ULONG ChineseSimplified_936Mask = SkOTSetULONGBit<18>::value; |
|
509 static const SK_OT_ULONG KoreanWansung_949Mask = SkOTSetULONGBit<19>::value; |
|
510 static const SK_OT_ULONG ChineseTraditional_950Mask = SkOTSetULONGBit<20>::value; |
|
511 static const SK_OT_ULONG KoreanJohab_1361Mask = SkOTSetULONGBit<21>::value; |
|
512 static const SK_OT_ULONG MacintoshCharacterSetMask = SkOTSetULONGBit<29>::value; |
|
513 static const SK_OT_ULONG OEMCharacterSetMask = SkOTSetULONGBit<30>::value; |
|
514 static const SK_OT_ULONG SymbolCharacterSetMask = SkOTSetULONGBit<31>::value; |
|
515 }; |
|
516 struct l1 { |
|
517 static const SK_OT_ULONG IBMGreek_869Mask = SkOTSetULONGBit<48 - 32>::value; |
|
518 static const SK_OT_ULONG MSDOSRussian_866Mask = SkOTSetULONGBit<49 - 32>::value; |
|
519 static const SK_OT_ULONG MSDOSNordic_865Mask = SkOTSetULONGBit<50 - 32>::value; |
|
520 static const SK_OT_ULONG Arabic_864Mask = SkOTSetULONGBit<51 - 32>::value; |
|
521 static const SK_OT_ULONG MSDOSCanadianFrench_863Mask = SkOTSetULONGBit<52 - 32>::value; |
|
522 static const SK_OT_ULONG Hebrew_862Mask = SkOTSetULONGBit<53 - 32>::value; |
|
523 static const SK_OT_ULONG MSDOSIcelandic_861Mask = SkOTSetULONGBit<54 - 32>::value; |
|
524 static const SK_OT_ULONG MSDOSPortuguese_860Mask = SkOTSetULONGBit<55 - 32>::value; |
|
525 static const SK_OT_ULONG IBMTurkish_857Mask = SkOTSetULONGBit<56 - 32>::value; |
|
526 static const SK_OT_ULONG IBMCyrillic_855Mask = SkOTSetULONGBit<57 - 32>::value; |
|
527 static const SK_OT_ULONG Latin2_852Mask = SkOTSetULONGBit<58 - 32>::value; |
|
528 static const SK_OT_ULONG MSDOSBaltic_775Mask = SkOTSetULONGBit<59 - 32>::value; |
|
529 static const SK_OT_ULONG Greek_737Mask = SkOTSetULONGBit<60 - 32>::value; |
|
530 static const SK_OT_ULONG Arabic_708Mask = SkOTSetULONGBit<61 - 32>::value; |
|
531 static const SK_OT_ULONG WELatin1_850Mask = SkOTSetULONGBit<62 - 32>::value; |
|
532 static const SK_OT_ULONG US_437Mask = SkOTSetULONGBit<63 - 32>::value; |
|
533 }; |
|
534 SK_OT_ULONG value[2]; |
|
535 } raw; |
|
536 } ulCodePageRange; |
|
537 //version2 |
|
538 SK_OT_SHORT sxHeight; |
|
539 SK_OT_SHORT sCapHeight; |
|
540 SK_OT_USHORT usDefaultChar; |
|
541 SK_OT_USHORT usBreakChar; |
|
542 SK_OT_USHORT usMaxContext; |
|
543 }; |
|
544 |
|
545 #pragma pack(pop) |
|
546 |
|
547 |
|
548 SK_COMPILE_ASSERT(sizeof(SkOTTableOS2_V3) == 96, sizeof_SkOTTableOS2_V3_not_96); |
|
549 |
|
550 #endif |