mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Work on scaled rendering for box drawing chars
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user