summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/features.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-04-10 12:33:20 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:34 -0700
commit0d32a1be3491c895b78015b8aec965557390fd3e (patch)
tree3d3f852912488c966a9fc8e028e10a9aab11ca22 /scripts/lib/fontbuild/features.py
parentc88d69e5c511006a649cc97e890e144a6fc970ca (diff)
Support pair positioning rules.
Diffstat (limited to 'scripts/lib/fontbuild/features.py')
-rwxr-xr-xscripts/lib/fontbuild/features.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/lib/fontbuild/features.py b/scripts/lib/fontbuild/features.py
index 1f59801..4e128a5 100755
--- a/scripts/lib/fontbuild/features.py
+++ b/scripts/lib/fontbuild/features.py
@@ -125,17 +125,20 @@ class FilterFeatureWriter(FDKSyntaxFeatureWriter):
super(FilterFeatureWriter, self).gsubType4(target, replacement)
def gposType1(self, target, value):
- """Check a positioning rule."""
+ """Check a single positioning rule."""
if self._checkRefs([target], self.posErr):
super(FilterFeatureWriter, self).gposType1(target, value)
+ def gposType2(self, target, value, needEnum=False):
+ """Check a pair positioning rule."""
+ if self._checkRefs(target, self.posErr):
+ super(FilterFeatureWriter, self).gposType2(target, value, needEnum)
+
# these rules may contain references, but they aren't present in Roboto
def gsubType3(self, target, replacement):
raise NotImplementedError
def gsubType6(self, precedingContext, target, trailingContext, replacement):
raise NotImplementedError
- def gposType2(self, target, value):
- raise NotImplementedError
def feature(self, name):
"""Adds a feature definition only once."""