Flutter Engine
The Flutter Engine
SkOTTable_EBDT.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 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_EBDT_DEFINED
9#define SkOTTable_EBDT_DEFINED
10
11#include "src/base/SkEndian.h"
15
16#pragma pack(push, 1)
17
19 static const SK_OT_CHAR TAG0 = 'E';
20 static const SK_OT_CHAR TAG1 = 'B';
21 static const SK_OT_CHAR TAG2 = 'D';
22 static const SK_OT_CHAR TAG3 = 'T';
24
27
37 };
38
45 };
46
47 // Small metrics, byte-aligned data.
48 struct Format1 {
50 //SK_OT_BYTE[] byteAlignedBitmap;
51 };
52
53 // Small metrics, bit-aligned data.
54 struct Format2 {
56 //SK_OT_BYTE[] bitAlignedBitmap;
57 };
58
59 // Format 3 is not used.
60
61 // EBLC metrics (IndexSubTable::header::indexFormat 2 or 5), compressed data.
62 // Only used on Mac.
63 struct Format4 {
67 };
68
69 // EBLC metrics (IndexSubTable::header::indexFormat 2 or 5), bit-aligned data.
70 struct Format5 {
71 //SK_OT_BYTE[] bitAlignedBitmap;
72 };
73
74 // Big metrics, byte-aligned data.
75 struct Format6 {
77 //SK_OT_BYTE[] byteAlignedBitmap;
78 };
79
80 // Big metrics, bit-aligned data.
81 struct Format7 {
83 //SK_OT_BYTE[] bitAlignedBitmap;
84 };
85
87 SK_OT_USHORT glyphCode; // Component glyph code
88 SK_OT_CHAR xOffset; // Position of component left
89 SK_OT_CHAR yOffset; // Position of component top
90 };
91
92 struct Format8 {
93 SmallGlyphMetrics smallMetrics; // Metrics information for the glyph
94 SK_OT_BYTE pad; // Pad to short boundary
95 SK_OT_USHORT numComponents; // Number of components
96 //EBDTComponent componentArray[numComponents]; // Glyph code, offset array
97 };
98
99 struct Format9 {
100 BigGlyphMetrics bigMetrics; // Metrics information for the glyph
101 SK_OT_USHORT numComponents; // Number of components
102 //EBDTComponent componentArray[numComponents]; // Glyph code, offset array
103 };
104};
105
106#pragma pack(pop)
107
108#endif
#define SkTEndian_SwapBE32(n)
Definition: SkEndian.h:143
uint8_t SK_OT_BYTE
uint16_t SK_OT_USHORT
uint32_t SK_OT_ULONG
int8_t SK_OT_CHAR
int32_t SK_OT_Fixed
static const SK_OT_CHAR TAG1
static const SK_OT_CHAR TAG0
static const SK_OT_Fixed version_initial
static const SK_OT_ULONG TAG
static const SK_OT_CHAR TAG2
static const SK_OT_CHAR TAG3