-
Notifications
You must be signed in to change notification settings - Fork 475
[name] make addMultilingualNames() add mac names by default #1359
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
[name] make addMultilingualNames() add mac names by default #1359
Conversation
…, which makes it behave like before
# We cannot not make a Windows name: make sure we add a | ||
# Mac name as a fallback. This can happen for exotic | ||
# BCP47 language tags that have no Windows language code. | ||
mac = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if there is neither windows nor mac compatible name? shouldn't we error, or return None or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. In the previous revision this situation passed silently also. Leaning towards an error.
Hm, not sure why the tests are failing, maybe I messed something up locally when merging #1357 |
@justvanrossum what's the status of this? Can it be merged? this TODO in varLib may be related: fonttools/Lib/fontTools/varLib/__init__.py Lines 78 to 83 in 1fd9bf6
|
Can be merged as far as I'm concerned, thanks! |
as of #1359, both sets of names are added by default. This allows users to optionally exclude Macintosh platform names (i.e. mac=False).
As discussed in #930.