Skip to content

Commit

Permalink
Handle all numeric characters as fixed width, even in variable spaced…
Browse files Browse the repository at this point in the history
… fonts

This reduces jitter when numeric values change, such as in the
download status dialog.
  • Loading branch information
Grumbel committed Aug 26, 2014
1 parent c88bea1 commit 9fa5429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/font.cpp
Expand Up @@ -202,7 +202,7 @@ Font::loadFontSurface(
Glyph glyph;
glyph.surface_idx = surface_idx;

if( glyph_width_ == FIXED )
if( glyph_width_ == FIXED || isdigit(*chr) )
{
glyph.rect = Rectf(x, y, x + char_width, y + char_height);
glyph.offset = Vector(0, 0);
Expand Down

0 comments on commit 9fa5429

Please sign in to comment.