I have a variable font with all instances style linked but in the exported font fsSelection is Regular. How can I set it to Italic?
Thanks!
I have a variable font with all instances style linked but in the exported font fsSelection is Regular. How can I set it to Italic?
Thanks!
Style linking works differently in a variable font, namely axis-based, not instance-based. What is used is a STAT value of format 3. I believe it currently cannot be done out of the box. We are working on an implementation.
Thanks! Altough my problem is not with style linking but how to setup macStyle and fsSelection to italic. I mentioned style linking becuase I thought Glyphs use that info to set it on statics right?
Reviving this old thread…
I still think fsSelection and macStyle should be set to “italic” on Italic VFs.
That is implemented in the upcoming 3.2 update.
Thanks!!
In Glyphs 3.2, it will be that if the name of the variable export settings has “Italic” in the name, those fields should be set correctly.
Great thanks! I’m wondering if it should apply also for “Oblique”
Not sure if a “Oblique” will work as an italic (in terms of style linking).
I am working on a single-style italic font. Is there a way to set fsSelection to italic? Using “This instance is the italic of”, and leaving the field empty, does not set the fsSelection bit.
The “isItalic” setting should set the first bit in fsSelection.
You mean something like this?
for instance in Font.instances:
instance.isItalic = True
Just realized, yes, the italic bit in fsSelection is set.
The background is: I am playing around with Fontbakery, and it still insists that “Font is not italic, so post.italicAngle should be equal to zero.” Looks like there is something else in the font missing that indicates it is italic?
Ah, okay, I finally found out why Fontbakery was behaving so strangely: It refers to the file name! Of all things, this is what I would expect least.
So much for that. Just rename the file to pass the tests. Maybe this information will be helpful for someone at some point.
Sorry for the hassle and the wrong assumption that Glyphs does not write the italic flag.
You might post this on the fontbakery repo.
That’s true. For the record: “Font is not italic” com.google.fonts/check/italic_angle · Issue #4372 · fonttools/fontbakery · GitHub