Home
last modified time | relevance | path

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

/external/fonttools/Lib/fontTools/varLib/
Dmodels.py200 def __init__(self, locations, axisOrder=None): argument
205 self.axisOrder = axisOrder if axisOrder is not None else []
208 keyFunc = self.getMasterLocationsSortKeyFunc(locations, axisOrder=self.axisOrder)
224 subModel = VariationModel(subList(key, self.origLocations), self.axisOrder)
229 def getMasterLocationsSortKeyFunc(locations, axisOrder=[]): argument
245 def getKey(axisPoints, axisOrder): argument
255 orderedAxes = [axis for axis in axisOrder if axis in loc]
256 orderedAxes.extend([axis for axis in sorted(loc.keys()) if axis not in axisOrder])
260 …tuple(axisOrder.index(axis) if axis in axisOrder else 0x10000 for axis in orderedAxes), # Next, by…
267 ret = getKey(axisPoints, axisOrder)
D__init__.py913 model = models.VariationModel(normalized_master_locs, axisOrder=axisTags)
/external/fonttools/Tests/varLib/
Dmodels_test.py138 self, locations, axisOrder, sortedLocs, supports, deltaWeights argument
140 model = VariationModel(locations, axisOrder=axisOrder)
/external/fonttools/Tests/varLib/instancer/
Dinstancer_test.py405 axisOrder = ["wght", "wdth", "opsz"]
407 region = builder.buildVarRegion(regionAxes, axisOrder)
412 fvarAxes = [SimpleNamespace(axisTag=axisTag) for axisTag in axisOrder]
479 axisOrder = ["wght", "wdth"]
502 regions, axisOrder, tupleVarData, itemCounts=[2, 2]
522 axisOrder = ["wght", "wdth"]
528 regions, axisOrder, tupleVarData, itemCounts=[1, 1]
558 axisOrder = [axis.axisTag for axis in fvarAxes]
561 builder.buildVarRegionList(regions, axisOrder),
607 assert adapter.axisOrder == axisOrder
[all …]
/external/fonttools/Lib/fontTools/varLib/instancer/
D__init__.py497 def __init__(self, regions, axisOrder, tupleVarData, itemCounts): argument
499 self.axisOrder = axisOrder
505 axisOrder = [axis.axisTag for axis in fvarAxes]
518 return cls(regions, axisOrder, tupleVarData, itemCounts)
558 self.axisOrder = [
559 axisTag for axisTag in self.axisOrder if axisTag not in pinnedAxes
581 regionList = builder.buildVarRegionList(self.regions, self.axisOrder)
833 axisOrder = [axis.axisTag for axis in fvarAxes if axis.axisTag not in pinnedAxes]
834 axisIndexMap = {axisTag: axisOrder.index(axisTag) for axisTag in axisOrder}
/external/fonttools/Lib/fontTools/feaLib/
Dbuilder.py543 if designAxis.axisOrder in (r.axisOrder for r in self.stat_["DesignAxes"]):
620 "ordering": a.axisOrder,
Dast.py1912 def __init__(self, tag, axisOrder, names, location=None): argument
1915 self.axisOrder = axisOrder
Dparser.py1353 axisOrder = self.expect_number_()
1375 axisTag, axisOrder, names, self.cur_token_location_
/external/fonttools/Tests/feaLib/
Dparser_test.py1289 self.assertEqual(da.axisOrder, 0)