dfrg / swash

Font introspection, complex text shaping and glyph rendering.
Apache License 2.0
584 stars 34 forks source link

Variable font renders incorrectly #54

Open maxmelander opened 1 week ago

maxmelander commented 1 week ago

Hey! The font Exposure from 205TF renders incorrectly with certain settings. The EXPO axis range is [-100, 100]. On swash version 0.1.12 it did not render any change on values > 0, but this seems to have been fixed between 0.1.12 and 0.1.17!

However, the issue I'm seeing now is that it renders incorrectly when the variation makes the paths cross each other. If that makes sense.

This is what it should look like with an EXPO value of 100:

Screenshot 2024-06-26 at 15 44 14

And this is what swash renders:

Screenshot 2024-06-26 at 15 44 01