Home
last modified time | relevance | path

Searched refs:normalizeLocation (Results 1 – 7 of 7) sorted by relevance

/external/fonttools/Tests/varLib/
Dmodels_test.py4 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/
Ddesignspace_test.py542 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__.py1203 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/
Dinterpolate_layout.py47 loc = models.normalizeLocation(loc, ds.internal_axis_supports)
Dmutator.py16 normalizeLocation,
171 loc = normalizeLocation(location, axes)
D__init__.py641 return models.normalizeLocation(
767 …normalized_master_locs = [models.normalizeLocation(m, internal_axis_supports) for m in internal_ma…
Dmodels.py55 def normalizeLocation(location, axes): function