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

1 view
Skip to first unread message

Cosimo Lupo

unread,
Jun 18, 2026, 9:18:56 AM (7 days ago) Jun 18
to fontto...@googlegroups.com
Branch: refs/heads/beyond64k-post-drop-65536
Home: https://github.com/fonttools/fonttools
Commit: d39bc044b2c4a357206490a0768d2f29a5901a51
https://github.com/fonttools/fonttools/commit/d39bc044b2c4a357206490a0768d2f29a5901a51
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.



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