fix: off by one in fit_glyphs (#474)

This commit is contained in:
Hojjat Abdollahi 2026-02-20 13:27:42 -07:00 committed by GitHub
parent cc73876fc9
commit 29ac278e76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 15 additions and 15 deletions

View file

@ -1441,7 +1441,7 @@ impl ShapeLine {
break;
}
glyphs_w += g_w;
glyph_end = glyph_idx;
glyph_end = glyph_idx + 1;
}
(glyph_end, glyphs_w)
} else {

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0de01fa40e15779c52c39652369f6c636ce0c018c3ef488d99cc7cfcd0d53eb4
size 4957
oid sha256:73d2223f481fd301d2f28553e1efb61b0598c1ab6e11c93f7a2ddfe4b40d0326
size 5556

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cb2f9fccbe5dd17854cc9975cba81a8357ca299d1970585dac025d81beaa6a29
size 5099
oid sha256:12ec72d420500ed60b7e01be3f3b67d4103d2d52b06c1d05072ef50a4f725526
size 5698

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab08b3a7061db4e32ece8aec5bc6c4a32939fa91186c31f76eb901adcdbdd0fc
size 12218
oid sha256:161c1a36c05548109847a9f18fa8efd3560c28185bba85736eb2e244b204eeb5
size 12696

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:181b48bf70119b2df56521c287b2cd1b60ab1677ebaa03ea5f01dee522693370
size 5412
oid sha256:f345206eb456e4e689be51afaf0de25934bfa99cc466c2abe62db8352152cfe5
size 5771

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0fb2a94c8892736ae1e05ef5d42e541eff7eae8826cae6e19fb34727b1ff6ee6
size 12179
oid sha256:ac15ef08a12fd4ca4dd7c7daa56bfc659b33d20d331012a831f690c9adfde6c8
size 12406

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4cf481f25cf06518eddfc8794322bb13998f39709076a2d07ece2e2528d7364e
size 16096
oid sha256:9575c7ddc027ed59e1b8ce465b3f52e0a9d53cfb9eac438221026de1e0c601d6
size 16419

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56fcff35d50673ec790dfacc82b55513f643628d6745a7eec2a7082b4ced04f7
size 12004
oid sha256:9a3eb2c4514c4e2cc94db4bba650fae8df46ffc330d541618804d351808b6dca
size 12227