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