Lines Matching refs:varfont2
1293 def test_limit_axes(self, varfont2): argument
1294 instancer.instantiateSTAT(varfont2, {"wght": (400, 500), "wdth": (75, 100)})
1296 assert len(varfont2["STAT"].table.AxisValueArray.AxisValue) == 5
1297 assert self.get_STAT_axis_values(varfont2["STAT"].table) == [
1305 def test_limit_axis_value_format_4(self, varfont2): argument
1306 stat = varfont2["STAT"].table
1320 instancer.instantiateSTAT(varfont2, {"wght": (100, 600)})
1322 assert axisValue in varfont2["STAT"].table.AxisValueArray.AxisValue
1324 instancer.instantiateSTAT(varfont2, {"wdth": (62.5, 87.5)})
1326 assert axisValue not in varfont2["STAT"].table.AxisValueArray.AxisValue
1328 def test_unknown_axis_value_format(self, varfont2, caplog): argument
1329 stat = varfont2["STAT"].table
1335 instancer.instantiateSTAT(varfont2, {"wght": 400})
1338 assert axisValue in varfont2["STAT"].table.AxisValueArray.AxisValue
1370 def varfont2(): function
1415 def test_multiple_instancing(self, varfont2, wght, wdth): argument
1416 partial = instancer.instantiateVariableFont(varfont2, {"wght": wght})
1423 def test_default_instance(self, varfont2): argument
1425 varfont2, {"wght": None, "wdth": None}
1642 def test_GSUB_FeatureVariations_is_None(self, varfont2): argument
1643 varfont2["GSUB"].table.Version = 0x00010001
1644 varfont2["GSUB"].table.FeatureVariations = None
1646 varfont2.save(tmp)