Browse Source

freetype text needs some horizontal padding

K. Lange 4 years ago
parent
commit
1d53039483
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/menu.c

+ 1 - 1
lib/menu.c

@@ -78,7 +78,7 @@ static int draw_string(gfx_context_t * ctx, int x, int y, uint32_t color, const
 	if (_have_freetype) {
 		freetype_set_font_face(0); /* regular non-monospace */
 		freetype_set_font_size(13);
-		return freetype_draw_string(ctx, x, y + 13 /* I think? */, color, s);
+		return freetype_draw_string(ctx, x+2, y + 13 /* I think? */, color, s);
 	} else {
 		return draw_sdf_string(ctx, x, y, s, 16, color, SDF_FONT_THIN);
 	}