diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-03-05 12:44:54 -0800 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-16 12:16:32 -0700 |
commit | 56f51cda42125bb0c8612007917bf58d4c3c038c (patch) | |
tree | 88db3ec5ec2a0eab1524838637104ccf91b320c5 /scripts/lib/fontbuild/markFeature.py | |
parent | 15a678c34e3606e65c436c77c74b04539e2e14bb (diff) |
Make feature creation compatible with features.py.
Specifically the "mark" and "mkmk" features.
Diffstat (limited to 'scripts/lib/fontbuild/markFeature.py')
-rwxr-xr-x | scripts/lib/fontbuild/markFeature.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/lib/fontbuild/markFeature.py b/scripts/lib/fontbuild/markFeature.py index c966085..e2e36c1 100755 --- a/scripts/lib/fontbuild/markFeature.py +++ b/scripts/lib/fontbuild/markFeature.py @@ -1,3 +1,6 @@ +from fontbuild.features import updateFeature
+
+
aliases = [["uni0430", "a"], ["uni0435", "e"], ["uni0440", "p"], ["uni0441", "c"], ["uni0445", "x"], ["uni0455", "s"], ["uni0456", "i"], ["uni0471", "psi"]]
def GetAliaseName(gname):
@@ -79,6 +82,4 @@ def GenerateFeature_mark(font): text += "} mark;\n"
- if "mark" not in font.features.tags:
- font.features.tags.append("mark")
- font.features.values["mark"] = text
+ updateFeature(font, "mark", text)
|