Searched refs:evaluateRule (Results 1 – 3 of 3) sorted by relevance
/external/fonttools/Tests/designspaceLib/ |
D | designspace_test.py | 11 InstanceDescriptor, evaluateRule, processRules, posix, DesignSpaceDocumentError) 651 assert evaluateRule(r1, dict(axisName_a = 500, axisName_b = 0)) == True 652 assert evaluateRule(r1, dict(axisName_a = 0, axisName_b = 0)) == True 653 assert evaluateRule(r1, dict(axisName_a = 1000, axisName_b = 0)) == True 654 assert evaluateRule(r1, dict(axisName_a = 1000, axisName_b = -100)) == False 655 assert evaluateRule(r1, dict(axisName_a = 1000.0001, axisName_b = 0)) == False 656 assert evaluateRule(r1, dict(axisName_a = -0.0001, axisName_b = 0)) == False 657 assert evaluateRule(r1, dict(axisName_a = -100, axisName_b = 0)) == False 668 assert evaluateRule(r2, dict(axisName_a = 0)) == True 669 assert evaluateRule(r2, dict(axisName_a = -500)) == True [all …]
|
/external/fonttools/Lib/fontTools/designspaceLib/ |
D | __init__.py | 183 def evaluateRule(rule, location): function 212 if evaluateRule(rule, location):
|
/external/fonttools/Doc/source/designspaceLib/ |
D | readme.rst | 305 - ``evaluateRule(rule, location)``: Return True if any of the rule's conditionsets
|