Allow any languages under DFLT script

This commit is contained in:
Martin Hosken 2018-06-20 09:42:46 +01:00
parent f251c8d665
commit 1ae0bf87a0

View File

@ -688,9 +688,6 @@ class Builder(object):
raise FeatureLibError(
"Language statements are not allowed "
"within \"feature %s\"" % self.cur_feature_name_, location)
if language != 'dflt' and self.script_ == 'DFLT':
raise FeatureLibError("Need non-DFLT script when using non-dflt "
"language (was: \"%s\")" % language, location)
self.cur_lookup_ = None
key = (self.script_, language, self.cur_feature_name_)