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