-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtt_horiheader.py
More file actions
113 lines (88 loc) · 3.73 KB
/
tt_horiheader.py
File metadata and controls
113 lines (88 loc) · 3.73 KB
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
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Michael Droettboom All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# The views and conclusions contained in the software and
# documentation are those of the authors and should not be interpreted
# as representing official policies, either expressed or implied, of
# the FreeBSD Project.
from __future__ import print_function, unicode_literals, absolute_import
TT_HoriHeader_ascender = """
The font's ascender, i.e., the distance from the baseline to the
top-most of all glyph points found in the font.
This value is invalid in many fonts, as it is usually set by the font
designer, and often reflects only a portion of the glyphs found in the
font (maybe ASCII).
You should use the `Face.get_os2_table().s_typo_ascender` instead if you
want the correct one.
"""
TT_HoriHeader_descender = """
The font's descender, i.e., the distance from the baseline to the
bottom-most of all glyph points found in the font. It is negative.
This value is invalid in many fonts, as it is usually set by the font
designer, and often reflects only a portion of the glyphs found in the
font (maybe ASCII).
You should use the `Face.get_os2_table().s_typo_descender` if you want
the correct one.
"""
TT_HoriHeader_line_gap = """
The font's line gap, i.e., the distance to add to the ascender and
descender to get the BTB, i.e., the baseline-to-baseline distance for
the font.
"""
TT_HoriHeader_version = """
The table version.
"""
TT_HoriHeader__init__ = """
TrueType horizontal header (‘hhea’).
"""
TT_HoriHeader_advance_width_max = """
This field is the maximum of all advance widths found in the font. It
can be used to compute the maximum width of an arbitrary string of
text.
"""
TT_HoriHeader_caret_offset = """
"""
TT_HoriHeader_caret_slope_rise = """
The rise coefficient of the cursor's slope of the cursor
(slope=rise/run).
"""
TT_HoriHeader_caret_slope_run = """
The run coefficient of the cursor's slope.
"""
TT_HoriHeader_metric_data_format = """
Always 0.
"""
TT_HoriHeader_min_left_side_bearing = """
The minimum left side bearing of all glyphs within the font.
"""
TT_HoriHeader_min_right_side_bearing = """
The minimum right side bearing of all glyphs within the font.
"""
TT_HoriHeader_number_of_hmetrics = """
Number of HMetrics entries in the ‘hmtx’ table -- this value can be
smaller than the total number of glyphs in the font.
"""
TT_HoriHeader_xmax_extent = """
The maximum horizontal extent (i.e., the ‘width’ of a glyph's bounding
box) for all glyphs in the font.
"""