1
1
font-line |Build Status | |Build status |
2
2
---------------------------------------
3
3
4
- Project Source: `https://github.com/source-foundry/font-line <https://github.com/source-foundry/font-line >`__
5
-
6
4
About
7
5
~~~~~
8
6
9
- font-line is a libre open source command line tool for font vertical
10
- metrics reporting and line spacing modifications. It currently supports
11
- reporting and modifications of ``.ttf `` and ``.otf `` font builds.
7
+ font-line is a libre, open source command line tool for OpenType
8
+ vertical metrics reporting and command line based font line spacing
9
+ modifications. It currently supports ``.ttf `` and ``.otf `` font builds.
12
10
13
11
Contents
14
12
~~~~~~~~
@@ -28,20 +26,30 @@ Contents
28
26
Install
29
27
~~~~~~~
30
28
31
- font-line is built with Python and can be used on any system where the
32
- Python interpreter is installed. Use either of the following methods to
33
- install font-line on your system.
29
+ font-line is built with Python and can be used on systems with Python
30
+ 2.7+ and Python 3.3+ interpreters, including current releases of pypy
31
+ and pypy3. You can verify your installed Python version on the command
32
+ line with the command:
33
+
34
+ ::
35
+
36
+ $ python --version
37
+
38
+ Use either of the following methods to install font-line on your system.
34
39
35
40
pip Install
36
41
^^^^^^^^^^^
37
42
38
- The latest release version is available through the Python Package Index
39
- and can be installed with pip:
43
+ The latest font-line release is available through the Python Package
44
+ Index and can be installed with pip:
40
45
41
46
::
42
47
43
48
$ pip install font-line
44
49
50
+ To upgrade to a new version of font-line after a pip install, use the
51
+ command ``pip install --upgrade font-line ``.
52
+
45
53
Download Project Repository and Install
46
54
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
55
@@ -61,14 +69,17 @@ command:
61
69
62
70
$ python setup.py install
63
71
72
+ Follow the same instructions to upgrade to a new version of the
73
+ application if you elect to install with this approach.
74
+
64
75
Usage
65
76
~~~~~
66
77
67
- font-line works via sub-commands to the ``font-line `` executable. The
68
- following sub-commands are available:
78
+ font-line works via sub-commands to the ``font-line `` command line
79
+ executable. The following sub-commands are available:
69
80
70
81
- ``percent `` - modify the line spacing of a font to a percent of the
71
- Ascender to Descender delta value
82
+ Ascender to Descender distance
72
83
- ``report `` - report OpenType metrics values for a font
73
84
74
85
Usage of these sub-commands is described in detail below.
@@ -98,7 +109,15 @@ Enter one or more font path arguments to the command:
98
109
99
110
$ font-line report [fontpath 1] <fontpath ...>
100
111
101
- Here is an example of the report generated with ``font-line report ``:
112
+ Here is an example of the report generated with the Hack typeface file
113
+ ``Hack-Regular.ttf `` using the command:
114
+
115
+ ::
116
+
117
+ $ font-line report Hack-Regular.ttf
118
+
119
+ Example Font Vertical Metrics Report
120
+ ''''''''''''''''''''''''''''''''''''
102
121
103
122
::
104
123
@@ -131,13 +150,19 @@ Here is an example of the report generated with ``font-line report``:
131
150
--- Ratio of TypoLineGap to UPM ---
132
151
TypoLineGap / UPM: 0.2
133
152
153
+ The report includes the font version string, a SHA-1 hash digest of the
154
+ font file, and OpenType table metrics that are associated with line
155
+ spacing in the font.
156
+
134
157
Unix/Linux/OS X users can write this report to a file with the ``> ``
135
158
command line idiom:
136
159
137
160
::
138
161
139
162
$ font-line report TheFont.ttf > font-report.txt
140
163
164
+ You can modify ``font-report.txt `` to the file path of your choice.
165
+
141
166
Vertical Metrics Modifications
142
167
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143
168
@@ -150,7 +175,7 @@ This delta value will be abbreviated as TA:TD below.
150
175
'''''''''''''''''''''''''''''
151
176
152
177
Enter the desired percentage of the TA:TD metric as the first argument
153
- to the command. This should be formatted as an integer value. Then enter
178
+ to the command. This should be * entered as an integer value* . Then enter
154
179
one or more font paths to which you would like to apply your font
155
180
metrics changes.
156
181
@@ -178,15 +203,15 @@ the font. See the Details section below for a description of the
178
203
OpenType table modifications that occur when the application is used on
179
204
a font file.
180
205
181
- You can inspect the new vertical metrics in the new font file with the
206
+ You can inspect the vertical metrics in the new font file with the
182
207
``report `` subcommand (see Usage above).
183
208
184
209
Details of Font Metrics Changes with ``percent `` Sub-Command
185
210
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
186
211
187
- The interpretation of the multiple vertical metric values is platform
212
+ The interpretation of these multiple vertical metric values is platform
188
213
and application dependent. This has led to `debate over the 'best'
189
- approach to font line
214
+ approach to cross-platform typeface line
190
215
spacing <https://grahamwideman.wikispaces.com/Font+Vertical+Metrics> `__.
191
216
The line spacing modification approach used in font-line is defined with
192
217
a slightly modified version of Karsten Lücke's approach that is
@@ -223,6 +248,13 @@ these issues before use of the application and leave this testing to the
223
248
designer / user before the modified fonts are used in a production
224
249
setting.
225
250
251
+ Issue Reporting
252
+ ~~~~~~~~~~~~~~~
253
+
254
+ Please `submit a new issue
255
+ report <https://github.com/source-foundry/font-line/issues/new> `__ on
256
+ the project repository.
257
+
226
258
Acknowledgments
227
259
~~~~~~~~~~~~~~~
228
260
@@ -232,4 +264,4 @@ font-line is built with the fantastic
232
264
.. |Build Status | image :: https://travis-ci.org/source-foundry/font-line.svg?branch=master
233
265
:target: https://travis-ci.org/source-foundry/font-line
234
266
.. |Build status | image :: https://ci.appveyor.com/api/projects/status/2s4725o5mxh2298c/branch/master?svg=true
235
- :target: https://ci.appveyor.com/project/chrissimpkins/font-line/branch/master
267
+ :target: https://ci.appveyor.com/project/chrissimpkins/font-line/branch/master
0 commit comments