Skip to content

[designspace] write italic angle source property to UFO#2389

Merged
justvanrossum merged 2 commits intomainfrom
ds-italic-angle
Jan 20, 2026
Merged

[designspace] write italic angle source property to UFO#2389
justvanrossum merged 2 commits intomainfrom
ds-italic-angle

Conversation

@justvanrossum
Copy link
Copy Markdown
Member

This fixes #2386.

@justvanrossum justvanrossum merged commit 7ef829a into main Jan 20, 2026
4 checks passed
@justvanrossum justvanrossum deleted the ds-italic-angle branch January 20, 2026 10:05
setattr(fontInfo, ufoName, round(metric.value))

fontInfo.italicAngle = fontSource.italicAngle

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would mean that the last source read defines italicAngle in the post table for the whole font, correct? That is, that setting is unused/discarded upon export for any other source but the last one.

I see how each source in a font design can have its own italic angle (certainly when defining a slant axis), but is that data used anywhere else now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is a per-source setting, and generally each Fontra font source corresponds to a UFO in the designspace system. So it is individual per UFO. However...

On export as .ttf or .otf only a single value will go into the font as this field is not variable. I'm guessing that font compilers will take the value from the default source in a system.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I partly misread your comment, you were talking about the post table already. I suppose only the last bit of my answer is relevant to your question.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Value of Italic Angle field in sources panel is not persisted with .designspace format and not exported to TTF/OTF

2 participants