* Refine the width of A and V.

* Changed the layout of character variants sample image for better clarity.
This commit is contained in:
Belleve Invis 2020-05-21 19:22:23 -07:00
parent 38160e1084
commit 4f286a42f8
73 changed files with 725 additions and 551 deletions

View file

@ -41,7 +41,13 @@ function getCvData(variants) {
for (const [sampler, gr] of samplerGroups) {
gr.ligatureSampler = / /.test(sampler);
gr.descSampleText = gr.ligatureSampler ? sampler.split(" ") : [...sampler];
gr.configs.sort((a, b) => (a.tag < b.tag ? -1 : a.tag > b.tag ? 1 : 0));
gr.configs.sort((a, b) => {
const ta = (a.tag || a.tagUpright || a.tagItalic || "").toLowerCase();
const tb = (b.tag || b.tagUpright || b.tagItalic || "").toLowerCase();
if (ta < tb) return -1;
if (ta > tb) return 1;
return 0;
});
gr.rank = rankOf(gr.descSampleText[0][0]);
}
return [...samplerGroups.values()].sort((a, b) => b.rank - a.rank);