File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -812,22 +812,28 @@ def test_instanceworker_instantiate_ttfont_and_gen_restricted_and_unrestricted_s
812
812
assert "CRSV" in axis_tags
813
813
814
814
# get the axis data to confirm that we have a proper restricted axis range
815
+ tested_axes = []
815
816
for axis in iw .ttfont ["fvar" ].axes :
816
817
# full range vs. original
817
818
if axis .axisTag == "MONO" :
818
819
assert axis .minValue == 0.0
819
820
assert axis .maxValue == 1.0
820
821
assert axis .defaultValue == 0.0
822
+ tested_axes .append ("MONO" )
821
823
# restricted range vs. original
822
824
if axis .axisTag == "wght" :
823
825
assert axis .minValue == 200.0
824
826
assert axis .maxValue == 400.0
825
827
assert axis .defaultValue == 300.0
828
+ tested_axes .append ("wght" )
826
829
# restricted range vs. original
827
830
if axis .axisTag == "CRSV" :
828
831
assert axis .minValue == 0.0
829
832
assert axis .maxValue == 0.5
830
833
assert axis .defaultValue == 0.5
834
+ tested_axes .append ("CRSV" )
835
+
836
+ assert tested_axes == ["MONO" , "wght" , "CRSV" ]
831
837
832
838
833
839
def test_instanceworker_instantiate_ttfont_raises_valueerror_on_invalid_data (tmpdir ):
You can’t perform that action at this time.
0 commit comments