Cont
This commit is contained in:
parent
539c828605
commit
942deb3bbe
7 changed files with 395 additions and 430 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue