Move the glyph saving logic to MJS side (#2479)

This commit is contained in:
Belleve 2024-08-21 21:27:21 -10:00 committed by GitHub
parent 499b97e3a1
commit 5ee209c97f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 84 additions and 68 deletions

View file

@ -108,6 +108,11 @@ define [buildGDEF para glyphStore markGlyphs] : begin
return GDEF
export : define [buildOtl para glyphStore] : begin
# Link glyph pairs by suffix
Gr.linkSuffixPairGr glyphStore 'NWID' 'WWID' Gr.Nwid Gr.Wwid
Gr.linkSuffixPairGr glyphStore 'lnum' 'onum' Gr.Lnum Gr.Onum
Gr.linkSuffixGr glyphStore 'aplForm' Gr.AplForm
local markGlyphs { .all [new Set] .markAttachClassDef [new Map] .markGlyphSets {} }
local GPOS : buildGPOS para glyphStore markGlyphs
local GDEF : buildGDEF para glyphStore markGlyphs