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