-
Notifications
You must be signed in to change notification settings - Fork 308
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
Correct family and style data in name table. #51
Conversation
This uncomments some code which distinguishes between Regular/Bold and other weights when setting the UFOs' styleMapFamilyName attribute, which is used by the FDK to set the output OTFs' family names (this association is documented here: http://unifiedfontobject.org/versions/ufo2/fontinfo.html). It's not clear why this code was commented out in the first place. Part of #37
cc @roozbehp |
Looks about right, but I have no idea why this wasn't done before. So, please merge if you know what you are doing, or get @roozbehp's feedback. |
This propagates to name ID 6 in the name table, and font name info in the CFF table.
Without this, ufo2fdk sets both Light and Regular to 400 by default.
This should be fixed, finally, but what still seemed odd to me was that the weight class for Thin is set to 250 (when I would have expected 100) in instanceNames.py. The binaries at https://github.com/google/fonts/tree/master/apache/roboto also use 250. So when you have the font locally and it's used to render text in a browser, |
Alright, so I will leave it alone for now and we can re-open this if needed. |
Correct metadata related to font names and weights.
Hey there @jamesgk @behdad @roozbehp @jungshik |
@mikmikmik Thank you for the feedback. I always argued for using fsWeight = 100 for Noto. If necessary, we can have a special Windows binary with fsWeight=250. Android, Linux and Mac do not care. See #179. |
I'll make thin 250 and extra light 275 as per the documented Google fonts
requirements.
…On Mar 6, 2017 4:53 PM, "jungshik" ***@***.***> wrote:
@mikmikmik <https://github.com/mikmikmik> Thank you for the feedback. I
always argued for using fsWeight = 100 for Noto. If necessary, we can have
a special Windows binary with fsWeight=250. Android, Linux and Mac do not
care. See #179 <#179>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#51 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAP9y-uhn4V0WFrU8J-j13OvYZj8Qrz7ks5rjIBKgaJpZM4E-vQR>
.
|
Microsoft actually set Thin to 100 too : |
This uncomments some code which distinguishes between Regular/Bold and other weights when setting the UFOs' styleMapFamilyName attribute, which is used by the FDK to set the output OTFs' family names (this association is documented here: http://unifiedfontobject.org/versions/ufo2/fontinfo.html). It's not clear why this code was commented out in the first place.
Part of #37