summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/mkmkFeature.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-03-05 12:44:54 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:32 -0700
commit56f51cda42125bb0c8612007917bf58d4c3c038c (patch)
tree88db3ec5ec2a0eab1524838637104ccf91b320c5 /scripts/lib/fontbuild/mkmkFeature.py
parent15a678c34e3606e65c436c77c74b04539e2e14bb (diff)
Make feature creation compatible with features.py.
Specifically the "mark" and "mkmk" features.
Diffstat (limited to 'scripts/lib/fontbuild/mkmkFeature.py')
-rwxr-xr-xscripts/lib/fontbuild/mkmkFeature.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/lib/fontbuild/mkmkFeature.py b/scripts/lib/fontbuild/mkmkFeature.py
index e2195f5..a839dae 100755
--- a/scripts/lib/fontbuild/mkmkFeature.py
+++ b/scripts/lib/fontbuild/mkmkFeature.py
@@ -1,3 +1,6 @@
+from fontbuild.features import updateFeature
+
+
def CreateAccNameList(font, acc_anchor_name):
lst = []
for g in font:
@@ -56,6 +59,4 @@ def GenerateFeature_mkmk(font):
text += "} mkmk;\n"
- if "mkmk" not in font.features.tags:
- font.features.tags.append("mkmk")
- font.features.values["mkmk"] = text
+ updateFeature(font, "mkmk", text)