Implement leaning mark mechanism for F, L, P, b, d, h, k, p, q, r to get better mark placement. Now, "narrow" marks will align to these letters' extension parts (#1851).

This commit is contained in:
be5invis 2023-08-12 23:01:10 -07:00
parent 387389919c
commit f7fd09172b
33 changed files with 419 additions and 168 deletions

View file

@ -21,7 +21,7 @@ function assignSubRank(glyphStore) {
// "Fixed" subfamilies are properly built.
function validateMonospace(para, glyphStore) {
let awSet = new Set();
for (const [u, g] of glyphStore.encodedEntries()) {
for (const [u, n, g] of glyphStore.encodedEntries()) {
const aw = Math.round(g.advanceWidth || 0);
if (aw > 0) awSet.add(aw);
}