[fonttools/fonttools] dba908: [feaLib] Fix name-table parsing for multibyte Mac ...

1 view
Skip to first unread message

Miguel Sousa

unread,
May 20, 2026, 6:42:27 PMMay 20
to fontto...@googlegroups.com
Branch: refs/heads/miguelsousa/cvXX-feature-support
Home: https://github.com/fonttools/fonttools
Commit: dba9085e59e1600c0563a31ae4f73e8a5cba7f8b
https://github.com/fonttools/fonttools/commit/dba9085e59e1600c0563a31ae4f73e8a5cba7f8b
Author: Miguel Sousa <mso...@adobe.com>
Date: 2026-05-20 (Wed, 20 May 2026)

Changed paths:
M Lib/fontTools/feaLib/parser.py
M Tests/feaLib/builder_test.py
A Tests/feaLib/data/bug1196.fea
A Tests/feaLib/data/bug1196.ttx
M Tests/feaLib/parser_test.py

Log Message:
-----------
[feaLib] Fix name-table parsing for multibyte Mac encodings (#1196)

The unescape_string_ helper used to decode each "\XX" escape as a single
byte, which broke multibyte encodings (x_mac_japanese_ttx and friends)
whenever one character's bytes were split across escapes or across an
escape/literal-ASCII boundary (e.g. "\95F" = Shift-JIS 0x95 0x46 = 彦).

Build the full byte sequence from literal chars + \XX escapes and decode
it in one pass.



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