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
There appears to be a rounding bug in msdfgen which causes glyphs to have incorrect vertical and horizontal registration. Look at the position of the u relative to the m in the attached image. FreeType on the left versus MSDF on the right.
MSDF has been disabled by default in glfontda5d920 primarily to log the issue in the commit history. MSDF is currently enabled in most of the examples. The metrics used to calculate the glyph bounds are the same. It is likely that msdfgen has a slightly different scaling of the contours than FreeType so the fix possibly requires making changes to msdfgen.
There appears to be a rounding bug in msdfgen which causes glyphs to have incorrect vertical and horizontal registration. Look at the position of the u relative to the m in the attached image. FreeType on the left versus MSDF on the right.
MSDF has been disabled by default in
glfont
da5d920 primarily to log the issue in the commit history. MSDF is currently enabled in most of the examples. The metrics used to calculate the glyph bounds are the same. It is likely that msdfgen has a slightly different scaling of the contours than FreeType so the fix possibly requires making changes to msdfgen.The FreeType metrics:
glyb/src/glyph.cc
Lines 575 to 580 in da5d920
The MSDF metrics:
glyb/src/msdf.cc
Lines 147 to 153 in da5d920
The text was updated successfully, but these errors were encountered: