[fonttools/fonttools] a45a4e: [beyond64k] Drop post 2.0 names at 65536 glyphs, n...

1 view
Skip to first unread message

Cosimo Lupo

unread,
Jun 18, 2026, 1:30:58 PM (7 days ago) Jun 18
to fontto...@googlegroups.com
Branch: refs/heads/beyond-64k
Home: https://github.com/fonttools/fonttools
Commit: a45a4e608471125e0b4f0cf95cfc8a1b51bd04c6
https://github.com/fonttools/fonttools/commit/a45a4e608471125e0b4f0cf95cfc8a1b51bd04c6
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2026-06-18 (Thu, 18 Jun 2026)

Changed paths:
M Lib/fontTools/ttLib/beyond64k.py
M Tests/ttLib/beyond64k_test.py

Log Message:
-----------
[beyond64k] Drop post 2.0 names at 65536 glyphs, not 65537

post 2.0 numberOfGlyphs is uint16, so a glyph count of exactly 65536 already overflows it even though every glyph id still fits. _drop_beyond64k_post_glyph_names gated on > 0x10000 (i.e. >= 65537) instead of > 0xFFFF (>= 65536), leaving such a font with an unencodable post 2.0 table.


Commit: 1942214095ab53a0395f04acf31b80db81e0eeaf
https://github.com/fonttools/fonttools/commit/1942214095ab53a0395f04acf31b80db81e0eeaf
Author: Cosimo Lupo <cos...@anthrotype.com>
Date: 2026-06-18 (Thu, 18 Jun 2026)

Changed paths:
M Lib/fontTools/merge/__init__.py

Log Message:
-----------
[merge] Use upper tables at exactly 65536 glyphs

numGlyphs is uint16, so the threshold is count > 0xFFFF, not > 0x10000.


Compare: https://github.com/fonttools/fonttools/compare/ea0cb7a974a4...1942214095ab

To unsubscribe from these emails, change your notification settings at https://github.com/fonttools/fonttools/settings/notifications
Reply all
Reply to author
Forward
0 new messages