-
Notifications
You must be signed in to change notification settings - Fork 0
/
glyphs.pb.go
246 lines (212 loc) · 7.67 KB
/
glyphs.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: glyphs.proto
// Protocol Version 1
package main
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Stores a glyph with metrics and optional SDF bitmap information.
type Glyph struct {
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
// A signed distance field of the glyph with a border of 3 pixels.
Bitmap []byte `protobuf:"bytes,2,opt,name=bitmap" json:"bitmap,omitempty"`
// Glyph metrics.
Width *uint32 `protobuf:"varint,3,req,name=width" json:"width,omitempty"`
Height *uint32 `protobuf:"varint,4,req,name=height" json:"height,omitempty"`
Left *int32 `protobuf:"zigzag32,5,req,name=left" json:"left,omitempty"`
Top *int32 `protobuf:"zigzag32,6,req,name=top" json:"top,omitempty"`
Advance *uint32 `protobuf:"varint,7,req,name=advance" json:"advance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Glyph) Reset() { *m = Glyph{} }
func (m *Glyph) String() string { return proto.CompactTextString(m) }
func (*Glyph) ProtoMessage() {}
func (*Glyph) Descriptor() ([]byte, []int) {
return fileDescriptor_6bbe9e0d5eab4d4a, []int{0}
}
func (m *Glyph) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Glyph.Unmarshal(m, b)
}
func (m *Glyph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Glyph.Marshal(b, m, deterministic)
}
func (m *Glyph) XXX_Merge(src proto.Message) {
xxx_messageInfo_Glyph.Merge(m, src)
}
func (m *Glyph) XXX_Size() int {
return xxx_messageInfo_Glyph.Size(m)
}
func (m *Glyph) XXX_DiscardUnknown() {
xxx_messageInfo_Glyph.DiscardUnknown(m)
}
var xxx_messageInfo_Glyph proto.InternalMessageInfo
func (m *Glyph) GetId() uint32 {
if m != nil && m.Id != nil {
return *m.Id
}
return 0
}
func (m *Glyph) GetBitmap() []byte {
if m != nil {
return m.Bitmap
}
return nil
}
func (m *Glyph) GetWidth() uint32 {
if m != nil && m.Width != nil {
return *m.Width
}
return 0
}
func (m *Glyph) GetHeight() uint32 {
if m != nil && m.Height != nil {
return *m.Height
}
return 0
}
func (m *Glyph) GetLeft() int32 {
if m != nil && m.Left != nil {
return *m.Left
}
return 0
}
func (m *Glyph) GetTop() int32 {
if m != nil && m.Top != nil {
return *m.Top
}
return 0
}
func (m *Glyph) GetAdvance() uint32 {
if m != nil && m.Advance != nil {
return *m.Advance
}
return 0
}
// Stores fontstack information and a list of faces.
type Fontstack struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
Range *string `protobuf:"bytes,2,req,name=range" json:"range,omitempty"`
Glyphs []*Glyph `protobuf:"bytes,3,rep,name=glyphs" json:"glyphs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Fontstack) Reset() { *m = Fontstack{} }
func (m *Fontstack) String() string { return proto.CompactTextString(m) }
func (*Fontstack) ProtoMessage() {}
func (*Fontstack) Descriptor() ([]byte, []int) {
return fileDescriptor_6bbe9e0d5eab4d4a, []int{1}
}
func (m *Fontstack) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Fontstack.Unmarshal(m, b)
}
func (m *Fontstack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Fontstack.Marshal(b, m, deterministic)
}
func (m *Fontstack) XXX_Merge(src proto.Message) {
xxx_messageInfo_Fontstack.Merge(m, src)
}
func (m *Fontstack) XXX_Size() int {
return xxx_messageInfo_Fontstack.Size(m)
}
func (m *Fontstack) XXX_DiscardUnknown() {
xxx_messageInfo_Fontstack.DiscardUnknown(m)
}
var xxx_messageInfo_Fontstack proto.InternalMessageInfo
func (m *Fontstack) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *Fontstack) GetRange() string {
if m != nil && m.Range != nil {
return *m.Range
}
return ""
}
func (m *Fontstack) GetGlyphs() []*Glyph {
if m != nil {
return m.Glyphs
}
return nil
}
type Glyphs struct {
Stacks []*Fontstack `protobuf:"bytes,1,rep,name=stacks" json:"stacks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Glyphs) Reset() { *m = Glyphs{} }
func (m *Glyphs) String() string { return proto.CompactTextString(m) }
func (*Glyphs) ProtoMessage() {}
func (*Glyphs) Descriptor() ([]byte, []int) {
return fileDescriptor_6bbe9e0d5eab4d4a, []int{2}
}
var extRange_Glyphs = []proto.ExtensionRange{
{Start: 16, End: 8191},
}
func (*Glyphs) ExtensionRangeArray() []proto.ExtensionRange {
return extRange_Glyphs
}
func (m *Glyphs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Glyphs.Unmarshal(m, b)
}
func (m *Glyphs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Glyphs.Marshal(b, m, deterministic)
}
func (m *Glyphs) XXX_Merge(src proto.Message) {
xxx_messageInfo_Glyphs.Merge(m, src)
}
func (m *Glyphs) XXX_Size() int {
return xxx_messageInfo_Glyphs.Size(m)
}
func (m *Glyphs) XXX_DiscardUnknown() {
xxx_messageInfo_Glyphs.DiscardUnknown(m)
}
var xxx_messageInfo_Glyphs proto.InternalMessageInfo
func (m *Glyphs) GetStacks() []*Fontstack {
if m != nil {
return m.Stacks
}
return nil
}
func init() {
proto.RegisterType((*Glyph)(nil), "main.glyph")
proto.RegisterType((*Fontstack)(nil), "main.fontstack")
proto.RegisterType((*Glyphs)(nil), "main.glyphs")
}
func init() { proto.RegisterFile("glyphs.proto", fileDescriptor_6bbe9e0d5eab4d4a) }
var fileDescriptor_6bbe9e0d5eab4d4a = []byte{
// 243 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x8f, 0xb1, 0x4e, 0xc3, 0x30,
0x10, 0x86, 0x15, 0x3b, 0x49, 0xe9, 0xb5, 0x40, 0x38, 0x21, 0x74, 0x63, 0x14, 0x06, 0x22, 0x86,
0x0c, 0x4c, 0x8c, 0x88, 0x89, 0xd9, 0x23, 0x9b, 0x69, 0xdc, 0xc4, 0xa2, 0x71, 0xa2, 0xc6, 0x02,
0xb1, 0xf1, 0x22, 0xbc, 0x2b, 0xf2, 0xc5, 0xed, 0x76, 0xff, 0x77, 0x9f, 0x7d, 0x77, 0xb0, 0xed,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