-
Notifications
You must be signed in to change notification settings - Fork 32
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
How to derive an Italic TTF from the current Slant axis? #248
Comments
Actually I tested it, sorry @anthrotype for the noise asking :) This works for me:
The name table etc need updating, I expect @m4rc1e can confirm exactly what. |
And then to make the Roman, I pin the slnt axis to 0 to eliminate it:
|
Also, Cosimo explained offline,
|
Looks good to me. We just need to look at the file size. I think this is going to be twice the download size to gain that ability, that way, the other way is maybe 1.85 times as large;) |
Well, its not x2, its 1.4x. But yes, the lack of proper VF support in CSS has really screwed us :( |
This is excellent!
|
@rsheeter had some ideas about how a slnt axis could work with current CSS, based on a misunderstanding I had explained... it turns out on a closer reading of @thundernixon 's test page that CSS is actually good for slnt and its just Safari still hasn't implemented it correctly as Chrome and Firefox have. Alas! I also note that, sadly, fonts with an Still, I hacked up a version of Stephen's page to see about the ital axis idea @ https://jsbin.com/peloperami/edit?css,output - but sadly this doesn't work as hoped and in fact turns off the auto slanting which is arguably worse... I also thought that, since the GF CSSv2 API has italics requested the same way if there is actual |
So, I was going to say, nothing to do here, it seems we should proceed with the 40% hit, unless... How many But alas, this is also not good, according to my experiments with Recursive in the API today @ https://jsbin.com/ticige/edit?html,output It seems that the underlying CSS bug here is that both Chrome and Safari auto/faux-slants So users who set font-variations-settings to create the slant effect desired would Yikes :) Safari: Chrome: So, I think we ought to proceed as planned, where FB works on polishing the Roman design space this week(end) then next week switches mode to the Slant-max masters (27?), and then in the build process you fontmake your 54 masters to a single TTTF with slnt, and then subspace 2 TTFs out of it. |
Here’s the Slant recipe I follow for every master,
|
I am still going back and forth on this; the other 2 families in this situation are Recursive and Inter (eg google/fonts#2386 (comment)) and it may be best to just grin and bear the bad Safari situation because Apple will eventually fix Safari (and GF can fix the specimen page to show the slant styles) then everything is good. |
I'm posting these notes that @dberlow made from the FB/Google meeting (with DB and DC only) Thursdays February 17, 2022.
I proposed an alternative, to keep the source files with a single design space, but adjust the build script to derive from the current single design space TTF two children "subspace" or "partial instance" TTFs, a Roman which is simply dropping the slant axis, and an Italic which is all the axes with a single fixed Slant axis value instantiated. I think the fonttools subsetter has been capable of outputting such subspaces for a few years and should be very reliable at doing this. Then, going forward as changes are made to the regular, they will be transferred to the full range of the slant axis as intended, and therefore to the Italic subspace output.
But I am not sure the fonttools subsetter can make a subspace for the Italic this way. @anthrotype wdyt?
The text was updated successfully, but these errors were encountered: