Throw error when compat ligature is wider than unit if FC-mono is enforced

This commit is contained in:
be5invis 2020-11-23 17:57:47 -08:00
parent 0031b3362e
commit cfd0c3d741
2 changed files with 6 additions and 3 deletions

View file

@ -80,7 +80,7 @@ export : define [buildOtl para glyphStore] : begin
local GSUB : buildGSUB para glyphStore markGlyphs
# Build compatibility ligatures
if (para.spacing > 0 && para.compLig) : begin
BuildCompatLigatures glyphStore GSUB GDEF para.compLig
if (para.enableLigation && para.compLig) : begin
BuildCompatLigatures para glyphStore GSUB GDEF para.compLig
return [object GSUB GPOS GDEF]