-
Notifications
You must be signed in to change notification settings - Fork 475
[varLib.mutator] Does not mutate weight/width/italicAngle #1264
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
OK, it's clear what to do with OS/2.usWeightClass, usWidthClass and post.italicAngle. But, about the And about the "italic" font selection flags, I think we should not set those based on "slnt" axis. The latter should only be correlated to the "post.italicAngle". The "ital" registered axis might be used instead, but again if we do that, where do we put the threshold? When it's 100% italic, or >= 50 %? |
Thanks for working on this. Re bold bit, I think anything > SemiBold should be marked as bold... |
hmm I'm not sure that's a good idea. |
(dind't mean to close, sorry) |
actually, maybe for setting the Bold (and Italic) font selection flags, we should not look at the OS/2 weightClass at all, but rather we should use the STAT table. Hm, yeah 🤔 |
Google Fonts only sets fsSelection bits and macStyle bits to bold for the Bold style only. SemiBold, Black, ExtraBlack etc are set to Regular. |
We have a sheet outlining how we set bits and names for each style, https://docs.google.com/spreadsheets/d/1ckHigO7kRxbm9ZGVQwJ6QJG_HjV_l_IRWJ_xeWnTSBg/edit#gid=0. Some of this may be out of date though. |
OS/2 weight/width class and post.italicAngle have been implmented already with #1276 for the OS/2.fsSelection and head.macStyle bits, I'm not sure what we should do. Maybe simply check the nameID=2 (legacy style name used for RBBI style-linking) and set Bold/Italic flags when the string exactly matches either "Italic", "Bold" or "Bold Italic"? |
mutator is on the way to be deprecated in favor of instancer module. |
Because those are not in MVAR, but in standard axes. Quoting MVAR spec:
There's probably some binary flags that we can also tweak, re boldness, italicness, etc of the font.
The text was updated successfully, but these errors were encountered: