-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobjects.py
48 lines (44 loc) · 803 Bytes
/
objects.py
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
from collections import namedtuple
BitFont = namedtuple(
'BitFont',
[
'size',
'info',
'glyphs',
])
BitInfo = namedtuple(
'BitInfo',
[
'family_name',
'style_name',
'weight',
'designer',
'designer_url',
'copyright_year',
'major_version',
'minor_version',
'is_ofl',
])
BitGlyph = namedtuple(
'BitGlyph',
[
'codepoint',
'bits',
])
BitMetrics = namedtuple(
'BitMetrics',
[
'width',
'height',
'units_per_pixel',
'units_per_em',
'ascender',
'descender',
'x_height',
'line_gap',
'left_advance',
'total_advance',
'stems',
'values',
'scale',
])