Lines Matching refs:axes
9 axes = {"wght": (100, 400, 900)}
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}
17 axes = {"wght": (0, 0, 1000)}
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}
21 assert normalizeLocation({"wght": 500}, axes) == {'wght': 0.5}
22 assert normalizeLocation({"wght": 1001}, axes) == {'wght': 1.0}
24 axes = {"wght": (0, 1000, 1000)}
25 assert normalizeLocation({"wght": 0}, axes) == {'wght': -1.0}
26 assert normalizeLocation({"wght": -1}, axes) == {'wght': -1.0}
27 assert normalizeLocation({"wght": 500}, axes) == {'wght': -0.5}
28 assert normalizeLocation({"wght": 1000}, axes) == {'wght': 0.0}
29 assert normalizeLocation({"wght": 1001}, axes) == {'wght': 0.0}