Home
last modified time | relevance | path

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

/external/fonttools/Tests/varLib/
Dmodels_test.py2 normalizeLocation, supportScalar, VariationModel, VariationModelError)
8 assert normalizeLocation({"wght": 400}, axes) == {'wght': 0.0}
9 assert normalizeLocation({"wght": 100}, axes) == {'wght': -1.0}
10 assert normalizeLocation({"wght": 900}, axes) == {'wght': 1.0}
11 assert normalizeLocation({"wght": 650}, axes) == {'wght': 0.5}
12 assert normalizeLocation({"wght": 1000}, axes) == {'wght': 1.0}
13 assert normalizeLocation({"wght": 0}, axes) == {'wght': -1.0}
16 assert normalizeLocation({"wght": 0}, axes) == {'wght': 0.0}
17 assert normalizeLocation({"wght": -1}, axes) == {'wght': 0.0}
18 assert normalizeLocation({"wght": 1000}, axes) == {'wght': 1.0}
[all …]
/external/fonttools/Tests/designspaceLib/
Ddesignspace_test.py540 assert doc.normalizeLocation(dict(axisName_a=0)) == {'axisName_a': 0.0}
541 assert doc.normalizeLocation(dict(axisName_a=1000)) == {'axisName_a': 1.0}
543 assert doc.normalizeLocation(dict(axisName_a=1001)) == {'axisName_a': 1.0}
544 assert doc.normalizeLocation(dict(axisName_a=500)) == {'axisName_a': 0.5}
545 assert doc.normalizeLocation(dict(axisName_a=-1000)) == {'axisName_a': -1.0}
546 assert doc.normalizeLocation(dict(axisName_a=-1001)) == {'axisName_a': -1.0}
548 assert doc.normalizeLocation(dict(axisName_a=(1000, -1000))) == {'axisName_a': 1.0}
566 assert doc.normalizeLocation(dict(axisName_b=0)) == {'axisName_b': 0.0}
567 assert doc.normalizeLocation(dict(axisName_b=1000)) == {'axisName_b': 1.0}
569 assert doc.normalizeLocation(dict(axisName_b=1001)) == {'axisName_b': 1.0}
[all …]
/external/fonttools/Lib/fontTools/designspaceLib/
D__init__.py1291 def normalizeLocation(self, location): member in DesignSpaceDocument
1315 item.location = self.normalizeLocation(item.location)
1320 … glyphData['instanceLocation'] = self.normalizeLocation(glyphData['instanceLocation'])
1322 glyphMaster['location'] = self.normalizeLocation(glyphMaster['location'])
1323 item.location = self.normalizeLocation(item.location)
1329 newOutputValue = self.normalizeLocation({axis.name: outputValue}).get(axis.name)
1334 minimum = self.normalizeLocation({axis.name: axis.minimum}).get(axis.name)
1335 maximum = self.normalizeLocation({axis.name: axis.maximum}).get(axis.name)
1336 default = self.normalizeLocation({axis.name: axis.default}).get(axis.name)
1348 … minimum = self.normalizeLocation({cond['name']: cond['minimum']}).get(cond['name'])
[all …]
/external/fonttools/Lib/fontTools/varLib/
Dinterpolate_layout.py45 loc = models.normalizeLocation(loc, ds.internal_axis_supports)
Dmutator.py14 normalizeLocation,
175 loc = normalizeLocation(location, axes)
Dmodels.py63 def normalizeLocation(location, axes): function
D__init__.py649 return models.normalizeLocation(
798 …normalized_master_locs = [models.normalizeLocation(m, internal_axis_supports) for m in internal_ma…
/external/fonttools/Tests/varLib/instancer/
Dinstancer_test.py648 normalizedLocs = [models.normalizeLocation(m, dict(axes)) for m in masterLocations]
/external/fonttools/Doc/source/designspaceLib/
Dreadme.rst82 - ``normalizeLocation(aLocation)``: return a dict with normalized axis values.