Skip to content

Support Unicode cmap platform records#590

Open
elcritch wants to merge 1 commit into
treeform:masterfrom
elcritch:support-unicode-cmap-platforms
Open

Support Unicode cmap platform records#590
elcritch wants to merge 1 commit into
treeform:masterfrom
elcritch:support-unicode-cmap-platforms

Conversation

@elcritch

Copy link
Copy Markdown

Pixie currently parses cmap subtables only when the encoding record uses the Windows platform ID. Some valid fonts, including Academy Engraved LET and Apple Chancery on macOS, expose their useful cmap through the Unicode platform instead, causing Pixie to report no renderable glyphs.

Accept both Unicode (platform 0) and Windows (platform 3) cmap encoding records. The regression test converts the existing Ubuntu fixture to Unicode-only cmap records and verifies that its glyph map remains available.

Tested with:

  • nim r tests/test_fonts.nim

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.

1 participant