From 49c81da76312d3f74fd9d134a6173b4732c6da4b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Feb 2017 13:38:19 +0530 Subject: [PATCH] Adjust rescale threshold --- kitty/fonts/freetype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/fonts/freetype.py b/kitty/fonts/freetype.py index 8048e24b8..4b15798d1 100644 --- a/kitty/fonts/freetype.py +++ b/kitty/fonts/freetype.py @@ -140,7 +140,7 @@ def render_char(text, bold=False, italic=False, width=1): extra = bitmap.width - cell_width if italic and extra < cell_width // 2: bitmap = face.trim_to_width(bitmap, cell_width) - elif extra > max(2, 0.1 * cell_width) and face.is_scalable: + elif extra > max(2, 0.3 * cell_width) and face.is_scalable: # rescale the font size so that the glyph is visible in a single # cell and hope somebody updates libc's wcwidth sz = cff_size.copy()