Flutter Engine
The Flutter Engine
third_party
skia
src
sfnt
SkOTTable_post.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_post_DEFINED
9
#define SkOTTable_post_DEFINED
10
11
#include "
src/base/SkEndian.h
"
12
#include "
src/sfnt/SkOTTableTypes.h
"
13
14
#pragma pack(push, 1)
15
16
struct
SkOTTablePostScript
{
17
static
const
SK_OT_CHAR
TAG0
=
'p'
;
18
static
const
SK_OT_CHAR
TAG1
=
'o'
;
19
static
const
SK_OT_CHAR
TAG2
=
's'
;
20
static
const
SK_OT_CHAR
TAG3
=
't'
;
21
static
const
SK_OT_ULONG
TAG
=
SkOTTableTAG<SkOTTablePostScript>::value
;
22
23
struct
Format
{
24
enum
Value
:
SK_OT_Fixed
{
25
version1
=
SkTEndian_SwapBE32
(0x00010000),
26
version2
=
SkTEndian_SwapBE32
(0x00020000),
27
version2_5
=
SkTEndian_SwapBE32
(0x00025000),
28
version3
=
SkTEndian_SwapBE32
(0x00030000),
29
version4
=
SkTEndian_SwapBE32
(0x00040000),
30
};
31
SK_OT_Fixed
value
;
32
}
format
;
33
SK_OT_Fixed
italicAngle
;
34
SK_OT_FWORD
underlinePosition
;
35
SK_OT_FWORD
underlineThickness
;
36
SK_OT_ULONG
isFixedPitch
;
37
SK_OT_ULONG
minMemType42
;
38
SK_OT_ULONG
maxMemType42
;
39
SK_OT_ULONG
minMemType1
;
40
SK_OT_ULONG
maxMemType1
;
41
};
42
43
#pragma pack(pop)
44
45
46
#include <stddef.h>
47
static_assert
(offsetof(
SkOTTablePostScript
, maxMemType1) == 28,
"SkOTTablePostScript_maxMemType1_not_at_28"
);
48
static_assert
(
sizeof
(
SkOTTablePostScript
) == 32,
"sizeof_SkOTTablePostScript_not_32"
);
49
50
#endif
SkEndian.h
SkTEndian_SwapBE32
#define SkTEndian_SwapBE32(n)
Definition:
SkEndian.h:143
SkOTTableTypes.h
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_Fixed
int32_t SK_OT_Fixed
Definition:
SkOTTableTypes.h:26
SK_OT_FWORD
uint16_t SK_OT_FWORD
Definition:
SkOTTableTypes.h:30
SkOTTableTAG
Definition:
SkOTTableTypes.h:37
SkOTTablePostScript::Format
Definition:
SkOTTable_post.h:23
SkOTTablePostScript::Format::Value
Value
Definition:
SkOTTable_post.h:24
SkOTTablePostScript::Format::version3
@ version3
Definition:
SkOTTable_post.h:28
SkOTTablePostScript::Format::version2_5
@ version2_5
Definition:
SkOTTable_post.h:27
SkOTTablePostScript::Format::version2
@ version2
Definition:
SkOTTable_post.h:26
SkOTTablePostScript::Format::version1
@ version1
Definition:
SkOTTable_post.h:25
SkOTTablePostScript::Format::version4
@ version4
Definition:
SkOTTable_post.h:29
SkOTTablePostScript::Format::value
SK_OT_Fixed value
Definition:
SkOTTable_post.h:31
SkOTTablePostScript
Definition:
SkOTTable_post.h:16
SkOTTablePostScript::maxMemType42
SK_OT_ULONG maxMemType42
Definition:
SkOTTable_post.h:38
SkOTTablePostScript::minMemType42
SK_OT_ULONG minMemType42
Definition:
SkOTTable_post.h:37
SkOTTablePostScript::TAG3
static const SK_OT_CHAR TAG3
Definition:
SkOTTable_post.h:20
SkOTTablePostScript::TAG
static const SK_OT_ULONG TAG
Definition:
SkOTTable_post.h:21
SkOTTablePostScript::TAG1
static const SK_OT_CHAR TAG1
Definition:
SkOTTable_post.h:18
SkOTTablePostScript::italicAngle
SK_OT_Fixed italicAngle
Definition:
SkOTTable_post.h:33
SkOTTablePostScript::underlineThickness
SK_OT_FWORD underlineThickness
Definition:
SkOTTable_post.h:35
SkOTTablePostScript::TAG0
static const SK_OT_CHAR TAG0
Definition:
SkOTTable_post.h:17
SkOTTablePostScript::minMemType1
SK_OT_ULONG minMemType1
Definition:
SkOTTable_post.h:39
SkOTTablePostScript::isFixedPitch
SK_OT_ULONG isFixedPitch
Definition:
SkOTTable_post.h:36
SkOTTablePostScript::format
struct SkOTTablePostScript::Format format
SkOTTablePostScript::maxMemType1
SK_OT_ULONG maxMemType1
Definition:
SkOTTable_post.h:40
SkOTTablePostScript::TAG2
static const SK_OT_CHAR TAG2
Definition:
SkOTTable_post.h:19
SkOTTablePostScript::underlinePosition
SK_OT_FWORD underlinePosition
Definition:
SkOTTable_post.h:34
Generated on Sun Jun 23 2024 21:56:32 for Flutter Engine by
1.9.4