From e8593dc70b3a69b8748c2edb8b9c7915c691d168 Mon Sep 17 00:00:00 2001 From: Erik van Blokland Date: Thu, 14 Nov 2024 23:44:29 +0100 Subject: [PATCH] Provide access to addLocationLabel and addLocationLabelDescriptor See https://github.com/LettError/designSpaceRoboFontExtension/issues/105#issuecomment-2477536549 --- .gitignore | 1 + Lib/ufoProcessor/ufoOperator.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 904f154..9aa3abb 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ Tests/20190830 benders/Skateboard Previews /_old_stuff /Tests/ds5/instances /Tests/ds5/ds5_log.txt +Tests/ds5/makeOneInstanceOutput* diff --git a/Lib/ufoProcessor/ufoOperator.py b/Lib/ufoProcessor/ufoOperator.py index 6d1005b..aef0ce9 100644 --- a/Lib/ufoProcessor/ufoOperator.py +++ b/Lib/ufoProcessor/ufoOperator.py @@ -265,6 +265,12 @@ def addAxis(self, axisDescriptor): def addAxisDescriptor(self, **kwargs): return self.doc.addAxisDescriptor(**kwargs) + def addLocationLabel(self, locationLabelDescriptor): + self.doc.addLocationLabel(locationLabelDescriptor) + + def addLocationLabelDescriptor(self, **kwargs): + return self.doc.addLocationLabelDescriptor(**kwargs) + def addRule(self, ruleDescriptor): self.doc.addRule(ruleDescriptor)