-
Notifications
You must be signed in to change notification settings - Fork 475
[subset] Keep MacRoman English name entry if no Unicode ones are available? #146
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
Comments
on a related note, I think the default for the --name-languages option should also include the Macintosh language ID '0', besides the current Windows' 0x0409, if you don't want that the option --name-legacy be overridden the latter. Macintosh and Windows language IDs don't seem to overlap with each other, so we may well set |
Got patch? |
I tried to make a patch that keeps any MacRoman English name entries (platformID=1, platEncID=0, langID=0) if no Windows-Unicode English ones are available (platformID=3, platEncID=[0, 1, 10], langID=0x0409). However, if I run that on the Apple Color Emoji you mention in the example, a new problem arises. So, it looks like one can't simply consider each nameID separately and pick up the Unicode version as the "best name per nameID/langID". Another approach would be to treat at least the basic nameIDs 1–6 as a group: that is, keeping them all if any one of them does not have an Unicode English equivalent. |
I'm open to that. We need to find a good set of names and keep them, and probably drop everything else. |
Just for the record, in case no one brought it up yet, missing MacRoman English name entries (platformID=1, platEncID=0, langID=0) for the basic nameIDs – probably 1–6 is causing problems in MS Office 2011 for Mac. Fonts do not load into font menu. |
are you saying that the font has valid Windows-Unicode nameIDs (1-6) but MS Office 2001 Mac does not load it unless the MacRoman names are also there? |
Yes, it seems that way.
|
Well I just took a random font, stripped of all its nameIDs with platform=1 (Mac), leaving in only platform=3 (Windows), and loaded it in Word 2011 for Mac [version 14.5.8 (151023)] and it works... |
Hah, great! I am on a slightly older version (150604) where it is an issue.
|
that's bad... :-( well, with pyftsubset you can keep them if you pass the options |
I think I will just suggest people to update Office and do this only when they cannot update. |
Related to this, the subsetter should probably keep MacRoman names for PostScript names (not just nameid 6, but also the PostScript names listed in |
Currently default is --no-name-legacy, which drops all non-Unicode names. But some fonts (like Apple Color Emoji) only have a MacRoman English name, no Unicode ones.
In general we should pick the best name per nameID/language.
The text was updated successfully, but these errors were encountered: