Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright 2012 Google Inc. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license that can be |
michael@0 | 5 | * found in the LICENSE file. |
michael@0 | 6 | */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef SkPanose_DEFINED |
michael@0 | 9 | #define SkPanose_DEFINED |
michael@0 | 10 | |
michael@0 | 11 | #include "SkOTTableTypes.h" |
michael@0 | 12 | #include "SkTypedEnum.h" |
michael@0 | 13 | |
michael@0 | 14 | #pragma pack(push, 1) |
michael@0 | 15 | |
michael@0 | 16 | struct SkPanose { |
michael@0 | 17 | //This value changes the meaning of the following 9 bytes. |
michael@0 | 18 | struct FamilyType { |
michael@0 | 19 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 20 | ((Any, 0)) |
michael@0 | 21 | ((NoFit, 1)) |
michael@0 | 22 | ((TextAndDisplay, 2)) |
michael@0 | 23 | ((Script, 3)) |
michael@0 | 24 | ((Decorative, 4)) |
michael@0 | 25 | ((Pictoral, 5)) |
michael@0 | 26 | SK_SEQ_END, |
michael@0 | 27 | (value)SK_SEQ_END) |
michael@0 | 28 | } bFamilyType; |
michael@0 | 29 | |
michael@0 | 30 | union Data { |
michael@0 | 31 | struct TextAndDisplay { |
michael@0 | 32 | struct SerifStyle { |
michael@0 | 33 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 34 | ((Any, 0)) |
michael@0 | 35 | ((NoFit, 1)) |
michael@0 | 36 | ((Cove, 2)) |
michael@0 | 37 | ((ObtuseCove, 3)) |
michael@0 | 38 | ((SquareCove, 4)) |
michael@0 | 39 | ((ObtuseSquareCove, 5)) |
michael@0 | 40 | ((Square, 6)) |
michael@0 | 41 | ((Thin, 7)) |
michael@0 | 42 | ((Bone, 8)) |
michael@0 | 43 | ((Exaggerated, 9)) |
michael@0 | 44 | ((Triangle, 10)) |
michael@0 | 45 | ((NormalSans, 11)) |
michael@0 | 46 | ((ObtuseSans, 12)) |
michael@0 | 47 | ((PerpSans, 13)) |
michael@0 | 48 | ((Flared, 14)) |
michael@0 | 49 | ((Rounded, 15)) |
michael@0 | 50 | SK_SEQ_END, |
michael@0 | 51 | (value)SK_SEQ_END) |
michael@0 | 52 | } bSerifStyle; |
michael@0 | 53 | |
michael@0 | 54 | struct Weight { |
michael@0 | 55 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 56 | ((Any, 0)) |
michael@0 | 57 | ((NoFit, 1)) |
michael@0 | 58 | ((VeryLight, 2)) |
michael@0 | 59 | ((Light, 3)) |
michael@0 | 60 | ((Thin, 4)) |
michael@0 | 61 | ((Book, 5)) |
michael@0 | 62 | ((Medium, 6)) |
michael@0 | 63 | ((Demi, 7)) |
michael@0 | 64 | ((Bold, 8)) |
michael@0 | 65 | ((Heavy, 9)) |
michael@0 | 66 | ((Black, 10)) |
michael@0 | 67 | ((ExtraBlack, 11)) |
michael@0 | 68 | SK_SEQ_END, |
michael@0 | 69 | (value)SK_SEQ_END) |
michael@0 | 70 | } bWeight; |
michael@0 | 71 | |
michael@0 | 72 | struct Proportion { |
michael@0 | 73 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 74 | ((Any, 0)) |
michael@0 | 75 | ((NoFit, 1)) |
michael@0 | 76 | ((OldStyle, 2)) |
michael@0 | 77 | ((Modern, 3)) |
michael@0 | 78 | ((EvenWidth, 4)) |
michael@0 | 79 | ((Expanded, 5)) |
michael@0 | 80 | ((Condensed, 6)) |
michael@0 | 81 | ((VeryExpanded, 7)) |
michael@0 | 82 | ((VeryCondensed, 8)) |
michael@0 | 83 | ((Monospaced, 9)) |
michael@0 | 84 | SK_SEQ_END, |
michael@0 | 85 | (value)SK_SEQ_END) |
michael@0 | 86 | } bProportion; |
michael@0 | 87 | |
michael@0 | 88 | struct Contrast { |
michael@0 | 89 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 90 | ((Any, 0)) |
michael@0 | 91 | ((NoFit, 1)) |
michael@0 | 92 | ((None, 2)) |
michael@0 | 93 | ((VeryLow, 3)) |
michael@0 | 94 | ((Low, 4)) |
michael@0 | 95 | ((MediumLow, 5)) |
michael@0 | 96 | ((Medium, 6)) |
michael@0 | 97 | ((MediumHigh, 7)) |
michael@0 | 98 | ((High, 8)) |
michael@0 | 99 | ((VeryHigh, 9)) |
michael@0 | 100 | SK_SEQ_END, |
michael@0 | 101 | (value)SK_SEQ_END) |
michael@0 | 102 | } bContrast; |
michael@0 | 103 | |
michael@0 | 104 | #ifdef SK_WIN_PANOSE |
michael@0 | 105 | //This is what Windows (and FontForge and Apple TT spec) define. |
michael@0 | 106 | //The Impact font uses 9. |
michael@0 | 107 | struct StrokeVariation { |
michael@0 | 108 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 109 | ((Any, 0)) |
michael@0 | 110 | ((NoFit, 1)) |
michael@0 | 111 | ((GradualDiagonal, 2)) |
michael@0 | 112 | ((GradualTransitional, 3)) |
michael@0 | 113 | ((GradualVertical, 4)) |
michael@0 | 114 | ((GradualHorizontal, 5)) |
michael@0 | 115 | ((RapidVertical, 6)) |
michael@0 | 116 | ((RapidHorizontal, 7)) |
michael@0 | 117 | ((InstantVertical, 8)) |
michael@0 | 118 | SK_SEQ_END, |
michael@0 | 119 | (value)SK_SEQ_END) |
michael@0 | 120 | } bStrokeVariation; |
michael@0 | 121 | #else |
michael@0 | 122 | //Stroke variation description in OT OS/2 ver0,ver1 is incorrect. |
michael@0 | 123 | //This is what HP Panose says. |
michael@0 | 124 | struct StrokeVariation { |
michael@0 | 125 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 126 | ((Any, 0)) |
michael@0 | 127 | ((NoFit, 1)) |
michael@0 | 128 | ((NoVariation, 2)) |
michael@0 | 129 | ((Gradual_Diagonal, 3)) |
michael@0 | 130 | ((Gradual_Transitional, 4)) |
michael@0 | 131 | ((Gradual_Vertical, 5)) |
michael@0 | 132 | ((Gradual_Horizontal, 6)) |
michael@0 | 133 | ((Rapid_Vertical, 7)) |
michael@0 | 134 | ((Rapid_Horizontal, 8)) |
michael@0 | 135 | ((Instant_Vertical, 9)) |
michael@0 | 136 | ((Instant_Horizontal, 10)) |
michael@0 | 137 | SK_SEQ_END, |
michael@0 | 138 | (value)SK_SEQ_END) |
michael@0 | 139 | } bStrokeVariation; |
michael@0 | 140 | #endif |
michael@0 | 141 | |
michael@0 | 142 | struct ArmStyle { |
michael@0 | 143 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 144 | ((Any, 0)) |
michael@0 | 145 | ((NoFit, 1)) |
michael@0 | 146 | ((StraightArms_Horizontal, 2)) |
michael@0 | 147 | ((StraightArms_Wedge, 3)) |
michael@0 | 148 | ((StraightArms_Vertical, 4)) |
michael@0 | 149 | ((StraightArms_SingleSerif, 5)) |
michael@0 | 150 | ((StraightArms_DoubleSerif, 6)) |
michael@0 | 151 | ((NonStraightArms_Horizontal, 7)) |
michael@0 | 152 | ((NonStraightArms_Wedge, 8)) |
michael@0 | 153 | ((NonStraightArms_Vertical, 9)) |
michael@0 | 154 | ((NonStraightArms_SingleSerif, 10)) |
michael@0 | 155 | ((NonStraightArms_DoubleSerif, 11)) |
michael@0 | 156 | SK_SEQ_END, |
michael@0 | 157 | (value)SK_SEQ_END) |
michael@0 | 158 | } bArmStyle; |
michael@0 | 159 | |
michael@0 | 160 | struct Letterform { |
michael@0 | 161 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 162 | ((Any, 0)) |
michael@0 | 163 | ((NoFit, 1)) |
michael@0 | 164 | ((Normal_Contact, 2)) |
michael@0 | 165 | ((Normal_Weighted, 3)) |
michael@0 | 166 | ((Normal_Boxed, 4)) |
michael@0 | 167 | ((Normal_Flattened, 5)) |
michael@0 | 168 | ((Normal_Rounded, 6)) |
michael@0 | 169 | ((Normal_OffCenter, 7)) |
michael@0 | 170 | ((Normal_Square, 8)) |
michael@0 | 171 | ((Oblique_Contact, 9)) |
michael@0 | 172 | ((Oblique_Weighted, 10)) |
michael@0 | 173 | ((Oblique_Boxed, 11)) |
michael@0 | 174 | ((Oblique_Flattened, 12)) |
michael@0 | 175 | ((Oblique_Rounded, 13)) |
michael@0 | 176 | ((Oblique_OffCenter, 14)) |
michael@0 | 177 | ((Oblique_Square, 15)) |
michael@0 | 178 | SK_SEQ_END, |
michael@0 | 179 | (value)SK_SEQ_END) |
michael@0 | 180 | } bLetterform; |
michael@0 | 181 | |
michael@0 | 182 | struct Midline { |
michael@0 | 183 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 184 | ((Any, 0)) |
michael@0 | 185 | ((NoFit, 1)) |
michael@0 | 186 | ((Standard_Trimmed, 2)) |
michael@0 | 187 | ((Standard_Pointed, 3)) |
michael@0 | 188 | ((Standard_Serifed, 4)) |
michael@0 | 189 | ((High_Trimmed, 5)) |
michael@0 | 190 | ((High_Pointed, 6)) |
michael@0 | 191 | ((High_Serifed, 7)) |
michael@0 | 192 | ((Constant_Trimmed, 8)) |
michael@0 | 193 | ((Constant_Pointed, 9)) |
michael@0 | 194 | ((Constant_Serifed, 10)) |
michael@0 | 195 | ((Low_Trimmed, 11)) |
michael@0 | 196 | ((Low_Pointed, 12)) |
michael@0 | 197 | ((Low_Serifed, 13)) |
michael@0 | 198 | SK_SEQ_END, |
michael@0 | 199 | (value)SK_SEQ_END) |
michael@0 | 200 | } bMidline; |
michael@0 | 201 | |
michael@0 | 202 | struct XHeight { |
michael@0 | 203 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 204 | ((Any, 0)) |
michael@0 | 205 | ((NoFit, 1)) |
michael@0 | 206 | ((Constant_Small, 2)) |
michael@0 | 207 | ((Constant_Standard, 3)) |
michael@0 | 208 | ((Constant_Large, 4)) |
michael@0 | 209 | ((Ducking_Small, 5)) |
michael@0 | 210 | ((Ducking_Standard, 6)) |
michael@0 | 211 | ((Ducking_Large, 7)) |
michael@0 | 212 | SK_SEQ_END, |
michael@0 | 213 | (value)SK_SEQ_END) |
michael@0 | 214 | } bXHeight; |
michael@0 | 215 | } textAndDisplay; |
michael@0 | 216 | |
michael@0 | 217 | struct Script { |
michael@0 | 218 | struct ToolKind { |
michael@0 | 219 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 220 | ((Any, 0)) |
michael@0 | 221 | ((NoFit, 1)) |
michael@0 | 222 | ((FlatNib, 2)) |
michael@0 | 223 | ((PressurePoint, 3)) |
michael@0 | 224 | ((Engraved, 4)) |
michael@0 | 225 | ((Ball, 5)) |
michael@0 | 226 | ((Brush, 6)) |
michael@0 | 227 | ((Rough, 7)) |
michael@0 | 228 | ((FeltPen, 8)) |
michael@0 | 229 | ((WildBrush, 9)) |
michael@0 | 230 | SK_SEQ_END, |
michael@0 | 231 | (value)SK_SEQ_END) |
michael@0 | 232 | } bToolKind; |
michael@0 | 233 | |
michael@0 | 234 | struct Weight { |
michael@0 | 235 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 236 | ((Any, 0)) |
michael@0 | 237 | ((NoFit, 1)) |
michael@0 | 238 | ((VeryLight, 2)) |
michael@0 | 239 | ((Light, 3)) |
michael@0 | 240 | ((Thin, 4)) |
michael@0 | 241 | ((Book, 5)) |
michael@0 | 242 | ((Medium, 6)) |
michael@0 | 243 | ((Demi, 7)) |
michael@0 | 244 | ((Bold, 8)) |
michael@0 | 245 | ((Heavy, 9)) |
michael@0 | 246 | ((Black, 10)) |
michael@0 | 247 | ((ExtraBlack, 11)) |
michael@0 | 248 | SK_SEQ_END, |
michael@0 | 249 | (value)SK_SEQ_END) |
michael@0 | 250 | } bWeight; |
michael@0 | 251 | |
michael@0 | 252 | struct Spacing { |
michael@0 | 253 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 254 | ((Any, 0)) |
michael@0 | 255 | ((NoFit, 1)) |
michael@0 | 256 | ((ProportionalSpaced, 2)) |
michael@0 | 257 | ((Monospaced, 3)) |
michael@0 | 258 | SK_SEQ_END, |
michael@0 | 259 | (value)SK_SEQ_END) |
michael@0 | 260 | } bSpacing; |
michael@0 | 261 | |
michael@0 | 262 | struct AspectRatio { |
michael@0 | 263 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 264 | ((Any, 0)) |
michael@0 | 265 | ((NoFit, 1)) |
michael@0 | 266 | ((VeryCondensed, 2)) |
michael@0 | 267 | ((Condensed, 3)) |
michael@0 | 268 | ((Normal, 4)) |
michael@0 | 269 | ((Expanded, 5)) |
michael@0 | 270 | ((VeryExpanded, 6)) |
michael@0 | 271 | SK_SEQ_END, |
michael@0 | 272 | (value)SK_SEQ_END) |
michael@0 | 273 | } bAspectRatio; |
michael@0 | 274 | |
michael@0 | 275 | struct Contrast { |
michael@0 | 276 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 277 | ((Any, 0)) |
michael@0 | 278 | ((NoFit, 1)) |
michael@0 | 279 | ((None, 2)) |
michael@0 | 280 | ((VeryLow, 3)) |
michael@0 | 281 | ((Low, 4)) |
michael@0 | 282 | ((MediumLow, 5)) |
michael@0 | 283 | ((Medium, 6)) |
michael@0 | 284 | ((MediumHigh, 7)) |
michael@0 | 285 | ((High, 8)) |
michael@0 | 286 | ((VeryHigh, 9)) |
michael@0 | 287 | SK_SEQ_END, |
michael@0 | 288 | (value)SK_SEQ_END) |
michael@0 | 289 | } bContrast; |
michael@0 | 290 | |
michael@0 | 291 | struct Topology { |
michael@0 | 292 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 293 | ((Any, 0)) |
michael@0 | 294 | ((NoFit, 1)) |
michael@0 | 295 | ((Roman_Disconnected, 2)) |
michael@0 | 296 | ((Roman_Trailing, 3)) |
michael@0 | 297 | ((Roman_Connected, 4)) |
michael@0 | 298 | ((Cursive_Disconnected, 5)) |
michael@0 | 299 | ((Cursive_Trailing, 6)) |
michael@0 | 300 | ((Cursive_Connected, 7)) |
michael@0 | 301 | ((Blackletter_Disconnected, 8)) |
michael@0 | 302 | ((Blackletter_Trailing, 9)) |
michael@0 | 303 | ((Blackletter_Connected, 10)) |
michael@0 | 304 | SK_SEQ_END, |
michael@0 | 305 | (value)SK_SEQ_END) |
michael@0 | 306 | } bTopology; |
michael@0 | 307 | |
michael@0 | 308 | struct Form { |
michael@0 | 309 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 310 | ((Any, 0)) |
michael@0 | 311 | ((NoFit, 1)) |
michael@0 | 312 | ((Upright_NoWrapping, 2)) |
michael@0 | 313 | ((Upright_SomeWrapping, 3)) |
michael@0 | 314 | ((Upright_MoreWrapping, 4)) |
michael@0 | 315 | ((Upright_ExtremeWrapping, 5)) |
michael@0 | 316 | ((Oblique_NoWrapping, 6)) |
michael@0 | 317 | ((Oblique_SomeWrapping, 7)) |
michael@0 | 318 | ((Oblique_MoreWrapping, 8)) |
michael@0 | 319 | ((Oblique_ExtremeWrapping, 9)) |
michael@0 | 320 | ((Exaggerated_NoWrapping, 10)) |
michael@0 | 321 | ((Exaggerated_SomeWrapping, 11)) |
michael@0 | 322 | ((Exaggerated_MoreWrapping, 12)) |
michael@0 | 323 | ((Exaggerated_ExtremeWrapping, 13)) |
michael@0 | 324 | SK_SEQ_END, |
michael@0 | 325 | (value)SK_SEQ_END) |
michael@0 | 326 | } bForm; |
michael@0 | 327 | |
michael@0 | 328 | struct Finials { |
michael@0 | 329 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 330 | ((Any, 0)) |
michael@0 | 331 | ((NoFit, 1)) |
michael@0 | 332 | ((None_NoLoops, 2)) |
michael@0 | 333 | ((None_ClosedLoops, 3)) |
michael@0 | 334 | ((None_OpenLoops, 4)) |
michael@0 | 335 | ((Sharp_NoLoops, 5)) |
michael@0 | 336 | ((Sharp_ClosedLoops, 6)) |
michael@0 | 337 | ((Sharp_OpenLoops, 7)) |
michael@0 | 338 | ((Tapered_NoLoops, 8)) |
michael@0 | 339 | ((Tapered_ClosedLoops, 9)) |
michael@0 | 340 | ((Tapered_OpenLoops, 10)) |
michael@0 | 341 | ((Round_NoLoops, 11)) |
michael@0 | 342 | ((Round_ClosedLoops, 12)) |
michael@0 | 343 | ((Round_OpenLoops, 13)) |
michael@0 | 344 | SK_SEQ_END, |
michael@0 | 345 | (value)SK_SEQ_END) |
michael@0 | 346 | } bFinials; |
michael@0 | 347 | |
michael@0 | 348 | struct XAscent { |
michael@0 | 349 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 350 | ((Any, 0)) |
michael@0 | 351 | ((NoFit, 1)) |
michael@0 | 352 | ((VeryLow, 2)) |
michael@0 | 353 | ((Low, 3)) |
michael@0 | 354 | ((Medium, 4)) |
michael@0 | 355 | ((High, 5)) |
michael@0 | 356 | ((VeryHigh, 6)) |
michael@0 | 357 | SK_SEQ_END, |
michael@0 | 358 | (value)SK_SEQ_END) |
michael@0 | 359 | } bXAscent; |
michael@0 | 360 | } script; |
michael@0 | 361 | |
michael@0 | 362 | struct Decorative { |
michael@0 | 363 | struct Class { |
michael@0 | 364 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 365 | ((Any, 0)) |
michael@0 | 366 | ((NoFit, 1)) |
michael@0 | 367 | ((Derivative, 2)) |
michael@0 | 368 | ((NonStandard_Topology, 3)) |
michael@0 | 369 | ((NonStandard_Elements, 4)) |
michael@0 | 370 | ((NonStandard_Aspect, 5)) |
michael@0 | 371 | ((Initials, 6)) |
michael@0 | 372 | ((Cartoon, 7)) |
michael@0 | 373 | ((PictureStems, 8)) |
michael@0 | 374 | ((Ornamented, 9)) |
michael@0 | 375 | ((TextAndBackground, 10)) |
michael@0 | 376 | ((Collage, 11)) |
michael@0 | 377 | ((Montage, 12)) |
michael@0 | 378 | SK_SEQ_END, |
michael@0 | 379 | (value)SK_SEQ_END) |
michael@0 | 380 | } bClass; |
michael@0 | 381 | |
michael@0 | 382 | struct Weight { |
michael@0 | 383 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 384 | ((Any, 0)) |
michael@0 | 385 | ((NoFit, 1)) |
michael@0 | 386 | ((VeryLight, 2)) |
michael@0 | 387 | ((Light, 3)) |
michael@0 | 388 | ((Thin, 4)) |
michael@0 | 389 | ((Book, 5)) |
michael@0 | 390 | ((Medium, 6)) |
michael@0 | 391 | ((Demi, 7)) |
michael@0 | 392 | ((Bold, 8)) |
michael@0 | 393 | ((Heavy, 9)) |
michael@0 | 394 | ((Black, 10)) |
michael@0 | 395 | ((ExtraBlack, 11)) |
michael@0 | 396 | SK_SEQ_END, |
michael@0 | 397 | (value)SK_SEQ_END) |
michael@0 | 398 | } bWeight; |
michael@0 | 399 | |
michael@0 | 400 | struct Aspect { |
michael@0 | 401 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 402 | ((Any, 0)) |
michael@0 | 403 | ((NoFit, 1)) |
michael@0 | 404 | ((SuperCondensed, 2)) |
michael@0 | 405 | ((VeryCondensed, 3)) |
michael@0 | 406 | ((Condensed, 4)) |
michael@0 | 407 | ((Normal, 5)) |
michael@0 | 408 | ((Extended, 6)) |
michael@0 | 409 | ((VeryExtended, 7)) |
michael@0 | 410 | ((SuperExtended, 8)) |
michael@0 | 411 | ((Monospaced, 9)) |
michael@0 | 412 | SK_SEQ_END, |
michael@0 | 413 | (value)SK_SEQ_END) |
michael@0 | 414 | } bAspect; |
michael@0 | 415 | |
michael@0 | 416 | struct Contrast { |
michael@0 | 417 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 418 | ((Any, 0)) |
michael@0 | 419 | ((NoFit, 1)) |
michael@0 | 420 | ((None, 2)) |
michael@0 | 421 | ((VeryLow, 3)) |
michael@0 | 422 | ((Low, 4)) |
michael@0 | 423 | ((MediumLow, 5)) |
michael@0 | 424 | ((Medium, 6)) |
michael@0 | 425 | ((MediumHigh, 7)) |
michael@0 | 426 | ((High, 8)) |
michael@0 | 427 | ((VeryHigh, 9)) |
michael@0 | 428 | ((HorizontalLow, 10)) |
michael@0 | 429 | ((HorizontalMedium, 11)) |
michael@0 | 430 | ((HorizontalHigh, 12)) |
michael@0 | 431 | ((Broken, 13)) |
michael@0 | 432 | SK_SEQ_END, |
michael@0 | 433 | (value)SK_SEQ_END) |
michael@0 | 434 | } bContrast; |
michael@0 | 435 | |
michael@0 | 436 | struct SerifVariant { |
michael@0 | 437 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 438 | ((Any, 0)) |
michael@0 | 439 | ((NoFit, 1)) |
michael@0 | 440 | ((Cove, 2)) |
michael@0 | 441 | ((ObtuseCove, 3)) |
michael@0 | 442 | ((SquareCove, 4)) |
michael@0 | 443 | ((ObtuseSquareCove, 5)) |
michael@0 | 444 | ((Square, 6)) |
michael@0 | 445 | ((Thin, 7)) |
michael@0 | 446 | ((Oval, 8)) |
michael@0 | 447 | ((Exaggerated, 9)) |
michael@0 | 448 | ((Triangle, 10)) |
michael@0 | 449 | ((NormalSans, 11)) |
michael@0 | 450 | ((ObtuseSans, 12)) |
michael@0 | 451 | ((PerpendicularSans, 13)) |
michael@0 | 452 | ((Flared, 14)) |
michael@0 | 453 | ((Rounded, 15)) |
michael@0 | 454 | ((Script, 16)) |
michael@0 | 455 | SK_SEQ_END, |
michael@0 | 456 | (value)SK_SEQ_END) |
michael@0 | 457 | } bSerifVariant; |
michael@0 | 458 | |
michael@0 | 459 | struct Treatment { |
michael@0 | 460 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 461 | ((Any, 0)) |
michael@0 | 462 | ((NoFit, 1)) |
michael@0 | 463 | ((None_StandardSolidFill, 2)) |
michael@0 | 464 | ((White_NoFill, 3)) |
michael@0 | 465 | ((PatternedFill, 4)) |
michael@0 | 466 | ((ComplexFill, 5)) |
michael@0 | 467 | ((ShapedFill, 6)) |
michael@0 | 468 | ((DrawnDistressed, 7)) |
michael@0 | 469 | SK_SEQ_END, |
michael@0 | 470 | (value)SK_SEQ_END) |
michael@0 | 471 | } bTreatment; |
michael@0 | 472 | |
michael@0 | 473 | struct Lining { |
michael@0 | 474 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 475 | ((Any, 0)) |
michael@0 | 476 | ((NoFit, 1)) |
michael@0 | 477 | ((None, 2)) |
michael@0 | 478 | ((Inline, 3)) |
michael@0 | 479 | ((Outline, 4)) |
michael@0 | 480 | ((Engraved, 5)) |
michael@0 | 481 | ((Shadow, 6)) |
michael@0 | 482 | ((Relief, 7)) |
michael@0 | 483 | ((Backdrop, 8)) |
michael@0 | 484 | SK_SEQ_END, |
michael@0 | 485 | (value)SK_SEQ_END) |
michael@0 | 486 | } bLining; |
michael@0 | 487 | |
michael@0 | 488 | struct Topology { |
michael@0 | 489 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 490 | ((Any, 0)) |
michael@0 | 491 | ((NoFit, 1)) |
michael@0 | 492 | ((Standard, 2)) |
michael@0 | 493 | ((Square, 3)) |
michael@0 | 494 | ((MultipleSegment, 4)) |
michael@0 | 495 | ((DecoWacoMidlines, 5)) |
michael@0 | 496 | ((UnevenWeighting, 6)) |
michael@0 | 497 | ((DiverseArms, 7)) |
michael@0 | 498 | ((DiverseForms, 8)) |
michael@0 | 499 | ((LombardicForms, 9)) |
michael@0 | 500 | ((UpperCaseInLowerCase, 10)) |
michael@0 | 501 | ((ImpliedTopology, 11)) |
michael@0 | 502 | ((HorseshoeEandA, 12)) |
michael@0 | 503 | ((Cursive, 13)) |
michael@0 | 504 | ((Blackletter, 14)) |
michael@0 | 505 | ((SwashVariance, 15)) |
michael@0 | 506 | SK_SEQ_END, |
michael@0 | 507 | (value)SK_SEQ_END) |
michael@0 | 508 | } bTopology; |
michael@0 | 509 | |
michael@0 | 510 | struct RangeOfCharacters { |
michael@0 | 511 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 512 | ((Any, 0)) |
michael@0 | 513 | ((NoFit, 1)) |
michael@0 | 514 | ((ExtendedCollection, 2)) |
michael@0 | 515 | ((Litterals, 3)) |
michael@0 | 516 | ((NoLowerCase, 4)) |
michael@0 | 517 | ((SmallCaps, 5)) |
michael@0 | 518 | SK_SEQ_END, |
michael@0 | 519 | (value)SK_SEQ_END) |
michael@0 | 520 | } bRangeOfCharacters; |
michael@0 | 521 | } decorative; |
michael@0 | 522 | |
michael@0 | 523 | struct Pictoral { |
michael@0 | 524 | struct Kind { |
michael@0 | 525 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 526 | ((Any, 0)) |
michael@0 | 527 | ((NoFit, 1)) |
michael@0 | 528 | ((Montages, 2)) |
michael@0 | 529 | ((Pictures, 3)) |
michael@0 | 530 | ((Shapes, 4)) |
michael@0 | 531 | ((Scientific, 5)) |
michael@0 | 532 | ((Music, 6)) |
michael@0 | 533 | ((Expert, 7)) |
michael@0 | 534 | ((Patterns, 8)) |
michael@0 | 535 | ((Boarders, 9)) |
michael@0 | 536 | ((Icons, 10)) |
michael@0 | 537 | ((Logos, 11)) |
michael@0 | 538 | ((IndustrySpecific, 12)) |
michael@0 | 539 | SK_SEQ_END, |
michael@0 | 540 | (value)SK_SEQ_END) |
michael@0 | 541 | } bKind; |
michael@0 | 542 | |
michael@0 | 543 | struct Weight { |
michael@0 | 544 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 545 | ((NoFit, 1)) |
michael@0 | 546 | SK_SEQ_END, |
michael@0 | 547 | (value)SK_SEQ_END) |
michael@0 | 548 | } bWeight; |
michael@0 | 549 | |
michael@0 | 550 | struct Spacing { |
michael@0 | 551 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 552 | ((Any, 0)) |
michael@0 | 553 | ((NoFit, 1)) |
michael@0 | 554 | ((ProportionalSpaced, 2)) |
michael@0 | 555 | ((Monospaced, 3)) |
michael@0 | 556 | SK_SEQ_END, |
michael@0 | 557 | (value)SK_SEQ_END) |
michael@0 | 558 | } bSpacing; |
michael@0 | 559 | |
michael@0 | 560 | struct AspectRatioAndContrast { |
michael@0 | 561 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 562 | ((NoFit, 1)) |
michael@0 | 563 | SK_SEQ_END, |
michael@0 | 564 | (value)SK_SEQ_END) |
michael@0 | 565 | } bAspectRatioAndContrast; |
michael@0 | 566 | |
michael@0 | 567 | struct AspectRatio94 { |
michael@0 | 568 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 569 | ((Any, 0)) |
michael@0 | 570 | ((NoFit, 1)) |
michael@0 | 571 | ((NoWidth, 2)) |
michael@0 | 572 | ((ExceptionallyWide, 3)) |
michael@0 | 573 | ((SuperWide, 4)) |
michael@0 | 574 | ((VeryWide, 5)) |
michael@0 | 575 | ((Wide, 6)) |
michael@0 | 576 | ((Normal, 7)) |
michael@0 | 577 | ((Narrow, 8)) |
michael@0 | 578 | ((VeryNarrow, 9)) |
michael@0 | 579 | SK_SEQ_END, |
michael@0 | 580 | (value)SK_SEQ_END) |
michael@0 | 581 | } bAspectRatio94; |
michael@0 | 582 | |
michael@0 | 583 | struct AspectRatio119 { |
michael@0 | 584 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 585 | ((Any, 0)) |
michael@0 | 586 | ((NoFit, 1)) |
michael@0 | 587 | ((NoWidth, 2)) |
michael@0 | 588 | ((ExceptionallyWide, 3)) |
michael@0 | 589 | ((SuperWide, 4)) |
michael@0 | 590 | ((VeryWide, 5)) |
michael@0 | 591 | ((Wide, 6)) |
michael@0 | 592 | ((Normal, 7)) |
michael@0 | 593 | ((Narrow, 8)) |
michael@0 | 594 | ((VeryNarrow, 9)) |
michael@0 | 595 | SK_SEQ_END, |
michael@0 | 596 | (value)SK_SEQ_END) |
michael@0 | 597 | } bAspectRatio119; |
michael@0 | 598 | |
michael@0 | 599 | struct AspectRatio157 { |
michael@0 | 600 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 601 | ((Any, 0)) |
michael@0 | 602 | ((NoFit, 1)) |
michael@0 | 603 | ((NoWidth, 2)) |
michael@0 | 604 | ((ExceptionallyWide, 3)) |
michael@0 | 605 | ((SuperWide, 4)) |
michael@0 | 606 | ((VeryWide, 5)) |
michael@0 | 607 | ((Wide, 6)) |
michael@0 | 608 | ((Normal, 7)) |
michael@0 | 609 | ((Narrow, 8)) |
michael@0 | 610 | ((VeryNarrow, 9)) |
michael@0 | 611 | SK_SEQ_END, |
michael@0 | 612 | (value)SK_SEQ_END) |
michael@0 | 613 | } bAspectRatio157; |
michael@0 | 614 | |
michael@0 | 615 | struct AspectRatio163 { |
michael@0 | 616 | SK_TYPED_ENUM(Value, SK_OT_BYTE, |
michael@0 | 617 | ((Any, 0)) |
michael@0 | 618 | ((NoFit, 1)) |
michael@0 | 619 | ((NoWidth, 2)) |
michael@0 | 620 | ((ExceptionallyWide, 3)) |
michael@0 | 621 | ((SuperWide, 4)) |
michael@0 | 622 | ((VeryWide, 5)) |
michael@0 | 623 | ((Wide, 6)) |
michael@0 | 624 | ((Normal, 7)) |
michael@0 | 625 | ((Narrow, 8)) |
michael@0 | 626 | ((VeryNarrow, 9)) |
michael@0 | 627 | SK_SEQ_END, |
michael@0 | 628 | (value)SK_SEQ_END) |
michael@0 | 629 | } bAspectRatio163; |
michael@0 | 630 | } pictoral; |
michael@0 | 631 | } data; |
michael@0 | 632 | }; |
michael@0 | 633 | |
michael@0 | 634 | #pragma pack(pop) |
michael@0 | 635 | |
michael@0 | 636 | |
michael@0 | 637 | SK_COMPILE_ASSERT(sizeof(SkPanose) == 10, sizeof_SkPanose_not_10); |
michael@0 | 638 | |
michael@0 | 639 | #endif |