Searched refs:normalizeLocation (Results 1 – 7 of 7) sorted by relevance
/external/fonttools/Tests/varLib/ |
D | models_test.py | 4 normalizeLocation, supportScalar, VariationModel) 10 assert normalizeLocation({"wght": 400}, axes) == {'wght': 0.0} 11 assert normalizeLocation({"wght": 100}, axes) == {'wght': -1.0} 12 assert normalizeLocation({"wght": 900}, axes) == {'wght': 1.0} 13 assert normalizeLocation({"wght": 650}, axes) == {'wght': 0.5} 14 assert normalizeLocation({"wght": 1000}, axes) == {'wght': 1.0} 15 assert normalizeLocation({"wght": 0}, axes) == {'wght': -1.0} 18 assert normalizeLocation({"wght": 0}, axes) == {'wght': 0.0} 19 assert normalizeLocation({"wght": -1}, axes) == {'wght': 0.0} 20 assert normalizeLocation({"wght": 1000}, axes) == {'wght': 1.0} [all …]
|
/external/fonttools/Tests/designspaceLib/ |
D | designspace_test.py | 542 assert doc.normalizeLocation(dict(axisName_a=0)) == {'axisName_a': 0.0} 543 assert doc.normalizeLocation(dict(axisName_a=1000)) == {'axisName_a': 1.0} 545 assert doc.normalizeLocation(dict(axisName_a=1001)) == {'axisName_a': 1.0} 546 assert doc.normalizeLocation(dict(axisName_a=500)) == {'axisName_a': 0.5} 547 assert doc.normalizeLocation(dict(axisName_a=-1000)) == {'axisName_a': -1.0} 548 assert doc.normalizeLocation(dict(axisName_a=-1001)) == {'axisName_a': -1.0} 550 assert doc.normalizeLocation(dict(axisName_a=(1000, -1000))) == {'axisName_a': 1.0} 568 assert doc.normalizeLocation(dict(axisName_b=0)) == {'axisName_b': 0.0} 569 assert doc.normalizeLocation(dict(axisName_b=1000)) == {'axisName_b': 1.0} 571 assert doc.normalizeLocation(dict(axisName_b=1001)) == {'axisName_b': 1.0} [all …]
|
/external/fonttools/Lib/fontTools/designspaceLib/ |
D | __init__.py | 1203 def normalizeLocation(self, location): member in DesignSpaceDocument 1227 item.location = self.normalizeLocation(item.location) 1232 … glyphData['instanceLocation'] = self.normalizeLocation(glyphData['instanceLocation']) 1234 glyphMaster['location'] = self.normalizeLocation(glyphMaster['location']) 1235 item.location = self.normalizeLocation(item.location) 1241 newOutputValue = self.normalizeLocation({axis.name: outputValue}).get(axis.name) 1246 minimum = self.normalizeLocation({axis.name: axis.minimum}).get(axis.name) 1247 maximum = self.normalizeLocation({axis.name: axis.maximum}).get(axis.name) 1248 default = self.normalizeLocation({axis.name: axis.default}).get(axis.name) 1260 … minimum = self.normalizeLocation({cond['name']: cond['minimum']}).get(cond['name']) [all …]
|
/external/fonttools/Lib/fontTools/varLib/ |
D | interpolate_layout.py | 47 loc = models.normalizeLocation(loc, ds.internal_axis_supports)
|
D | mutator.py | 16 normalizeLocation, 171 loc = normalizeLocation(location, axes)
|
D | __init__.py | 641 return models.normalizeLocation( 767 …normalized_master_locs = [models.normalizeLocation(m, internal_axis_supports) for m in internal_ma…
|
D | models.py | 55 def normalizeLocation(location, axes): function
|