Utilize hb.js for building compatibility ligatures.

This commit is contained in:
be5invis 2023-08-16 21:56:56 -07:00
parent d35b849f68
commit 74846d3113
8 changed files with 99 additions and 101 deletions

View file

@ -11,7 +11,6 @@ import [buildCVSS] from"./gsub-cv-ss.mjs"
import [buildLOCL] from"./gsub-locl.mjs"
import [buildGsubThousands] from"./gsub-thousands.mjs"
import [buildMarkMkmk] from"./gpos-mark-mkmk.mjs"
import [BuildCompatLigatures] from"./compat-ligature.mjs"
define GDEF_SIMPLE 1
define GDEF_LIGATURE 2
@ -113,8 +112,4 @@ export : define [buildOtl para glyphStore] : begin
foreach gnMark markGlyphs.all : begin
Gr.Joining.or [glyphStore.queryByName gnMark] Gr.Joining.Classes.Left
# Build compatibility ligatures
if (para.enableLigation && para.compLig) : begin
BuildCompatLigatures para glyphStore GSUB GDEF para.compLig
return [object GSUB GPOS GDEF]