This commit is contained in:
be5invis 2023-05-24 23:34:09 -07:00
parent 539c828605
commit 942deb3bbe
7 changed files with 395 additions and 430 deletions

View file

@ -390,12 +390,17 @@ function byTagPreference(a, b) {
}
function queryCvFeatureTagsOf(sink, gid, glyph, tagSet) {
const cvs = AnyCv.query(glyph).sort(byTagPreference);
let existingFeatures = new Map();
let existingTargets = new Set();
for (const gr of cvs) {
const target = gr.get(glyph);
if (target === gid) continue;
if (existingTargets.has(target)) continue;
existingTargets.add(target);
let series = existingFeatures.get(gr.tag);
if (!series) {
if (tagSet) {