memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.06k stars 767 forks source link

fix for freetype glyph loading #588

Closed d4tocchini closed 3 years ago

d4tocchini commented 3 years ago

With nanovg as renderer for @rxi's excellent lite code editor, I noticed the following undesirable glyph wonkiness when using FreeType:

Screen Shot 2020-10-01 at 12 07 36 AM

The s glyph is particularly egregious.

Adding FT_LOAD_TARGET_LIGHT to the FT_Load_Glyph flags (see docs) did the trick:

Screen Shot 2020-10-01 at 12 08 16 AM

memononen commented 3 years ago

Thanks for the fix!