Flutter Engine
The Flutter Engine
SkOTTable_fvar.h
Go to the documentation of this file.
1/*
2 * Copyright 2017 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_fvar_DEFINED
9#define SkOTTable_fvar_DEFINED
10
11#include "src/base/SkEndian.h"
13
14#pragma pack(push, 1)
15
17 static const SK_OT_CHAR TAG0 = 'f';
18 static const SK_OT_CHAR TAG1 = 'v';
19 static const SK_OT_CHAR TAG2 = 'a';
20 static const SK_OT_CHAR TAG3 = 'r';
22
28 SK_OT_USHORT axisSize; // Must be 0x0014 in v1.0
30 SK_OT_USHORT instanceSize; // Must be axisCount * sizeof(Fixed) + (4 | 6)
31
37 SK_OT_USHORT flags; // Must be 0
39 }; // axes[axisCount];
40
41 template <size_t AxisCount> struct InstanceRecord {
43 SK_OT_USHORT flags; // Must be 0
46 }; // instances[instanceCount];
47};
48
49#pragma pack(pop)
50
51
52#include <stddef.h>
53static_assert(offsetof(SkOTTableFontVariations, instanceSize) == 14, "SkOTTableFontVariations_instanceSize_not_at_14");
54static_assert(sizeof(SkOTTableFontVariations) == 16, "sizeof_SkOTTableFontVariations_not_16");
55
56#endif
uint16_t SK_OT_USHORT
uint32_t SK_OT_ULONG
int8_t SK_OT_CHAR
int32_t SK_OT_Fixed
SK_OT_USHORT instanceCount
static const SK_OT_CHAR TAG1
SK_OT_USHORT offsetToAxesArray
static const SK_OT_CHAR TAG2
static const SK_OT_ULONG TAG
static const SK_OT_CHAR TAG0
static const SK_OT_CHAR TAG3