-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmap.unicode doesn't work for symbol fonts #7
Comments
Hi, can you submit a pull request, and then give an example that shows it works as expected? Happy to consider a patch if you send one in. Sorry for the very long delay, Prawn (and its dependencies) went through a period of inactivity, but we're back actively working on things now! |
Yes, for fsymbols.org/css/AndroidEmoji.ttf
outputs
The tool definitely can't see Emoji. |
@ibmua Can you provide a link so we can download the font file itself to reproduce the error? |
I did. |
My apologies, I didn't see the url in the text, I was looking for a clickable URL. I have a situation coming that may need better emoji support so hopefully I'll get a chance to look into this soon-ish. Thanks again for the code snippets, it will help a lot! |
≥^.^≤ |
When getting the Unicode character map from the cmap table list, TTFunk only allows a value of 1 for "encoding_id" (which seems to equate to language code although I'm not sure).
According to Apple's spec for the cmap table the language code in Format 4 can be 0 for language independent fonts. This seems to be the case for Microsoft's symbol fonts (Webdings and Wingdings*).
So I think the unicode? method of subtable should allow encoding_id of 1 or 0. Currently symbol fonts' unicode character mapping can't be used. This is preventing me from outputting symbols to PDFs generated by Prawn, even though there's a Unicode mapping to the glyphs.
The text was updated successfully, but these errors were encountered: