gfx/skia/trunk/src/sfnt/SkOTTable_OS_2_V2.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/sfnt/SkOTTable_OS_2_V2.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,540 @@
     1.4 +/*
     1.5 + * Copyright 2012 Google Inc.
     1.6 + *
     1.7 + * Use of this source code is governed by a BSD-style license that can be
     1.8 + * found in the LICENSE file.
     1.9 + */
    1.10 +
    1.11 +#ifndef SkOTTable_OS_2_V2_DEFINED
    1.12 +#define SkOTTable_OS_2_V2_DEFINED
    1.13 +
    1.14 +#include "SkEndian.h"
    1.15 +#include "SkIBMFamilyClass.h"
    1.16 +#include "SkOTTableTypes.h"
    1.17 +#include "SkPanose.h"
    1.18 +#include "SkTypedEnum.h"
    1.19 +
    1.20 +#pragma pack(push, 1)
    1.21 +
    1.22 +struct SkOTTableOS2_V2 {
    1.23 +    SK_OT_USHORT version;
    1.24 +    static const SK_OT_USHORT VERSION = SkTEndian_SwapBE16(2);
    1.25 +
    1.26 +    SK_OT_SHORT xAvgCharWidth;
    1.27 +    struct WeightClass {
    1.28 +        SK_TYPED_ENUM(Value, SK_OT_USHORT,
    1.29 +            ((Thin, SkTEndian_SwapBE16(100)))
    1.30 +            ((ExtraLight, SkTEndian_SwapBE16(200)))
    1.31 +            ((Light, SkTEndian_SwapBE16(300)))
    1.32 +            ((Normal, SkTEndian_SwapBE16(400)))
    1.33 +            ((Medium, SkTEndian_SwapBE16(500)))
    1.34 +            ((SemiBold, SkTEndian_SwapBE16(600)))
    1.35 +            ((Bold, SkTEndian_SwapBE16(700)))
    1.36 +            ((ExtraBold, SkTEndian_SwapBE16(800)))
    1.37 +            ((Black, SkTEndian_SwapBE16(900)))
    1.38 +            SK_SEQ_END,
    1.39 +        SK_SEQ_END)
    1.40 +        SK_OT_USHORT value;
    1.41 +    } usWeightClass;
    1.42 +    struct WidthClass {
    1.43 +        SK_TYPED_ENUM(Value, SK_OT_USHORT,
    1.44 +            ((UltraCondensed, SkTEndian_SwapBE16(1)))
    1.45 +            ((ExtraCondensed, SkTEndian_SwapBE16(2)))
    1.46 +            ((Condensed, SkTEndian_SwapBE16(3)))
    1.47 +            ((SemiCondensed, SkTEndian_SwapBE16(4)))
    1.48 +            ((Medium, SkTEndian_SwapBE16(5)))
    1.49 +            ((SemiExpanded, SkTEndian_SwapBE16(6)))
    1.50 +            ((Expanded, SkTEndian_SwapBE16(7)))
    1.51 +            ((ExtraExpanded, SkTEndian_SwapBE16(8)))
    1.52 +            ((UltraExpanded, SkTEndian_SwapBE16(9))),
    1.53 +        (value)SK_SEQ_END)
    1.54 +    } usWidthClass;
    1.55 +    union Type {
    1.56 +        struct Field {
    1.57 +            //8-15
    1.58 +            SK_OT_BYTE_BITFIELD(
    1.59 +                NoSubsetting,
    1.60 +                Bitmap,
    1.61 +                Reserved10,
    1.62 +                Reserved11,
    1.63 +                Reserved12,
    1.64 +                Reserved13,
    1.65 +                Reserved14,
    1.66 +                Reserved15)
    1.67 +            //0-7
    1.68 +            SK_OT_BYTE_BITFIELD(
    1.69 +                Reserved00,
    1.70 +                Restricted,
    1.71 +                PreviewPrint,
    1.72 +                Editable,
    1.73 +                Reserved04,
    1.74 +                Reserved05,
    1.75 +                Reserved06,
    1.76 +                Reserved07)
    1.77 +        } field;
    1.78 +        struct Raw {
    1.79 +            static const SK_OT_USHORT Installable = 0;
    1.80 +            static const SK_OT_USHORT RestrictedMask = SkOTSetUSHORTBit<1>::value;
    1.81 +            static const SK_OT_USHORT PreviewPrintMask = SkOTSetUSHORTBit<2>::value;
    1.82 +            static const SK_OT_USHORT EditableMask = SkOTSetUSHORTBit<3>::value;
    1.83 +            static const SK_OT_USHORT NoSubsettingMask = SkOTSetUSHORTBit<8>::value;
    1.84 +            static const SK_OT_USHORT BitmapMask = SkOTSetUSHORTBit<9>::value;
    1.85 +            SK_OT_USHORT value;
    1.86 +        } raw;
    1.87 +    } fsType;
    1.88 +    SK_OT_SHORT ySubscriptXSize;
    1.89 +    SK_OT_SHORT ySubscriptYSize;
    1.90 +    SK_OT_SHORT ySubscriptXOffset;
    1.91 +    SK_OT_SHORT ySubscriptYOffset;
    1.92 +    SK_OT_SHORT ySuperscriptXSize;
    1.93 +    SK_OT_SHORT ySuperscriptYSize;
    1.94 +    SK_OT_SHORT ySuperscriptXOffset;
    1.95 +    SK_OT_SHORT ySuperscriptYOffset;
    1.96 +    SK_OT_SHORT yStrikeoutSize;
    1.97 +    SK_OT_SHORT yStrikeoutPosition;
    1.98 +    SkIBMFamilyClass sFamilyClass;
    1.99 +    SkPanose panose;
   1.100 +    union UnicodeRange {
   1.101 +        struct Field {
   1.102 +            //l0 24-31
   1.103 +            SK_OT_BYTE_BITFIELD(
   1.104 +                Thai,
   1.105 +                Lao,
   1.106 +                Georgian,
   1.107 +                Reserved027,
   1.108 +                HangulJamo,
   1.109 +                LatinExtendedAdditional,
   1.110 +                GreekExtended,
   1.111 +                GeneralPunctuation)
   1.112 +            //l0 16-23
   1.113 +            SK_OT_BYTE_BITFIELD(
   1.114 +                Bengali,
   1.115 +                Gurmukhi,
   1.116 +                Gujarati,
   1.117 +                Oriya,
   1.118 +                Tamil,
   1.119 +                Telugu,
   1.120 +                Kannada,
   1.121 +                Malayalam)
   1.122 +            //l0 8-15
   1.123 +            SK_OT_BYTE_BITFIELD(
   1.124 +                Reserved008,
   1.125 +                Cyrillic,
   1.126 +                Armenian,
   1.127 +                Hebrew,
   1.128 +                Reserved012,
   1.129 +                Arabic,
   1.130 +                Reserved014,
   1.131 +                Devanagari)
   1.132 +            //l0 0-7
   1.133 +            SK_OT_BYTE_BITFIELD(
   1.134 +                BasicLatin,
   1.135 +                Latin1Supplement,
   1.136 +                LatinExtendedA,
   1.137 +                LatinExtendedB,
   1.138 +                IPAExtensions,
   1.139 +                SpacingModifierLetters,
   1.140 +                CombiningDiacriticalMarks,
   1.141 +                Greek)
   1.142 +
   1.143 +            //l1 24-31
   1.144 +            SK_OT_BYTE_BITFIELD(
   1.145 +                Hangul,
   1.146 +                Surrogates,
   1.147 +                Reserved058,
   1.148 +                CJKUnifiedIdeographs,
   1.149 +                PrivateUseArea,
   1.150 +                CJKCompatibilityIdeographs,
   1.151 +                AlphabeticPresentationForms,
   1.152 +                ArabicPresentationFormsA)
   1.153 +            //l1 16-23
   1.154 +            SK_OT_BYTE_BITFIELD(
   1.155 +                CJKSymbolsAndPunctuation,
   1.156 +                Hiragana,
   1.157 +                Katakana,
   1.158 +                Bopomofo,
   1.159 +                HangulCompatibilityJamo,
   1.160 +                CJKMiscellaneous,
   1.161 +                EnclosedCJKLettersAndMonths,
   1.162 +                CJKCompatibility)
   1.163 +            //l1 8-15
   1.164 +            SK_OT_BYTE_BITFIELD(
   1.165 +                ControlPictures,
   1.166 +                OpticalCharacterRecognition,
   1.167 +                EnclosedAlphanumerics,
   1.168 +                BoxDrawing,
   1.169 +                BlockElements,
   1.170 +                GeometricShapes,
   1.171 +                MiscellaneousSymbols,
   1.172 +                Dingbats)
   1.173 +            //l1 0-7
   1.174 +            SK_OT_BYTE_BITFIELD(
   1.175 +                SuperscriptsAndSubscripts,
   1.176 +                CurrencySymbols,
   1.177 +                CombiningDiacriticalMarksForSymbols,
   1.178 +                LetterlikeSymbols,
   1.179 +                NumberForms,
   1.180 +                Arrows,
   1.181 +                MathematicalOperators,
   1.182 +                MiscellaneousTechnical)
   1.183 +
   1.184 +            //l2 24-31
   1.185 +            SK_OT_BYTE_BITFIELD(
   1.186 +                Reserved088,
   1.187 +                Reserved089,
   1.188 +                Reserved090,
   1.189 +                Reserved091,
   1.190 +                Reserved092,
   1.191 +                Reserved093,
   1.192 +                Reserved094,
   1.193 +                Reserved095)
   1.194 +            //l2 16-23
   1.195 +            SK_OT_BYTE_BITFIELD(
   1.196 +                Khmer,
   1.197 +                Mongolian,
   1.198 +                Braille,
   1.199 +                Yi,
   1.200 +                Reserved084,
   1.201 +                Reserved085,
   1.202 +                Reserved086,
   1.203 +                Reserved087)
   1.204 +            //l2 8-15
   1.205 +            SK_OT_BYTE_BITFIELD(
   1.206 +                Thaana,
   1.207 +                Sinhala,
   1.208 +                Myanmar,
   1.209 +                Ethiopic,
   1.210 +                Cherokee,
   1.211 +                UnifiedCanadianSyllabics,
   1.212 +                Ogham,
   1.213 +                Runic)
   1.214 +            //l2 0-7
   1.215 +            SK_OT_BYTE_BITFIELD(
   1.216 +                CombiningHalfMarks,
   1.217 +                CJKCompatibilityForms,
   1.218 +                SmallFormVariants,
   1.219 +                ArabicPresentationFormsB,
   1.220 +                HalfwidthAndFullwidthForms,
   1.221 +                Specials,
   1.222 +                Tibetan,
   1.223 +                Syriac)
   1.224 +
   1.225 +            //l3 24-31
   1.226 +            SK_OT_BYTE_BITFIELD(
   1.227 +                Reserved120,
   1.228 +                Reserved121,
   1.229 +                Reserved122,
   1.230 +                Reserved123,
   1.231 +                Reserved124,
   1.232 +                Reserved125,
   1.233 +                Reserved126,
   1.234 +                Reserved127)
   1.235 +            //l3 16-23
   1.236 +            SK_OT_BYTE_BITFIELD(
   1.237 +                Reserved112,
   1.238 +                Reserved113,
   1.239 +                Reserved114,
   1.240 +                Reserved115,
   1.241 +                Reserved116,
   1.242 +                Reserved117,
   1.243 +                Reserved118,
   1.244 +                Reserved119)
   1.245 +            //l3 8-15
   1.246 +            SK_OT_BYTE_BITFIELD(
   1.247 +                Reserved104,
   1.248 +                Reserved105,
   1.249 +                Reserved106,
   1.250 +                Reserved107,
   1.251 +                Reserved108,
   1.252 +                Reserved109,
   1.253 +                Reserved110,
   1.254 +                Reserved111)
   1.255 +            //l3 0-7
   1.256 +            SK_OT_BYTE_BITFIELD(
   1.257 +                Reserved096,
   1.258 +                Reserved097,
   1.259 +                Reserved098,
   1.260 +                Reserved099,
   1.261 +                Reserved100,
   1.262 +                Reserved101,
   1.263 +                Reserved102,
   1.264 +                Reserved103)
   1.265 +        } field;
   1.266 +        struct Raw {
   1.267 +            struct l0 {
   1.268 +                static const SK_OT_ULONG BasicLatinMask = SkOTSetULONGBit<0>::value;
   1.269 +                static const SK_OT_ULONG Latin1SupplementMask = SkOTSetULONGBit<1>::value;
   1.270 +                static const SK_OT_ULONG LatinExtendedAMask = SkOTSetULONGBit<2>::value;
   1.271 +                static const SK_OT_ULONG LatinExtendedBMask = SkOTSetULONGBit<3>::value;
   1.272 +                static const SK_OT_ULONG IPAExtensionsMask = SkOTSetULONGBit<4>::value;
   1.273 +                static const SK_OT_ULONG SpacingModifierLettersMask = SkOTSetULONGBit<5>::value;
   1.274 +                static const SK_OT_ULONG CombiningDiacriticalMarksMask = SkOTSetULONGBit<6>::value;
   1.275 +                static const SK_OT_ULONG GreekMask = SkOTSetULONGBit<7>::value;
   1.276 +                //Reserved
   1.277 +                static const SK_OT_ULONG CyrillicMask = SkOTSetULONGBit<9>::value;
   1.278 +                static const SK_OT_ULONG ArmenianMask = SkOTSetULONGBit<10>::value;
   1.279 +                static const SK_OT_ULONG HebrewMask = SkOTSetULONGBit<11>::value;
   1.280 +                //Reserved
   1.281 +                static const SK_OT_ULONG ArabicMask = SkOTSetULONGBit<13>::value;
   1.282 +                //Reserved
   1.283 +                static const SK_OT_ULONG DevanagariMask = SkOTSetULONGBit<15>::value;
   1.284 +                static const SK_OT_ULONG BengaliMask = SkOTSetULONGBit<16>::value;
   1.285 +                static const SK_OT_ULONG GurmukhiMask = SkOTSetULONGBit<17>::value;
   1.286 +                static const SK_OT_ULONG GujaratiMask = SkOTSetULONGBit<18>::value;
   1.287 +                static const SK_OT_ULONG OriyaMask = SkOTSetULONGBit<19>::value;
   1.288 +                static const SK_OT_ULONG TamilMask = SkOTSetULONGBit<20>::value;
   1.289 +                static const SK_OT_ULONG TeluguMask = SkOTSetULONGBit<21>::value;
   1.290 +                static const SK_OT_ULONG KannadaMask = SkOTSetULONGBit<22>::value;
   1.291 +                static const SK_OT_ULONG MalayalamMask = SkOTSetULONGBit<23>::value;
   1.292 +                static const SK_OT_ULONG ThaiMask = SkOTSetULONGBit<24>::value;
   1.293 +                static const SK_OT_ULONG LaoMask = SkOTSetULONGBit<25>::value;
   1.294 +                static const SK_OT_ULONG GeorgianMask = SkOTSetULONGBit<26>::value;
   1.295 +                //Reserved
   1.296 +                static const SK_OT_ULONG HangulJamoMask = SkOTSetULONGBit<28>::value;
   1.297 +                static const SK_OT_ULONG LatinExtendedAdditionalMask = SkOTSetULONGBit<29>::value;
   1.298 +                static const SK_OT_ULONG GreekExtendedMask = SkOTSetULONGBit<30>::value;
   1.299 +                static const SK_OT_ULONG GeneralPunctuationMask = SkOTSetULONGBit<31>::value;
   1.300 +            };
   1.301 +            struct l1 {
   1.302 +                static const SK_OT_ULONG SuperscriptsAndSubscriptsMask = SkOTSetULONGBit<32 - 32>::value;
   1.303 +                static const SK_OT_ULONG CurrencySymbolsMask = SkOTSetULONGBit<33 - 32>::value;
   1.304 +                static const SK_OT_ULONG CombiningDiacriticalMarksForSymbolsMask = SkOTSetULONGBit<34 - 32>::value;
   1.305 +                static const SK_OT_ULONG LetterlikeSymbolsMask = SkOTSetULONGBit<35 - 32>::value;
   1.306 +                static const SK_OT_ULONG NumberFormsMask = SkOTSetULONGBit<36 - 32>::value;
   1.307 +                static const SK_OT_ULONG ArrowsMask = SkOTSetULONGBit<37 - 32>::value;
   1.308 +                static const SK_OT_ULONG MathematicalOperatorsMask = SkOTSetULONGBit<38 - 32>::value;
   1.309 +                static const SK_OT_ULONG MiscellaneousTechnicalMask = SkOTSetULONGBit<39 - 32>::value;
   1.310 +                static const SK_OT_ULONG ControlPicturesMask = SkOTSetULONGBit<40 - 32>::value;
   1.311 +                static const SK_OT_ULONG OpticalCharacterRecognitionMask = SkOTSetULONGBit<41 - 32>::value;
   1.312 +                static const SK_OT_ULONG EnclosedAlphanumericsMask = SkOTSetULONGBit<42 - 32>::value;
   1.313 +                static const SK_OT_ULONG BoxDrawingMask = SkOTSetULONGBit<43 - 32>::value;
   1.314 +                static const SK_OT_ULONG BlockElementsMask = SkOTSetULONGBit<44 - 32>::value;
   1.315 +                static const SK_OT_ULONG GeometricShapesMask = SkOTSetULONGBit<45 - 32>::value;
   1.316 +                static const SK_OT_ULONG MiscellaneousSymbolsMask = SkOTSetULONGBit<46 - 32>::value;
   1.317 +                static const SK_OT_ULONG DingbatsMask = SkOTSetULONGBit<47 - 32>::value;
   1.318 +                static const SK_OT_ULONG CJKSymbolsAndPunctuationMask = SkOTSetULONGBit<48 - 32>::value;
   1.319 +                static const SK_OT_ULONG HiraganaMask = SkOTSetULONGBit<49 - 32>::value;
   1.320 +                static const SK_OT_ULONG KatakanaMask = SkOTSetULONGBit<50 - 32>::value;
   1.321 +                static const SK_OT_ULONG BopomofoMask = SkOTSetULONGBit<51 - 32>::value;
   1.322 +                static const SK_OT_ULONG HangulCompatibilityJamoMask = SkOTSetULONGBit<52 - 32>::value;
   1.323 +                static const SK_OT_ULONG CJKMiscellaneousMask = SkOTSetULONGBit<53 - 32>::value;
   1.324 +                static const SK_OT_ULONG EnclosedCJKLettersAndMonthsMask = SkOTSetULONGBit<54 - 32>::value;
   1.325 +                static const SK_OT_ULONG CJKCompatibilityMask = SkOTSetULONGBit<55 - 32>::value;
   1.326 +                static const SK_OT_ULONG HangulMask = SkOTSetULONGBit<56 - 32>::value;
   1.327 +                static const SK_OT_ULONG SurrogatesMask = SkOTSetULONGBit<57 - 32>::value;
   1.328 +                //Reserved
   1.329 +                static const SK_OT_ULONG CJKUnifiedIdeographsMask = SkOTSetULONGBit<59 - 32>::value;
   1.330 +                static const SK_OT_ULONG PrivateUseAreaMask = SkOTSetULONGBit<60 - 32>::value;
   1.331 +                static const SK_OT_ULONG CJKCompatibilityIdeographsMask = SkOTSetULONGBit<61 - 32>::value;
   1.332 +                static const SK_OT_ULONG AlphabeticPresentationFormsMask = SkOTSetULONGBit<62 - 32>::value;
   1.333 +                static const SK_OT_ULONG ArabicPresentationFormsAMask = SkOTSetULONGBit<63 - 32>::value;
   1.334 +            };
   1.335 +            struct l2 {
   1.336 +                static const SK_OT_ULONG CombiningHalfMarksMask = SkOTSetULONGBit<64 - 64>::value;
   1.337 +                static const SK_OT_ULONG CJKCompatibilityFormsMask = SkOTSetULONGBit<65 - 64>::value;
   1.338 +                static const SK_OT_ULONG SmallFormVariantsMask = SkOTSetULONGBit<66 - 64>::value;
   1.339 +                static const SK_OT_ULONG ArabicPresentationFormsBMask = SkOTSetULONGBit<67 - 64>::value;
   1.340 +                static const SK_OT_ULONG HalfwidthAndFullwidthFormsMask = SkOTSetULONGBit<68 - 64>::value;
   1.341 +                static const SK_OT_ULONG SpecialsMask = SkOTSetULONGBit<69 - 64>::value;
   1.342 +                static const SK_OT_ULONG TibetanMask = SkOTSetULONGBit<70 - 64>::value;
   1.343 +                static const SK_OT_ULONG SyriacMask = SkOTSetULONGBit<71 - 64>::value;
   1.344 +                static const SK_OT_ULONG ThaanaMask = SkOTSetULONGBit<72 - 64>::value;
   1.345 +                static const SK_OT_ULONG SinhalaMask = SkOTSetULONGBit<73 - 64>::value;
   1.346 +                static const SK_OT_ULONG MyanmarMask = SkOTSetULONGBit<74 - 64>::value;
   1.347 +                static const SK_OT_ULONG EthiopicMask = SkOTSetULONGBit<75 - 64>::value;
   1.348 +                static const SK_OT_ULONG CherokeeMask = SkOTSetULONGBit<76 - 64>::value;
   1.349 +                static const SK_OT_ULONG UnifiedCanadianSyllabicsMask = SkOTSetULONGBit<77 - 64>::value;
   1.350 +                static const SK_OT_ULONG OghamMask = SkOTSetULONGBit<78 - 64>::value;
   1.351 +                static const SK_OT_ULONG RunicMask = SkOTSetULONGBit<79 - 64>::value;
   1.352 +                static const SK_OT_ULONG KhmerMask = SkOTSetULONGBit<80 - 64>::value;
   1.353 +                static const SK_OT_ULONG MongolianMask = SkOTSetULONGBit<81 - 64>::value;
   1.354 +                static const SK_OT_ULONG BrailleMask = SkOTSetULONGBit<82 - 64>::value;
   1.355 +                static const SK_OT_ULONG YiMask = SkOTSetULONGBit<83 - 64>::value;
   1.356 +            };
   1.357 +            SK_OT_ULONG value[4];
   1.358 +        } raw;
   1.359 +    } ulUnicodeRange;
   1.360 +    SK_OT_CHAR achVendID[4];
   1.361 +    union Selection {
   1.362 +        struct Field {
   1.363 +            //8-15
   1.364 +            SK_OT_BYTE_BITFIELD(
   1.365 +                Reserved08,
   1.366 +                Reserved09,
   1.367 +                Reserved10,
   1.368 +                Reserved11,
   1.369 +                Reserved12,
   1.370 +                Reserved13,
   1.371 +                Reserved14,
   1.372 +                Reserved15)
   1.373 +            //0-7
   1.374 +            SK_OT_BYTE_BITFIELD(
   1.375 +                Italic,
   1.376 +                Underscore,
   1.377 +                Negative,
   1.378 +                Outlined,
   1.379 +                Strikeout,
   1.380 +                Bold,
   1.381 +                Regular,
   1.382 +                Reserved07)
   1.383 +        } field;
   1.384 +        struct Raw {
   1.385 +            static const SK_OT_USHORT ItalicMask = SkOTSetUSHORTBit<0>::value;
   1.386 +            static const SK_OT_USHORT UnderscoreMask = SkOTSetUSHORTBit<1>::value;
   1.387 +            static const SK_OT_USHORT NegativeMask = SkOTSetUSHORTBit<2>::value;
   1.388 +            static const SK_OT_USHORT OutlinedMask = SkOTSetUSHORTBit<3>::value;
   1.389 +            static const SK_OT_USHORT StrikeoutMask = SkOTSetUSHORTBit<4>::value;
   1.390 +            static const SK_OT_USHORT BoldMask = SkOTSetUSHORTBit<5>::value;
   1.391 +            static const SK_OT_USHORT RegularMask = SkOTSetUSHORTBit<6>::value;
   1.392 +            SK_OT_USHORT value;
   1.393 +        } raw;
   1.394 +    } fsSelection;
   1.395 +    SK_OT_USHORT usFirstCharIndex;
   1.396 +    SK_OT_USHORT usLastCharIndex;
   1.397 +    //version0
   1.398 +    SK_OT_SHORT sTypoAscender;
   1.399 +    SK_OT_SHORT sTypoDescender;
   1.400 +    SK_OT_SHORT sTypoLineGap;
   1.401 +    SK_OT_USHORT usWinAscent;
   1.402 +    SK_OT_USHORT usWinDescent;
   1.403 +    //version1
   1.404 +    union CodePageRange {
   1.405 +        struct Field {
   1.406 +            //l0 24-31
   1.407 +            SK_OT_BYTE_BITFIELD(
   1.408 +                Reserved24,
   1.409 +                Reserved25,
   1.410 +                Reserved26,
   1.411 +                Reserved27,
   1.412 +                Reserved28,
   1.413 +                MacintoshCharacterSet,
   1.414 +                OEMCharacterSet,
   1.415 +                SymbolCharacterSet)
   1.416 +            //l0 16-23
   1.417 +            SK_OT_BYTE_BITFIELD(
   1.418 +                Thai_874,
   1.419 +                JISJapan_932,
   1.420 +                ChineseSimplified_936,
   1.421 +                KoreanWansung_949,
   1.422 +                ChineseTraditional_950,
   1.423 +                KoreanJohab_1361,
   1.424 +                Reserved22,
   1.425 +                Reserved23)
   1.426 +            //l0 8-15
   1.427 +            SK_OT_BYTE_BITFIELD(
   1.428 +                Vietnamese,
   1.429 +                Reserved09,
   1.430 +                Reserved10,
   1.431 +                Reserved11,
   1.432 +                Reserved12,
   1.433 +                Reserved13,
   1.434 +                Reserved14,
   1.435 +                Reserved15)
   1.436 +            //l0 0-7
   1.437 +            SK_OT_BYTE_BITFIELD(
   1.438 +                Latin1_1252,
   1.439 +                Latin2EasternEurope_1250,
   1.440 +                Cyrillic_1251,
   1.441 +                Greek_1253,
   1.442 +                Turkish_1254,
   1.443 +                Hebrew_1255,
   1.444 +                Arabic_1256,
   1.445 +                WindowsBaltic_1257)
   1.446 +
   1.447 +            //l1 24-31
   1.448 +            SK_OT_BYTE_BITFIELD(
   1.449 +                IBMTurkish_857,
   1.450 +                IBMCyrillic_855,
   1.451 +                Latin2_852,
   1.452 +                MSDOSBaltic_775,
   1.453 +                Greek_737,
   1.454 +                Arabic_708,
   1.455 +                WELatin1_850,
   1.456 +                US_437)
   1.457 +            //l1 16-23
   1.458 +            SK_OT_BYTE_BITFIELD(
   1.459 +                IBMGreek_869,
   1.460 +                MSDOSRussian_866,
   1.461 +                MSDOSNordic_865,
   1.462 +                Arabic_864,
   1.463 +                MSDOSCanadianFrench_863,
   1.464 +                Hebrew_862,
   1.465 +                MSDOSIcelandic_861,
   1.466 +                MSDOSPortuguese_860)
   1.467 +            //l1 8-15
   1.468 +            SK_OT_BYTE_BITFIELD(
   1.469 +                Reserved40,
   1.470 +                Reserved41,
   1.471 +                Reserved42,
   1.472 +                Reserved43,
   1.473 +                Reserved44,
   1.474 +                Reserved45,
   1.475 +                Reserved46,
   1.476 +                Reserved47)
   1.477 +            //l1 0-7
   1.478 +            SK_OT_BYTE_BITFIELD(
   1.479 +                Reserved32,
   1.480 +                Reserved33,
   1.481 +                Reserved34,
   1.482 +                Reserved35,
   1.483 +                Reserved36,
   1.484 +                Reserved37,
   1.485 +                Reserved38,
   1.486 +                Reserved39)
   1.487 +        } field;
   1.488 +        struct Raw {
   1.489 +            struct l0 {
   1.490 +                static const SK_OT_ULONG Latin1_1252Mask = SkOTSetULONGBit<0>::value;
   1.491 +                static const SK_OT_ULONG Latin2EasternEurope_1250Mask = SkOTSetULONGBit<1>::value;
   1.492 +                static const SK_OT_ULONG Cyrillic_1251Mask = SkOTSetULONGBit<2>::value;
   1.493 +                static const SK_OT_ULONG Greek_1253Mask = SkOTSetULONGBit<3>::value;
   1.494 +                static const SK_OT_ULONG Turkish_1254Mask = SkOTSetULONGBit<4>::value;
   1.495 +                static const SK_OT_ULONG Hebrew_1255Mask = SkOTSetULONGBit<5>::value;
   1.496 +                static const SK_OT_ULONG Arabic_1256Mask = SkOTSetULONGBit<6>::value;
   1.497 +                static const SK_OT_ULONG WindowsBaltic_1257Mask = SkOTSetULONGBit<7>::value;
   1.498 +                static const SK_OT_ULONG Vietnamese_1258Mask = SkOTSetULONGBit<8>::value;
   1.499 +                static const SK_OT_ULONG Thai_874Mask = SkOTSetULONGBit<16>::value;
   1.500 +                static const SK_OT_ULONG JISJapan_932Mask = SkOTSetULONGBit<17>::value;
   1.501 +                static const SK_OT_ULONG ChineseSimplified_936Mask = SkOTSetULONGBit<18>::value;
   1.502 +                static const SK_OT_ULONG KoreanWansung_949Mask = SkOTSetULONGBit<19>::value;
   1.503 +                static const SK_OT_ULONG ChineseTraditional_950Mask = SkOTSetULONGBit<20>::value;
   1.504 +                static const SK_OT_ULONG KoreanJohab_1361Mask = SkOTSetULONGBit<21>::value;
   1.505 +                static const SK_OT_ULONG MacintoshCharacterSetMask = SkOTSetULONGBit<29>::value;
   1.506 +                static const SK_OT_ULONG OEMCharacterSetMask = SkOTSetULONGBit<30>::value;
   1.507 +                static const SK_OT_ULONG SymbolCharacterSetMask = SkOTSetULONGBit<31>::value;
   1.508 +            };
   1.509 +            struct l1 {
   1.510 +                static const SK_OT_ULONG IBMGreek_869Mask = SkOTSetULONGBit<48 - 32>::value;
   1.511 +                static const SK_OT_ULONG MSDOSRussian_866Mask = SkOTSetULONGBit<49 - 32>::value;
   1.512 +                static const SK_OT_ULONG MSDOSNordic_865Mask = SkOTSetULONGBit<50 - 32>::value;
   1.513 +                static const SK_OT_ULONG Arabic_864Mask = SkOTSetULONGBit<51 - 32>::value;
   1.514 +                static const SK_OT_ULONG MSDOSCanadianFrench_863Mask = SkOTSetULONGBit<52 - 32>::value;
   1.515 +                static const SK_OT_ULONG Hebrew_862Mask = SkOTSetULONGBit<53 - 32>::value;
   1.516 +                static const SK_OT_ULONG MSDOSIcelandic_861Mask = SkOTSetULONGBit<54 - 32>::value;
   1.517 +                static const SK_OT_ULONG MSDOSPortuguese_860Mask = SkOTSetULONGBit<55 - 32>::value;
   1.518 +                static const SK_OT_ULONG IBMTurkish_857Mask = SkOTSetULONGBit<56 - 32>::value;
   1.519 +                static const SK_OT_ULONG IBMCyrillic_855Mask = SkOTSetULONGBit<57 - 32>::value;
   1.520 +                static const SK_OT_ULONG Latin2_852Mask = SkOTSetULONGBit<58 - 32>::value;
   1.521 +                static const SK_OT_ULONG MSDOSBaltic_775Mask = SkOTSetULONGBit<59 - 32>::value;
   1.522 +                static const SK_OT_ULONG Greek_737Mask = SkOTSetULONGBit<60 - 32>::value;
   1.523 +                static const SK_OT_ULONG Arabic_708Mask = SkOTSetULONGBit<61 - 32>::value;
   1.524 +                static const SK_OT_ULONG WELatin1_850Mask = SkOTSetULONGBit<62 - 32>::value;
   1.525 +                static const SK_OT_ULONG US_437Mask = SkOTSetULONGBit<63 - 32>::value;
   1.526 +            };
   1.527 +            SK_OT_ULONG value[2];
   1.528 +        } raw;
   1.529 +    } ulCodePageRange;
   1.530 +    //version2
   1.531 +    SK_OT_SHORT sxHeight;
   1.532 +    SK_OT_SHORT sCapHeight;
   1.533 +    SK_OT_USHORT usDefaultChar;
   1.534 +    SK_OT_USHORT usBreakChar;
   1.535 +    SK_OT_USHORT usMaxContext;
   1.536 +};
   1.537 +
   1.538 +#pragma pack(pop)
   1.539 +
   1.540 +
   1.541 +SK_COMPILE_ASSERT(sizeof(SkOTTableOS2_V2) == 96, sizeof_SkOTTableOS2_V2_not_96);
   1.542 +
   1.543 +#endif

mercurial