feat(st): default terminal font to Fira Code size=13 scaled via Xft.dpi

This commit is contained in:
Luxferre committed 2026-11-26 15:24:35 +02:00
1 parent d351265623
commit 0d8b7994bc
30 files changed
+38 -37

No files matched your search

+2 -1
View File
@@ -73,7 +73,7 @@ def test_fractional_scales():
assert int(xres["theme.baseFontSize"]) == exp_px, f"scale={s_str} base={xres['theme.baseFontSize']}"
assert int(xres["Xcursor.size"]) == exp_cur, f"scale={s_str} cur={xres['Xcursor.size']}"
assert xres["theme.fontFace"] == "Fira Code"
assert "Fira Code" in xres["st.font"] and f"pixelsize={exp_px}" in xres["st.font"]
assert "Fira Code" in xres["st.font"] and "size=13" in xres["st.font"]
assert "Fira Code" in xres["dwm.font"] and f"{exp_px}px" in xres["dwm.font"]
assert xres["*TkTheme"] == "gtkTtk"
assert xres["theme.touchMode"] == "1"
@@ -162,6 +162,7 @@ def test_all_22_themes_and_legacy_192dpi_import():
assert xres["Xft.dpi"] == "96"
assert xres["theme.baseFontSize"] == "15"
assert xres["theme.fontFace"] == "Fira Code"
assert "Fira Code" in xres["st.font"] and "size=13" in xres["st.font"]
assert os.path.isfile(os.path.join(tmp, ".config", "qt6ct", "colors", f"ANODE-{tname}.conf"))
assert os.path.isfile(os.path.join(tmp, ".config", "qt5ct", "colors", f"ANODE-{tname}.conf"))
+5
View File
@@ -465,6 +465,11 @@ def test_st_font_override_and_dunst():
return inc
if shutil.which("xprop"):
inc_default = launch_st_and_get_height_inc(
"Xft.dpi: 144\n"
)
assert inc_default and inc_default >= 28, f"Expected default size=13 @ 144 DPI height_inc >= 28, got {inc_default}"
inc_small = launch_st_and_get_height_inc(
"Xft.dpi: 144\nst.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true\n"
)