Closed aaronbell closed 3 years ago
Looks like this issue is resolved by #448 but hasn't quite made it to a production release.
Just wanted to let you know that it isn't as edge case as you might think! 😄
thanks, sorry about that. There's a few pending PRs (#452, #458) which I haven't had time to fully review and that are currently holding us from cutting a new release. Hopefully before end of this week
@aaronbell I just cut a new v2.19.2 release containing the fix
Thanks @anthrotype!
Thanks @anthrotype!
[Sorry I dug a bit deeper and realized the issue is different, so have modified here]
I am running "flattenComponents" on a font and have encountered a situation where the filter appears to be changing the component being used in a glyph.
In YuseiMagic, the semicolon glyph contains the period and comma glyphs as components. However, when flattened, the end result for the semicolon is:
It appears that the flattenComponent filter has only grabbed the period component from the comma, and left the path contained in the glyph.
Switching the filter to "decomposeComponents" resolves the issue:
While workable as a work around, this significantly increases file size, especially for CJK fonts where components are being commonly used.
For test purposes I have attached a glyphs source that shows the glyph structures, as well as output fonts showing the flatten vs decompose outputs. YuseiMagic_flatten.glyphs.zip demo fonts.zip
Additionally, you can take a look at: https://github.com/tanukifont/YuseiMagic for the build process I am using. Do note that I recently submitted a PR that changes flatten over to decompose for the purposes of making the font work properly.