Pass all opts to set_font_family

Makes it easier to specialize based on more opts in the future
This commit is contained in:
Kovid Goyal
2017-01-24 08:41:32 +05:30
parent 598c5d313b
commit def51f856b
5 changed files with 18 additions and 10 deletions

View File

@@ -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))