Flutter Engine
The Flutter Engine
third_party
skia
src
sfnt
SkTTCFHeader.h
Go to the documentation of this file.
1
/*
2
* Copyright 2013 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 SkTTCFHeader_DEFINED
9
#define SkTTCFHeader_DEFINED
10
11
#include "
src/sfnt/SkOTTableTypes.h
"
12
#include "
src/sfnt/SkSFNTHeader.h
"
13
14
#pragma pack(push, 1)
15
16
struct
SkTTCFHeader
{
17
SK_SFNT_ULONG
ttcTag
;
18
static
const
SK_OT_CHAR
TAG0
=
't'
;
19
static
const
SK_OT_CHAR
TAG1
=
't'
;
20
static
const
SK_OT_CHAR
TAG2
=
'c'
;
21
static
const
SK_OT_CHAR
TAG3
=
'f'
;
22
static
const
SK_OT_ULONG
TAG
=
SkOTTableTAG<SkTTCFHeader>::value
;
23
24
SK_OT_Fixed
version
;
25
static
const
SK_OT_Fixed
version_1
=
SkTEndian_SwapBE32
(1 << 16);
26
static
const
SK_OT_Fixed
version_2
=
SkTEndian_SwapBE32
(2 << 16);
27
28
SK_OT_ULONG
numOffsets
;
29
//SK_OT_ULONG offset[numOffsets]
30
31
struct
Version2Ext
{
32
SK_OT_ULONG
dsigType
;
33
struct
dsigType_None
{
34
static
const
SK_OT_CHAR
TAG0
= 0;
35
static
const
SK_OT_CHAR
TAG1
= 0;
36
static
const
SK_OT_CHAR
TAG2
= 0;
37
static
const
SK_OT_CHAR
TAG3
= 0;
38
static
const
SK_OT_ULONG
TAG
=
SkOTTableTAG<dsigType_None>::value
;
39
};
40
struct
dsigType_Format1
{
41
static
const
SK_OT_CHAR
TAG0
=
'D'
;
42
static
const
SK_OT_CHAR
TAG1
=
'S'
;
43
static
const
SK_OT_CHAR
TAG2
=
'I'
;
44
static
const
SK_OT_CHAR
TAG3
=
'G'
;
45
static
const
SK_OT_ULONG
TAG
=
SkOTTableTAG<dsigType_Format1>::value
;
46
};
47
SK_OT_ULONG
dsigLength
;
//Length of DSIG table (in bytes).
48
SK_OT_ULONG
dsigOffset
;
//Offset of DSIG table from the beginning of file (in bytes).
49
};
// version2ext (if version == version_2)
50
};
51
52
#pragma pack(pop)
53
54
55
static_assert
(
sizeof
(
SkTTCFHeader
) == 12,
"sizeof_SkTTCFHeader_not_12"
);
56
57
#endif
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
SkSFNTHeader.h
SK_SFNT_ULONG
uint32_t SK_SFNT_ULONG
Definition:
SkSFNTHeader.h:16
SkOTTableTAG
Definition:
SkOTTableTypes.h:37
SkTTCFHeader::Version2Ext::dsigType_Format1
Definition:
SkTTCFHeader.h:40
SkTTCFHeader::Version2Ext::dsigType_Format1::TAG2
static const SK_OT_CHAR TAG2
Definition:
SkTTCFHeader.h:43
SkTTCFHeader::Version2Ext::dsigType_Format1::TAG
static const SK_OT_ULONG TAG
Definition:
SkTTCFHeader.h:45
SkTTCFHeader::Version2Ext::dsigType_Format1::TAG0
static const SK_OT_CHAR TAG0
Definition:
SkTTCFHeader.h:41
SkTTCFHeader::Version2Ext::dsigType_Format1::TAG3
static const SK_OT_CHAR TAG3
Definition:
SkTTCFHeader.h:44
SkTTCFHeader::Version2Ext::dsigType_Format1::TAG1
static const SK_OT_CHAR TAG1
Definition:
SkTTCFHeader.h:42
SkTTCFHeader::Version2Ext::dsigType_None
Definition:
SkTTCFHeader.h:33
SkTTCFHeader::Version2Ext::dsigType_None::TAG2
static const SK_OT_CHAR TAG2
Definition:
SkTTCFHeader.h:36
SkTTCFHeader::Version2Ext::dsigType_None::TAG0
static const SK_OT_CHAR TAG0
Definition:
SkTTCFHeader.h:34
SkTTCFHeader::Version2Ext::dsigType_None::TAG3
static const SK_OT_CHAR TAG3
Definition:
SkTTCFHeader.h:37
SkTTCFHeader::Version2Ext::dsigType_None::TAG
static const SK_OT_ULONG TAG
Definition:
SkTTCFHeader.h:38
SkTTCFHeader::Version2Ext::dsigType_None::TAG1
static const SK_OT_CHAR TAG1
Definition:
SkTTCFHeader.h:35
SkTTCFHeader::Version2Ext
Definition:
SkTTCFHeader.h:31
SkTTCFHeader::Version2Ext::dsigOffset
SK_OT_ULONG dsigOffset
Definition:
SkTTCFHeader.h:48
SkTTCFHeader::Version2Ext::dsigType
SK_OT_ULONG dsigType
Definition:
SkTTCFHeader.h:32
SkTTCFHeader::Version2Ext::dsigLength
SK_OT_ULONG dsigLength
Definition:
SkTTCFHeader.h:47
SkTTCFHeader
Definition:
SkFontStream.cpp:25
SkTTCFHeader::version
SK_OT_Fixed version
Definition:
SkTTCFHeader.h:24
SkTTCFHeader::TAG0
static const SK_OT_CHAR TAG0
Definition:
SkTTCFHeader.h:18
SkTTCFHeader::numOffsets
SK_OT_ULONG numOffsets
Definition:
SkTTCFHeader.h:28
SkTTCFHeader::version_1
static const SK_OT_Fixed version_1
Definition:
SkTTCFHeader.h:25
SkTTCFHeader::ttcTag
SK_SFNT_ULONG ttcTag
Definition:
SkTTCFHeader.h:17
SkTTCFHeader::TAG
static const SK_OT_ULONG TAG
Definition:
SkTTCFHeader.h:22
SkTTCFHeader::version_2
static const SK_OT_Fixed version_2
Definition:
SkTTCFHeader.h:26
SkTTCFHeader::TAG3
static const SK_OT_CHAR TAG3
Definition:
SkTTCFHeader.h:21
SkTTCFHeader::TAG2
static const SK_OT_CHAR TAG2
Definition:
SkTTCFHeader.h:20
SkTTCFHeader::TAG1
static const SK_OT_CHAR TAG1
Definition:
SkTTCFHeader.h:19
Generated on Sun Jun 23 2024 21:56:32 for Flutter Engine by
1.9.4