mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
Pass all opts to set_font_family
Makes it easier to specialize based on more opts in the future
This commit is contained in:
@@ -89,5 +89,7 @@ def render_string(text='\'Qing👁a⧽'):
|
||||
|
||||
|
||||
def test_rendering(text='\'Ping👁a⧽', sz=144, family='monospace'):
|
||||
set_font_family(family, sz)
|
||||
from kitty.config import defaults
|
||||
opts = defaults._replace(font_family=family, font_size=sz)
|
||||
set_font_family(opts)
|
||||
display_bitmap(*render_string(text))
|
||||
|
||||
Reference in New Issue
Block a user