featureVars: avoid duplicate refs to 'rvrn' feature in default langsys

the buildGSUB function creates an empty GSUB with no FeatureRecords, so the
FeatureIndex list should be empty initially; the index of the newly created
rvrn feature record will be appended later on by addFeatureVariationsRaw
function.
This commit is contained in:
Cosimo Lupo 2019-05-29 13:40:57 +01:00
parent bec188c816
commit aa8a5bc616
No known key found for this signature in database
GPG Key ID: 20D4A261E4A0E642

View File

@ -342,7 +342,7 @@ def buildGSUB():
langrec = ot.LangSysRecord() langrec = ot.LangSysRecord()
langrec.LangSys = ot.LangSys() langrec.LangSys = ot.LangSys()
langrec.LangSys.ReqFeatureIndex = 0xFFFF langrec.LangSys.ReqFeatureIndex = 0xFFFF
langrec.LangSys.FeatureIndex = [0] langrec.LangSys.FeatureIndex = []
srec.Script.DefaultLangSys = langrec.LangSys srec.Script.DefaultLangSys = langrec.LangSys
gsub.ScriptList.ScriptRecord.append(srec) gsub.ScriptList.ScriptRecord.append(srec)