Flutter Engine
The Flutter Engine
SkOTTable_OS_2.h
Go to the documentation of this file.
1/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkOTTable_OS_2_DEFINED
9#define SkOTTable_OS_2_DEFINED
10
17
18#pragma pack(push, 1)
19
21 inline static constexpr SK_OT_CHAR TAG0 = 'O';
22 inline static constexpr SK_OT_CHAR TAG1 = 'S';
23 inline static constexpr SK_OT_CHAR TAG2 = '/';
24 inline static constexpr SK_OT_CHAR TAG3 = '2';
26
27 union Version {
29
30 //original V0 TT
31 struct VA : SkOTTableOS2_VA { } vA;
32 struct V0 : SkOTTableOS2_V0 { } v0;
33 struct V1 : SkOTTableOS2_V1 { } v1;
34 struct V2 : SkOTTableOS2_V2 { } v2;
35 //makes fsType 0-3 exclusive
36 struct V3 : SkOTTableOS2_V3 { } v3;
37 //defines fsSelection bits 7-9
38 struct V4 : SkOTTableOS2_V4 { } v4;
40};
41
42#pragma pack(pop)
43
44
45static_assert(sizeof(SkOTTableOS2::Version::VA) == 68, "sizeof_SkOTTableOS2__VA_not_68");
46static_assert(sizeof(SkOTTableOS2::Version::V0) == 78, "sizeof_SkOTTableOS2__V0_not_78");
47static_assert(sizeof(SkOTTableOS2::Version::V1) == 86, "sizeof_SkOTTableOS2__V1_not_86");
48static_assert(sizeof(SkOTTableOS2::Version::V2) == 96, "sizeof_SkOTTableOS2__V2_not_96");
49static_assert(sizeof(SkOTTableOS2::Version::V3) == 96, "sizeof_SkOTTableOS2__V3_not_96");
50static_assert(sizeof(SkOTTableOS2::Version::V4) == 96, "sizeof_SkOTTableOS2__V4_not_96");
51
52#endif
uint16_t SK_OT_USHORT
uint32_t SK_OT_ULONG
int8_t SK_OT_CHAR
static constexpr SK_OT_CHAR TAG0
static constexpr SK_OT_CHAR TAG1
static constexpr SK_OT_ULONG TAG
static constexpr SK_OT_CHAR TAG2
union SkOTTableOS2::Version version
static constexpr SK_OT_CHAR TAG3
SkOTTableOS2::Version::V0 v0
SkOTTableOS2::Version::V1 v1
SkOTTableOS2::Version::V4 v4
SkOTTableOS2::Version::V3 v3
SkOTTableOS2::Version::VA vA
SkOTTableOS2::Version::V2 v2