diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-02-20 12:31:09 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-02-20 14:58:32 -0500 |
| commit | 379c2063a639d57d7ce4c71762eae8259b989729 (patch) | |
| tree | 5d8bfc65266cfd2e1ef8368863d97b348abd8e88 /src/font.cpp | |
| parent | 220bcb0cb8ab4c1dcea5c21a0f80e4f4f6393866 (diff) | |
pke: use appropriate screenpxrange
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; } } |
