From edd2bc85ae59979a22bae2e87c3e423f19293722 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 12 Feb 2024 09:30:11 +0530 Subject: [PATCH] Adjust cross_shade to have appearance more like in Unicode standard We try to draw approximately seven diagonal lines per cell --- kitty/fonts/box_drawing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/fonts/box_drawing.py b/kitty/fonts/box_drawing.py index 2d8b15704..0a47d9da4 100644 --- a/kitty/fonts/box_drawing.py +++ b/kitty/fonts/box_drawing.py @@ -281,8 +281,8 @@ def cross_line(buf: SSByteArray, width: int, height: int, left: bool = True, lev @supersampled() -def cross_shade(buf: SSByteArray, width: int, height: int, rotate: bool = False, density_factor: int = 4) -> None: - line_thickness = buf.supersample_factor * thickness(1) +def cross_shade(buf: SSByteArray, width: int, height: int, rotate: bool = False, density_factor: int = 2) -> None: + line_thickness = width // 7 delta = int(density_factor * line_thickness) if rotate: