Work on scaled rendering for box drawing chars

This commit is contained in:
Kovid Goyal
2024-11-22 12:36:11 +05:30
parent 47a1a9b83d
commit 383e1f8f57
10 changed files with 196 additions and 79 deletions

View File

@@ -2,9 +2,10 @@
# License: GPLv3 Copyright: 2024, Kovid Goyal <kovid at kovidgoyal.net>
from kitty.fast_data_types import TEXT_SIZE_CODE, Screen
from kitty.fast_data_types import TEXT_SIZE_CODE
from . import BaseTest, parse_bytes
from . import BaseTest
from . import draw_multicell as multicell
class TestMulticell(BaseTest):
@@ -13,11 +14,6 @@ class TestMulticell(BaseTest):
test_multicell(self)
def multicell(screen: Screen, text: str, width: int = 0, scale: int = 1, subscale: int = 0) -> None:
cmd = f'\x1b]{TEXT_SIZE_CODE};w={width}:s={scale}:f={subscale};{text}\a'
parse_bytes(screen, cmd.encode())
def test_multicell(self: TestMulticell) -> None:
def ac(x_, y_, **assertions): # assert cell