Produce more meaningful glyph names

This commit is contained in:
be5invis 2023-11-16 19:32:03 -08:00
parent 7f35523506
commit dcc2de59f4
3 changed files with 82 additions and 28 deletions

View file

@ -78,6 +78,9 @@ function DecompositionProp(key) {
if (!Array.isArray(composition)) throw new Error("Must supply a GID array");
if (!glyph.related) glyph.related = {};
glyph.related[key] = composition;
},
amendOtName(baseName, index) {
return `${baseName}.d${index}`;
}
};
}