Make TTFA to consider texture features

This commit is contained in:
be5invis 2023-11-10 03:33:40 -08:00
parent cfb3826680
commit 5b4688ba1c

View file

@ -60,7 +60,15 @@ class Alignment {
let sizeBefore = this.allGlyphs.size; let sizeBefore = this.allGlyphs.size;
for (const [go, gd] of this.allGlyphs) { for (const [go, gd] of this.allGlyphs) {
const cvs = Gr.AnyCv.query(go); const cvs = [
...Gr.AnyCv.query(go),
Gr.Texture.ExtL,
Gr.Texture.ExtR,
Gr.Texture.ExtLR,
Gr.Texture.ShrL,
Gr.Texture.ShrR,
Gr.Texture.ShrLR
];
for (const gr of cvs) { for (const gr of cvs) {
const gnLinked = gr.get(go); const gnLinked = gr.get(go);
if (!gnLinked) continue; if (!gnLinked) continue;