@@ -72,7 +72,7 @@ def test_report_cmd_reportstring_upm(capsys):
72
72
sys .argv = ['font-line' , 'report' , filepath ]
73
73
main ()
74
74
out , err = capsys .readouterr ()
75
- assert "[head] Units per Em: \t 2048 " in out
75
+ assert "[head] Units per Em: 2048 " in out
76
76
77
77
78
78
def test_report_cmd_reportstring_ymax (capsys ):
@@ -81,7 +81,7 @@ def test_report_cmd_reportstring_ymax(capsys):
81
81
sys .argv = ['font-line' , 'report' , filepath ]
82
82
main ()
83
83
out , err = capsys .readouterr ()
84
- assert "[head] yMax: \t \t 2001 " in out
84
+ assert "[head] yMax: 2001 " in out
85
85
86
86
87
87
def test_report_cmd_reportstring_ymin (capsys ):
@@ -90,7 +90,7 @@ def test_report_cmd_reportstring_ymin(capsys):
90
90
sys .argv = ['font-line' , 'report' , filepath ]
91
91
main ()
92
92
out , err = capsys .readouterr ()
93
- assert "[head] yMin: \t \t -573" in out
93
+ assert "[head] yMin: -573" in out
94
94
95
95
96
96
def test_report_cmd_reportstring_capheight (capsys ):
@@ -99,7 +99,7 @@ def test_report_cmd_reportstring_capheight(capsys):
99
99
sys .argv = ['font-line' , 'report' , filepath ]
100
100
main ()
101
101
out , err = capsys .readouterr ()
102
- assert "[OS/2] CapHeight: \t 1493 " in out
102
+ assert "[OS/2] CapHeight: 1493 " in out
103
103
104
104
105
105
def test_report_cmd_reportstring_xheight (capsys ):
@@ -108,7 +108,7 @@ def test_report_cmd_reportstring_xheight(capsys):
108
108
sys .argv = ['font-line' , 'report' , filepath ]
109
109
main ()
110
110
out , err = capsys .readouterr ()
111
- assert "[OS/2] xHeight: \t 1120 " in out
111
+ assert "[OS/2] xHeight: 1120 " in out
112
112
113
113
114
114
def test_report_cmd_reportstring_typoascender (capsys ):
@@ -117,7 +117,7 @@ def test_report_cmd_reportstring_typoascender(capsys):
117
117
sys .argv = ['font-line' , 'report' , filepath ]
118
118
main ()
119
119
out , err = capsys .readouterr ()
120
- assert "[OS/2] TypoAscender: \t 1556 " in out
120
+ assert "[OS/2] TypoAscender: 1556 " in out
121
121
122
122
123
123
def test_report_cmd_reportstring_typodescender (capsys ):
@@ -126,7 +126,7 @@ def test_report_cmd_reportstring_typodescender(capsys):
126
126
sys .argv = ['font-line' , 'report' , filepath ]
127
127
main ()
128
128
out , err = capsys .readouterr ()
129
- assert "[OS/2] TypoDescender: \t -492" in out
129
+ assert "[OS/2] TypoDescender: -492" in out
130
130
131
131
132
132
def test_report_cmd_reportstring_winascent (capsys ):
@@ -135,7 +135,7 @@ def test_report_cmd_reportstring_winascent(capsys):
135
135
sys .argv = ['font-line' , 'report' , filepath ]
136
136
main ()
137
137
out , err = capsys .readouterr ()
138
- assert "[OS/2] WinAscent: \t 1901 " in out
138
+ assert "[OS/2] WinAscent: 1901 " in out
139
139
140
140
141
141
def test_report_cmd_reportstring_windescent (capsys ):
@@ -144,7 +144,7 @@ def test_report_cmd_reportstring_windescent(capsys):
144
144
sys .argv = ['font-line' , 'report' , filepath ]
145
145
main ()
146
146
out , err = capsys .readouterr ()
147
- assert "[OS/2] WinDescent: \t 483 " in out
147
+ assert "[OS/2] WinDescent: 483 " in out
148
148
149
149
150
150
def test_report_cmd_reportstring_ascent (capsys ):
@@ -153,7 +153,7 @@ def test_report_cmd_reportstring_ascent(capsys):
153
153
sys .argv = ['font-line' , 'report' , filepath ]
154
154
main ()
155
155
out , err = capsys .readouterr ()
156
- assert "[hhea] Ascent: \t \t 1901 " in out
156
+ assert "[hhea] Ascent: 1901 " in out
157
157
158
158
159
159
def test_report_cmd_reportstring_descent (capsys ):
@@ -162,7 +162,7 @@ def test_report_cmd_reportstring_descent(capsys):
162
162
sys .argv = ['font-line' , 'report' , filepath ]
163
163
main ()
164
164
out , err = capsys .readouterr ()
165
- assert "[hhea] Descent: \t -483" in out
165
+ assert "[hhea] Descent: -483" in out
166
166
167
167
168
168
def test_report_cmd_reportstring_linegap (capsys ):
@@ -171,7 +171,7 @@ def test_report_cmd_reportstring_linegap(capsys):
171
171
sys .argv = ['font-line' , 'report' , filepath ]
172
172
main ()
173
173
out , err = capsys .readouterr ()
174
- assert "[hhea] LineGap: \t 0 " in out
174
+ assert "[hhea] LineGap: 0 " in out
175
175
176
176
177
177
def test_report_cmd_reportstring_typolinegap (capsys ):
@@ -180,7 +180,7 @@ def test_report_cmd_reportstring_typolinegap(capsys):
180
180
sys .argv = ['font-line' , 'report' , filepath ]
181
181
main ()
182
182
out , err = capsys .readouterr ()
183
- assert "[OS/2] TypoLineGap: \t 410 " in out
183
+ assert "[OS/2] TypoLineGap: 410 " in out
184
184
185
185
186
186
def test_report_cmd_reportstring_typoA_typodesc (capsys ):
@@ -189,7 +189,7 @@ def test_report_cmd_reportstring_typoA_typodesc(capsys):
189
189
sys .argv = ['font-line' , 'report' , filepath ]
190
190
main ()
191
191
out , err = capsys .readouterr ()
192
- assert "[OS/2] TypoAscender to TypoDescender: \t 2048 " in out
192
+ assert "[OS/2] TypoAscender to TypoDescender: 2048 " in out
193
193
194
194
195
195
def test_report_cmd_reportstring_winA_windesc (capsys ):
@@ -198,7 +198,7 @@ def test_report_cmd_reportstring_winA_windesc(capsys):
198
198
sys .argv = ['font-line' , 'report' , filepath ]
199
199
main ()
200
200
out , err = capsys .readouterr ()
201
- assert "[OS/2] WinAscent to WinDescent: \t 2384 " in out
201
+ assert "[OS/2] WinAscent to WinDescent: 2384 " in out
202
202
203
203
204
204
def test_report_cmd_reportstring_ascent_descent (capsys ):
@@ -207,7 +207,7 @@ def test_report_cmd_reportstring_ascent_descent(capsys):
207
207
sys .argv = ['font-line' , 'report' , filepath ]
208
208
main ()
209
209
out , err = capsys .readouterr ()
210
- assert "[hhea] Ascent to Descent: \t \t 2384 " in out
210
+ assert "[hhea] Ascent to Descent: 2384 " in out
211
211
212
212
213
213
def test_report_cmd_reportstring_winA_typoasc (capsys ):
@@ -216,7 +216,7 @@ def test_report_cmd_reportstring_winA_typoasc(capsys):
216
216
sys .argv = ['font-line' , 'report' , filepath ]
217
217
main ()
218
218
out , err = capsys .readouterr ()
219
- assert "WinAscent to TypoAscender: \t 345 " in out
219
+ assert "[hhea] Ascent to [OS/2] TypoAscender: 345 " in out
220
220
221
221
222
222
def test_report_cmd_reportstring_ascent_typoasc (capsys ):
@@ -225,7 +225,7 @@ def test_report_cmd_reportstring_ascent_typoasc(capsys):
225
225
sys .argv = ['font-line' , 'report' , filepath ]
226
226
main ()
227
227
out , err = capsys .readouterr ()
228
- assert "Ascent to TypoAscender: \t 345 " in out
228
+ assert "[hhea] Ascent to [OS/2] TypoAscender: 345 " in out
229
229
230
230
231
231
def test_report_cmd_reportstring_winD_typodesc (capsys ):
@@ -234,7 +234,7 @@ def test_report_cmd_reportstring_winD_typodesc(capsys):
234
234
sys .argv = ['font-line' , 'report' , filepath ]
235
235
main ()
236
236
out , err = capsys .readouterr ()
237
- assert "WinDescent to TypoDescender: \t -9" in out
237
+ assert "[OS/2] WinDescent to [OS/2] TypoDescender: -9" in out
238
238
239
239
240
240
def test_report_cmd_reportstring_descent_typodesc (capsys ):
@@ -243,7 +243,7 @@ def test_report_cmd_reportstring_descent_typodesc(capsys):
243
243
sys .argv = ['font-line' , 'report' , filepath ]
244
244
main ()
245
245
out , err = capsys .readouterr ()
246
- assert "Descent to TypoDescender: \t -9" in out
246
+ assert "[hhea] Descent to [OS/2] TypoDescender: -9" in out
247
247
248
248
249
249
def test_report_cmd_reportstring_typo_to_upm (capsys ):
@@ -252,7 +252,7 @@ def test_report_cmd_reportstring_typo_to_upm(capsys):
252
252
sys .argv = ['font-line' , 'report' , filepath ]
253
253
main ()
254
254
out , err = capsys .readouterr ()
255
- assert "(Typo Asc + Desc + Linegap) / UPM: \t 1 .2" in out
255
+ assert "typo metrics / UPM: 1 .2" in out
256
256
257
257
258
258
def test_report_cmd_reportstring_win_to_upm (capsys ):
@@ -261,7 +261,7 @@ def test_report_cmd_reportstring_win_to_upm(capsys):
261
261
sys .argv = ['font-line' , 'report' , filepath ]
262
262
main ()
263
263
out , err = capsys .readouterr ()
264
- assert "(winAsc + winDesc) / UPM: \t \t 1 .16" in out
264
+ assert "win metrics / UPM: 1 .16" in out
265
265
266
266
267
267
def test_report_cmd_reportstring_hhea_to_upm (capsys ):
@@ -270,4 +270,4 @@ def test_report_cmd_reportstring_hhea_to_upm(capsys):
270
270
sys .argv = ['font-line' , 'report' , filepath ]
271
271
main ()
272
272
out , err = capsys .readouterr ()
273
- assert "( hhea Asc + Desc) / UPM: \t \t 1 .16" in out
273
+ assert "hhea metrics / UPM: 1 .16" in out
0 commit comments