You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
herrstrietzel
changed the title
Variable font rendering: Diacritics based on composites show offsets/incorrect dx
Variable font rendering: Diacritics based on composites are misaligned to base glyph
Jan 14, 2025
Apparently, Opentype.js 2.0 has issues rendering glyphs with diacritics correctly in VFs
Steps to reproduce
Set variation setting deviating from the fonts defaults like so
Diacritic/component alignment works correctly for default axes like
When inspecting the glyph's components the
dx
values stick to the default values (wght:400, wdth:100) regardless of the current axes settings.Assumption this issue may be caused by a miscalculation in function
buildPath(glyphs, glyph)
missingdx
adjustments.Tested with these VF fonts:
Reproducible in the font inspector demo
using
https://opentype.js.org/dist/opentype.js
;See also codepen
The text was updated successfully, but these errors were encountered: