Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkOTTable_head.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_head_DEFINED
9#define SkOTTable_head_DEFINED
10
11#include "src/base/SkEndian.h"
13
14#pragma pack(push, 1)
15
17 static const SK_OT_CHAR TAG0 = 'h';
18 static const SK_OT_CHAR TAG1 = 'e';
19 static const SK_OT_CHAR TAG2 = 'a';
20 static const SK_OT_CHAR TAG3 = 'd';
22
24 static const SK_OT_Fixed version1 = SkTEndian_SwapBE32(0x00010000);
26 static const uint32_t fontChecksum = 0xB1B0AFBA; //checksum of all TT fonts
30 union Flags {
31 struct Field {
32 //8-15
34 GXMetamorphosis_Apple,
35 HasStrongRTL_Apple,
36 HasIndicStyleRearrangement,
37 AgfaMicroTypeExpressProcessed,
38 FontConverted,
39 DesignedForClearType,
40 LastResort,
41 Reserved15)
42 //0-7
44 BaselineAtY0,
51 RequiresLayout_Apple)
81 union MacStyle {
82 struct Field {
83 //8-15
85 Reserved08,
86 Reserved09,
87 Reserved10,
88 Reserved11,
89 Reserved12,
90 Reserved13,
91 Reserved14,
92 Reserved15)
93 //0-7
95 Bold,
102 Reserved07)
137};
138
139#pragma pack(pop)
140
141
142#include <stddef.h>
143static_assert(offsetof(SkOTTableHead, glyphDataFormat) == 52, "SkOTTableHead_glyphDataFormat_not_at_52");
144static_assert(sizeof(SkOTTableHead) == 54, "sizeof_SkOTTableHead_not_54");
145
146#endif
#define SkTEndian_SwapBE32(n)
Definition SkEndian.h:143
#define SkTEndian_SwapBE16(n)
Definition SkEndian.h:142
uint16_t SK_OT_USHORT
uint32_t SK_OT_ULONG
int8_t SK_OT_CHAR
uint16_t SK_OT_SHORT
int32_t SK_OT_Fixed
uint64_t SK_OT_LONGDATETIME
#define SK_OT_BYTE_BITFIELD
SK_OT_BYTE_BITFIELD(GXMetamorphosis_Apple, HasStrongRTL_Apple, HasIndicStyleRearrangement, AgfaMicroTypeExpressProcessed, FontConverted, DesignedForClearType, LastResort, Reserved15) SK_OT_BYTE_BITFIELD(BaselineAtY0
static const SK_OT_USHORT IntegerScalingMask
static const SK_OT_USHORT InstructionsAlterAdvanceWidthMask
static const SK_OT_USHORT HasIndicStyleRearrangementMask
static const SK_OT_USHORT LeftSidebearingAtX0Mask
static const SK_OT_USHORT VerticalCenteredGlyphs_AppleMask
static const SK_OT_USHORT FontConvertedMask
static const SK_OT_USHORT DesignedForClearTypeMask
static const SK_OT_USHORT AgfaMicroTypeExpressProcessedMask
static const SK_OT_USHORT LastResortMask
static const SK_OT_USHORT RequiresLayout_AppleMask
static const SK_OT_USHORT GXMetamorphosis_AppleMask
static const SK_OT_USHORT BaselineAtY0Mask
static const SK_OT_USHORT HasStrongRTL_AppleMask
static const SK_OT_USHORT InstructionsDependOnPointSizeMask
enum SkOTTableHead::FontDirectionHint::Value value
enum SkOTTableHead::GlyphDataFormat::Value value
enum SkOTTableHead::IndexToLocFormat::Value value
SK_OT_BYTE_BITFIELD(Reserved08, Reserved09, Reserved10, Reserved11, Reserved12, Reserved13, Reserved14, Reserved15) SK_OT_BYTE_BITFIELD(Bold
static const SK_OT_USHORT OutlineMask
static const SK_OT_USHORT BoldMask
static const SK_OT_USHORT ExtendedMask
static const SK_OT_USHORT UnderlineMask
static const SK_OT_USHORT ItalicMask
static const SK_OT_USHORT CondensedMask
static const SK_OT_USHORT ShadowMask
struct SkOTTableHead::IndexToLocFormat indexToLocFormat
SK_OT_SHORT xMax
SK_OT_SHORT yMax
SK_OT_ULONG checksumAdjustment
SK_OT_Fixed fontRevision
static const SK_OT_ULONG TAG
SK_OT_USHORT lowestRecPPEM
SK_OT_ULONG magicNumber
SK_OT_SHORT yMin
struct SkOTTableHead::FontDirectionHint fontDirectionHint
SK_OT_Fixed version
union SkOTTableHead::Flags flags
static const SK_OT_CHAR TAG2
static const SK_OT_Fixed version1
union SkOTTableHead::MacStyle macStyle
static const SK_OT_CHAR TAG1
SK_OT_LONGDATETIME modified
SK_OT_SHORT xMin
struct SkOTTableHead::GlyphDataFormat glyphDataFormat
SK_OT_USHORT unitsPerEm
static const SK_OT_CHAR TAG3
SK_OT_LONGDATETIME created
static const uint32_t fontChecksum
static const SK_OT_ULONG magicNumberConst
static const SK_OT_CHAR TAG0
struct SkOTTableHead::Flags::Raw raw
struct SkOTTableHead::Flags::Field field
struct SkOTTableHead::MacStyle::Field field
struct SkOTTableHead::MacStyle::Raw raw