Make TTFA to consider texture features
This commit is contained in:
parent
cfb3826680
commit
5b4688ba1c
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue