Flutter Engine
The Flutter Engine
third_party
skia
src
sfnt
SkOTTable_hhea.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_hhea_DEFINED
9
#define SkOTTable_hhea_DEFINED
10
11
#include "
src/base/SkEndian.h
"
12
#include "
src/sfnt/SkOTTableTypes.h
"
13
14
#pragma pack(push, 1)
15
16
struct
SkOTTableHorizontalHeader
{
17
static
const
SK_OT_CHAR
TAG0
=
'h'
;
18
static
const
SK_OT_CHAR
TAG1
=
'h'
;
19
static
const
SK_OT_CHAR
TAG2
=
'e'
;
20
static
const
SK_OT_CHAR
TAG3
=
'a'
;
21
static
const
SK_OT_ULONG
TAG
=
SkOTTableTAG<SkOTTableHorizontalHeader>::value
;
22
23
SK_OT_Fixed
version
;
24
static
const
SK_OT_Fixed
version1
=
SkTEndian_SwapBE32
(0x00010000);
25
SK_OT_FWORD
Ascender
;
26
SK_OT_FWORD
Descender
;
27
SK_OT_FWORD
LineGap
;
28
SK_OT_UFWORD
advanceWidthMax
;
29
SK_OT_FWORD
minLeftSideBearing
;
30
SK_OT_FWORD
minRightSideBearing
;
31
SK_OT_FWORD
xMaxExtent
;
32
SK_OT_SHORT
caretSlopeRise
;
33
SK_OT_SHORT
caretSlopeRun
;
34
SK_OT_SHORT
caretOffset
;
35
SK_OT_SHORT
Reserved24
;
36
SK_OT_SHORT
Reserved26
;
37
SK_OT_SHORT
Reserved28
;
38
SK_OT_SHORT
Reserved30
;
39
struct
MetricDataFormat
{
40
enum
Value
:
SK_OT_SHORT
{
41
CurrentFormat
=
SkTEndian_SwapBE16
(0),
42
}
value
;
43
}
metricDataFormat
;
44
SK_OT_USHORT
numberOfHMetrics
;
45
};
46
47
#pragma pack(pop)
48
49
50
#include <stddef.h>
51
static_assert
(offsetof(
SkOTTableHorizontalHeader
, numberOfHMetrics) == 34,
"SkOTTableHorizontalHeader_numberOfHMetrics_not_at_34"
);
52
static_assert
(
sizeof
(
SkOTTableHorizontalHeader
) == 36,
"sizeof_SkOTTableHorizontalHeader_not_36"
);
53
54
#endif
SkEndian.h
SkTEndian_SwapBE32
#define SkTEndian_SwapBE32(n)
Definition:
SkEndian.h:143
SkTEndian_SwapBE16
#define SkTEndian_SwapBE16(n)
Definition:
SkEndian.h:142
SkOTTableTypes.h
SK_OT_USHORT
uint16_t SK_OT_USHORT
Definition:
SkOTTableTypes.h:22
SK_OT_ULONG
uint32_t SK_OT_ULONG
Definition:
SkOTTableTypes.h:23
SK_OT_CHAR
int8_t SK_OT_CHAR
Definition:
SkOTTableTypes.h:19
SK_OT_SHORT
uint16_t SK_OT_SHORT
Definition:
SkOTTableTypes.h:21
SK_OT_Fixed
int32_t SK_OT_Fixed
Definition:
SkOTTableTypes.h:26
SK_OT_FWORD
uint16_t SK_OT_FWORD
Definition:
SkOTTableTypes.h:30
SK_OT_UFWORD
uint16_t SK_OT_UFWORD
Definition:
SkOTTableTypes.h:31
SkOTTableTAG
Definition:
SkOTTableTypes.h:37
SkOTTableHorizontalHeader::MetricDataFormat
Definition:
SkOTTable_hhea.h:39
SkOTTableHorizontalHeader::MetricDataFormat::Value
Value
Definition:
SkOTTable_hhea.h:40
SkOTTableHorizontalHeader::MetricDataFormat::CurrentFormat
@ CurrentFormat
Definition:
SkOTTable_hhea.h:41
SkOTTableHorizontalHeader::MetricDataFormat::value
enum SkOTTableHorizontalHeader::MetricDataFormat::Value value
SkOTTableHorizontalHeader
Definition:
SkOTTable_hhea.h:16
SkOTTableHorizontalHeader::version
SK_OT_Fixed version
Definition:
SkOTTable_hhea.h:23
SkOTTableHorizontalHeader::Reserved30
SK_OT_SHORT Reserved30
Definition:
SkOTTable_hhea.h:38
SkOTTableHorizontalHeader::caretOffset
SK_OT_SHORT caretOffset
Definition:
SkOTTable_hhea.h:34
SkOTTableHorizontalHeader::xMaxExtent
SK_OT_FWORD xMaxExtent
Definition:
SkOTTable_hhea.h:31
SkOTTableHorizontalHeader::TAG0
static const SK_OT_CHAR TAG0
Definition:
SkOTTable_hhea.h:17
SkOTTableHorizontalHeader::Descender
SK_OT_FWORD Descender
Definition:
SkOTTable_hhea.h:26
SkOTTableHorizontalHeader::minLeftSideBearing
SK_OT_FWORD minLeftSideBearing
Definition:
SkOTTable_hhea.h:29
SkOTTableHorizontalHeader::minRightSideBearing
SK_OT_FWORD minRightSideBearing
Definition:
SkOTTable_hhea.h:30
SkOTTableHorizontalHeader::advanceWidthMax
SK_OT_UFWORD advanceWidthMax
Definition:
SkOTTable_hhea.h:28
SkOTTableHorizontalHeader::Reserved24
SK_OT_SHORT Reserved24
Definition:
SkOTTable_hhea.h:35
SkOTTableHorizontalHeader::TAG3
static const SK_OT_CHAR TAG3
Definition:
SkOTTable_hhea.h:20
SkOTTableHorizontalHeader::numberOfHMetrics
SK_OT_USHORT numberOfHMetrics
Definition:
SkOTTable_hhea.h:44
SkOTTableHorizontalHeader::TAG2
static const SK_OT_CHAR TAG2
Definition:
SkOTTable_hhea.h:19
SkOTTableHorizontalHeader::caretSlopeRun
SK_OT_SHORT caretSlopeRun
Definition:
SkOTTable_hhea.h:33
SkOTTableHorizontalHeader::caretSlopeRise
SK_OT_SHORT caretSlopeRise
Definition:
SkOTTable_hhea.h:32
SkOTTableHorizontalHeader::metricDataFormat
struct SkOTTableHorizontalHeader::MetricDataFormat metricDataFormat
SkOTTableHorizontalHeader::Ascender
SK_OT_FWORD Ascender
Definition:
SkOTTable_hhea.h:25
SkOTTableHorizontalHeader::Reserved26
SK_OT_SHORT Reserved26
Definition:
SkOTTable_hhea.h:36
SkOTTableHorizontalHeader::LineGap
SK_OT_FWORD LineGap
Definition:
SkOTTable_hhea.h:27
SkOTTableHorizontalHeader::TAG1
static const SK_OT_CHAR TAG1
Definition:
SkOTTable_hhea.h:18
SkOTTableHorizontalHeader::Reserved28
SK_OT_SHORT Reserved28
Definition:
SkOTTable_hhea.h:37
SkOTTableHorizontalHeader::version1
static const SK_OT_Fixed version1
Definition:
SkOTTable_hhea.h:24
SkOTTableHorizontalHeader::TAG
static const SK_OT_ULONG TAG
Definition:
SkOTTable_hhea.h:21
Generated on Sun Jun 23 2024 21:56:32 for Flutter Engine by
1.9.4