diff options
Diffstat (limited to 'src/font.cpp')
| -rw-r--r-- | src/font.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/font.cpp b/src/font.cpp index 0e69dd6..e905da3 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -106,9 +106,6 @@ void FontType_Inner_CalcTransforms(const FontType *ft, FontRender *fr, FontInsta // Trying to get pixel-perfect rendering with mannequin-7. // Everything is now sized and positioned correctly. // However, there is a ghost layer around the letter. - // Could be related to uv (set to a .5 value). - // - // Fonts are not aliased correctly - may or may not be related to ghosting. font_glyph_spacing = ft->spacing.em_size * fr->settings.char_scale; cursor_head = 0; @@ -172,7 +169,7 @@ void FontType_Inner_CalcTransforms(const FontType *ft, FontRender *fr, FontInsta buf_item->sprite_region_min = fgc->sprite_region_min; buf_item->sprite_region_max = fgc->sprite_region_max; buf_item->width = - (ft->msdf_settings.minimum_scale / fr->settings.char_scale) + (fr->settings.char_scale / ft->msdf_settings.minimum_scale) * ft->msdf_settings.px_range; } } |
