Skip to content

Emit XML even for names whose platform encoding is unsupported#235

Closed
brawer wants to merge 1 commit intofonttools:masterfrom
brawer:name
Closed

Emit XML even for names whose platform encoding is unsupported#235
brawer wants to merge 1 commit intofonttools:masterfrom
brawer:name

Conversation

@brawer
Copy link
Copy Markdown
Contributor

@brawer brawer commented Apr 16, 2015

When dumping the Macintosh Skia font to XML, the TTX tool crashed
with a Python exception. After this change, the font can be dumped
fine. This was caused by a name record with platformID=1 (Macintosh)
and platEncID=2 (Traditional Chinese).

When dumping the Macintosh Skia font to XML, the TTX tool crashed
with a Python exception. After this change, the font can be dumped
fine. This was caused by a name record with platformID=1 (Macintosh)
and platEncID=2 (Traditional Chinese).
@behdad
Copy link
Copy Markdown
Member

behdad commented Apr 16, 2015

Thanks. I'm merging this. We can adjust for the exception if you agree, on a followup commit.

@behdad
Copy link
Copy Markdown
Member

behdad commented Apr 16, 2015

Merged manually.

@behdad behdad closed this Apr 16, 2015
behdad pushed a commit that referenced this pull request Apr 17, 2015
This will make it impossible to process fonts with super-broken
name tables. But we do not handle arbitrary broken fonts anyway,
so this is arguably better than silently ignoring junk content.
Resolves a review comment in #235.

In the unit test, replace calls of deprecated unittest.assertEquals()
by calls of unittest.assertEqual().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants