mirror of
https://github.com/memononen/nanovg
synced 2026-09-26 16:19:07 +03:00
Squashed wonky FT kerning via FT_Load_Glyph flag FT_LOAD_TARGET_LIGHT
This commit is contained in:
parent
2bead03bea
commit
30b9f3e047
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ int fons__tt_buildGlyphBitmap(FONSttFontImpl *font, int glyph, float size, float
|
|||
|
||||
ftError = FT_Set_Pixel_Sizes(font->font, 0, size);
|
||||
if (ftError) return 0;
|
||||
ftError = FT_Load_Glyph(font->font, glyph, FT_LOAD_RENDER | FT_LOAD_FORCE_AUTOHINT);
|
||||
ftError = FT_Load_Glyph(font->font, glyph, FT_LOAD_RENDER | FT_LOAD_FORCE_AUTOHINT | FT_LOAD_TARGET_LIGHT);
|
||||
if (ftError) return 0;
|
||||
ftError = FT_Get_Advance(font->font, glyph, FT_LOAD_NO_SCALE, &advFixed);
|
||||
if (ftError) return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue