mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Adjust rescale threshold
This commit is contained in:
parent
7e34807859
commit
49c81da763
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue