@@ -75,6 +75,42 @@ def test_report_cmd_reportstring_upm(capsys):
75
75
assert "[head] Units per Em: \t 2048" in out
76
76
77
77
78
+ def test_report_cmd_reportstring_ymax (capsys ):
79
+ from fontline .app import main
80
+ filepath = os .path .join ('tests' , 'testingfiles' , 'Hack-Regular.ttf' )
81
+ sys .argv = ['font-line' , 'report' , filepath ]
82
+ main ()
83
+ out , err = capsys .readouterr ()
84
+ assert "[head] yMax: \t \t 2001" in out
85
+
86
+
87
+ def test_report_cmd_reportstring_ymin (capsys ):
88
+ from fontline .app import main
89
+ filepath = os .path .join ('tests' , 'testingfiles' , 'Hack-Regular.ttf' )
90
+ sys .argv = ['font-line' , 'report' , filepath ]
91
+ main ()
92
+ out , err = capsys .readouterr ()
93
+ assert "[head] yMin: \t \t -573" in out
94
+
95
+
96
+ def test_report_cmd_reportstring_capheight (capsys ):
97
+ from fontline .app import main
98
+ filepath = os .path .join ('tests' , 'testingfiles' , 'Hack-Regular.ttf' )
99
+ sys .argv = ['font-line' , 'report' , filepath ]
100
+ main ()
101
+ out , err = capsys .readouterr ()
102
+ assert "[OS/2] CapHeight: \t 1493" in out
103
+
104
+
105
+ def test_report_cmd_reportstring_xheight (capsys ):
106
+ from fontline .app import main
107
+ filepath = os .path .join ('tests' , 'testingfiles' , 'Hack-Regular.ttf' )
108
+ sys .argv = ['font-line' , 'report' , filepath ]
109
+ main ()
110
+ out , err = capsys .readouterr ()
111
+ assert "[OS/2] xHeight: \t 1120" in out
112
+
113
+
78
114
def test_report_cmd_reportstring_typoascender (capsys ):
79
115
from fontline .app import main
80
116
filepath = os .path .join ('tests' , 'testingfiles' , 'Hack-Regular.ttf' )
0 commit comments