mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Allow pixel based adjustments as well
This commit is contained in:
@@ -824,6 +824,9 @@ def modify_font(val: str) -> Iterable[Tuple[str, FontModification]]:
|
||||
if sz.endswith('%'):
|
||||
munit = ModificationUnit.percent
|
||||
sz = sz[:-1]
|
||||
elif sz.endswith('px'):
|
||||
munit = ModificationUnit.pixel
|
||||
sz = sz[:-2]
|
||||
try:
|
||||
mvalue = float(sz)
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user