diff --git a/README.md b/README.md index a820e8d..29666de 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ANODE is a lightweight, keyboard-first, cross-Unix X11 desktop environment for * - **Patched window & core X11 stack**: - **DWM (`6.5-anode`)**: Pango/HarfBuzz status & title bar (`Fira Code` + `DejaVuSansM Nerd Font`) with a vector 3-bar launcher button (no Nerd Font icon dependency), first-class 32-bit ARGB XEmbed systray (`_NET_SYSTEM_TRAY_S`, `XEMBED_INFO` state, empty-tray unmap, `ReparentNotify` undocking, multi-monitor relocation), EWMH dock struts (`_NET_WM_WINDOW_TYPE_DOCK`, `_NET_WM_STRUT_PARTIAL`, `_NET_WORKAREA`), per-tag/grid layouts (`[]=`, `[M]`, `><>`, `###`), clickable bar regions, `Super_L` quick-tap support, `ANODE WM` EWMH identity, ICCCM `WM_S` `--replace` handoff, `SIGHUP` live restart, and `SIGUSR1`/`XA_RESOURCE_MANAGER` live theme & DPI reload with environment/cursor propagation. - **dmenu (`5.3-anode`)**: Pango/HarfBuzz rendering, fuzzy matching, touch/pointer navigation, XFixes/XI2 pointer auto-hiding, dynamic `.Xresources` & fractional scale sizing (`-l 0` full-height row fill and exact `-l N` row height), and `anode-launcher` XDG + Flatpak desktop entry integration (`--list`, symlinks, `[Desktop Action ...]` sub-entries, localization, `TryExec`, `Path=`, `Terminal=`, and `DBusActivatable=`). - - **st (`0.9.2-anode`)**: HarfBuzz programming ligatures (`Fira Code`), dirty-cell rendering cache, focus-gated cursor blink, explicit `St.font` override precedence with `~/.config/anode/Xresources.local`, live `Xft.dpi` Fontconfig resolution + `SIGUSR1` reload, and portable Linux/BSD PTY handling. + - **st (`0.9.2-anode`)**: HarfBuzz programming ligatures (`Fira Code`, defaulting to `size=13` scaled via live `Xft.dpi`), dirty-cell rendering cache, focus-gated cursor blink, explicit `St.font` override precedence with `~/.config/anode/Xresources.local`, `SIGUSR1` live reload, and portable Linux/BSD PTY handling. - **Unified `.xth` theme & fractional DPI scaling engine**: - 22 normalized 96-DPI `.xth` themes (`data/themes/*.xth`) centered on `Fira Code` with ligatures. - `anode-apply-scale` & `anode-apply-theme` treat `scale.conf` as authoritative over stale session environment variables and synchronize `.Xresources`, `xrdb`, `dwm`, `dmenu`, `st`, `libgemui`, `anode-vkbd`, `dunst` (`scale = 1` + pixel font sizing), GTK-2, GTK-3, GTK-4 / `libadwaita` (built-in Adwaita/Default `resource:///...` inheritance with color-only overrides and dark/light auto-detection), `xsettingsd` (with discrete Xcursor size tiers), Qt5 (`qt5ct`), Qt6 (`qt6ct`), Kvantum, and Tk (`gtkTtk`) without double-scaling. diff --git a/data/themes/AnodeDefault.xth b/data/themes/AnodeDefault.xth index b3b88c4..6ae950b 100644 --- a/data/themes/AnodeDefault.xth +++ b/data/themes/AnodeDefault.xth @@ -63,7 +63,7 @@ dmenu.selforeground: #ffffff dmenu.outbackground: #1b2433 dmenu.outforeground: #73d0ff -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.background: #0b0e14 st.foreground: #e6e1cf st.cursorColor: #59c2ff diff --git a/data/themes/CatppuccinLatte.xth b/data/themes/CatppuccinLatte.xth index 286ac23..795d7f4 100644 --- a/data/themes/CatppuccinLatte.xth +++ b/data/themes/CatppuccinLatte.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #7287fd dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #e6e9ef st.foreground: #4c4f69 diff --git a/data/themes/CatppuccinMocha.xth b/data/themes/CatppuccinMocha.xth index 3961796..181b1f1 100644 --- a/data/themes/CatppuccinMocha.xth +++ b/data/themes/CatppuccinMocha.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #724b9e dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #181825 st.foreground: #cdd6f4 diff --git a/data/themes/Cyberpunk.xth b/data/themes/Cyberpunk.xth index 7d7ef72..c885340 100644 --- a/data/themes/Cyberpunk.xth +++ b/data/themes/Cyberpunk.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #0066cc dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #000000 st.foreground: #e0f7ff diff --git a/data/themes/Default.xth b/data/themes/Default.xth index b43ed17..0a8d5e8 100644 --- a/data/themes/Default.xth +++ b/data/themes/Default.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #005577 dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #1c1c1c st.foreground: #dddddd diff --git a/data/themes/Dracula.xth b/data/themes/Dracula.xth index 96966c6..9b7e92c 100644 --- a/data/themes/Dracula.xth +++ b/data/themes/Dracula.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #6272a4 dwm.selfgcolor: #f8f8f2 dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #21222c st.foreground: #f8f8f2 diff --git a/data/themes/EverforestDark.xth b/data/themes/EverforestDark.xth index 0fa544e..cb4913a 100644 --- a/data/themes/EverforestDark.xth +++ b/data/themes/EverforestDark.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #426348 dwm.selfgcolor: #fdf6e3 dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #232a2e st.foreground: #d3c6aa diff --git a/data/themes/GeminuxHelio.xth b/data/themes/GeminuxHelio.xth index 8d0b25f..3b8001a 100644 --- a/data/themes/GeminuxHelio.xth +++ b/data/themes/GeminuxHelio.xth @@ -61,7 +61,7 @@ dwm.selbordercolor: #59c2ff dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #0f1419 st.foreground: #e6e1cf diff --git a/data/themes/GitHubDark.xth b/data/themes/GitHubDark.xth index 825238c..44ac05e 100644 --- a/data/themes/GitHubDark.xth +++ b/data/themes/GitHubDark.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #1f6feb dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #090c10 st.foreground: #c9d1d9 diff --git a/data/themes/GruvboxDark.xth b/data/themes/GruvboxDark.xth index c533fc3..3da42f4 100644 --- a/data/themes/GruvboxDark.xth +++ b/data/themes/GruvboxDark.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #b57614 dwm.selfgcolor: #fbf1c7 dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #1d2021 st.foreground: #ebdbb2 diff --git a/data/themes/GruvboxLight.xth b/data/themes/GruvboxLight.xth index 34b49e2..8678026 100644 --- a/data/themes/GruvboxLight.xth +++ b/data/themes/GruvboxLight.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #b57614 dwm.selfgcolor: #fbf1c7 dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #f2e5bc st.foreground: #3c3836 diff --git a/data/themes/Kanagawa.xth b/data/themes/Kanagawa.xth index 12bfcb7..037a08e 100644 --- a/data/themes/Kanagawa.xth +++ b/data/themes/Kanagawa.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #2d4f67 dwm.selfgcolor: #dcd7ba dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #16161d st.foreground: #dcd7ba diff --git a/data/themes/LinuxConsole.xth b/data/themes/LinuxConsole.xth index 16dd0e0..d8796e0 100644 --- a/data/themes/LinuxConsole.xth +++ b/data/themes/LinuxConsole.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #0055aa dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #000000 st.foreground: #aaaaaa diff --git a/data/themes/LynxLair.xth b/data/themes/LynxLair.xth index b932906..7378f41 100644 --- a/data/themes/LynxLair.xth +++ b/data/themes/LynxLair.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #e0a044 dwm.selfgcolor: #fff8dc dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #000000 st.foreground: #efe5c0 diff --git a/data/themes/MatrixGreen.xth b/data/themes/MatrixGreen.xth index 4d6d70f..336c070 100644 --- a/data/themes/MatrixGreen.xth +++ b/data/themes/MatrixGreen.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #196627 dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #070e08 st.foreground: #a8ffb2 diff --git a/data/themes/MonokaiPro.xth b/data/themes/MonokaiPro.xth index 56c4c43..f36b822 100644 --- a/data/themes/MonokaiPro.xth +++ b/data/themes/MonokaiPro.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #a61c52 dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #1e1f1c st.foreground: #f8f8f2 diff --git a/data/themes/NordFrost.xth b/data/themes/NordFrost.xth index b969924..8c86f49 100644 --- a/data/themes/NordFrost.xth +++ b/data/themes/NordFrost.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #5e81ac dwm.selfgcolor: #eceff4 dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #242933 st.foreground: #e5e9f0 diff --git a/data/themes/OneDark.xth b/data/themes/OneDark.xth index d786d4a..c18cc5a 100644 --- a/data/themes/OneDark.xth +++ b/data/themes/OneDark.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #2c5380 dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #21252b st.foreground: #abb2bf diff --git a/data/themes/RosePine.xth b/data/themes/RosePine.xth index c70f93d..1bc8808 100644 --- a/data/themes/RosePine.xth +++ b/data/themes/RosePine.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #6e5694 dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #1f1d2e st.foreground: #e0def4 diff --git a/data/themes/SolarizedDark.xth b/data/themes/SolarizedDark.xth index da2a47e..3ed4a7d 100644 --- a/data/themes/SolarizedDark.xth +++ b/data/themes/SolarizedDark.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #268bd2 dwm.selfgcolor: #fdf6e3 dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #00212b st.foreground: #93a1a1 diff --git a/data/themes/SolarizedLight.xth b/data/themes/SolarizedLight.xth index 2fafb5a..7f6f309 100644 --- a/data/themes/SolarizedLight.xth +++ b/data/themes/SolarizedLight.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #268bd2 dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #fdf6e3 st.foreground: #283739 diff --git a/data/themes/TokyoNight.xth b/data/themes/TokyoNight.xth index 3866e91..b958965 100644 --- a/data/themes/TokyoNight.xth +++ b/data/themes/TokyoNight.xth @@ -64,7 +64,7 @@ dwm.selbordercolor: #3d59a1 dwm.selfgcolor: #ffffff dwm.borderpx: 2 -st.font: Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true +st.font: Fira Code:size=13:style=Regular:antialias=true:autohint=true st.termname: xterm-256color st.background: #16161e st.foreground: #c0caf5 diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index cc32083..2462ad2 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -19,7 +19,7 @@ For a user or EDID-detected scale `S` clamped to `[0.50, 4.00]`: - `ANODE_SCALE = S`, `theme.baseFontSize = round(15 * S)`, and discrete standard Xcursor sizes (`16`, `24`, `32`, `48`, `64` mapped from `24 * S`); `~/.config/anode/scale.conf` takes precedence over stale session environment variables during live updates, while `anode-apply-scale` and `dwm` propagate updated scaling environment variables across `X11`, `D-Bus`, and newly spawned child processes. - **GTK-2 / GTK-3 / GTK-4 / xsettingsd**: `GDK_SCALE = (S < 1.75) ? 1 : round(S)`, `GDK_DPI_SCALE = 1 / GDK_SCALE`, `ADW_DISABLE_PORTAL=1`, unscaled logical UI point sizes (`round((baseFontSize / S) * 0.65)`, e.g. `10pt`) because `Xft.dpi` is active (`Xft/DPI` remains omitted from `xsettingsd.conf` to avoid double-scaling), generated `~/.themes/ANODE-/gtk-{3.0,4.0}/gtk.css` themes inherit GTK's built-in Adwaita/Default stylesheets via `resource:///...` `@import` (auto-detecting dark vs light from `theme.isDark` or `theme.bgMain` luminance) with color-only overrides so native widget/menu spacing and borders stay intact, color-only `@define-color` overrides in `~/.config/gtk-{3.0,4.0}/gtk.css`, `gtk-cursor-theme-size = Xcursor.size` for GTK-2, and `Gtk/CursorThemeSize` / `gtk-cursor-theme-size = round(Xcursor.size / GDK_SCALE)` for `xsettingsd` and GTK-3/4. - **Dunst notifications**: `anode-sync-dunst-theme` pins `scale = 1`, pre-scales geometry by `S`, and uses pixel font sizing (`Fira Code px`) so `Xft.dpi` never double-scales notifications. -- **User `.Xresources` & terminal overrides**: `anode-apply-theme` preserves explicit `St.*` resource lines across theme switches and appends `$XDG_CONFIG_HOME/anode/Xresources.local`, while `st` honors explicit `St.font` overrides over theme-managed `st.font` and resolves `size=` fonts against live `Xft.dpi`. +- **User `.Xresources` & terminal overrides**: `anode-apply-theme` sets `st.font` to `Fira Code:size=13`, preserves explicit `St.*` resource lines across theme switches, and appends `$XDG_CONFIG_HOME/anode/Xresources.local`, while `st` defaults to `Fira Code:size=13`, honors explicit `St.font` overrides over `st.font`, and resolves `size=` fonts against live `Xft.dpi`. - **Qt5 / Qt6**: `QT_AUTO_SCREEN_SCALE_FACTOR=0`, `QT_ENABLE_HIGHDPI_SCALING=1`, `QT_SCALE_FACTOR_ROUNDING_POLICY=PassThrough`, `QT_SCALE_FACTOR=S`, `QT_FONT_DPI=96`, with logical point sizes (`10pt`) and synced palettes in both `~/.config/qt5ct/` and `~/.config/qt6ct/`. - **Tk / Tkinter (`gtkTtk`)**: `*TkTheme: gtkTtk`, Tk scaling normalized against `ANODE_SCALE` / `Xft.dpi`, using `Fira Code`. diff --git a/scripts/anode-apply-theme b/scripts/anode-apply-theme index 8dc6d6b..e66a3fb 100755 --- a/scripts/anode-apply-theme +++ b/scripts/anode-apply-theme @@ -201,7 +201,7 @@ END { over["dwm.font"] = sprintf("%s, %s %dpx", font_face, icon_face, scaled_font_px) over["dmenu.font"] = sprintf("%s, %s %dpx", font_face, icon_face, scaled_font_px) over["dmenu.lineheight"] = sprintf("%d", scaled_dm_lh) - over["st.font"] = sprintf("%s:pixelsize=%d:style=Regular:antialias=true:autohint=true", font_face, scaled_font_px) + over["st.font"] = sprintf("%s:size=13:style=Regular:antialias=true:autohint=true", font_face) for (i = 1; i <= NR; i++) { sline = trim(raw[i]) diff --git a/src/st/config.def.h b/src/st/config.def.h index 9189fdb..d446665 100644 --- a/src/st/config.def.h +++ b/src/st/config.def.h @@ -5,7 +5,7 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true"; +static char *font = "Fira Code:size=13:style=Regular:antialias=true:autohint=true"; static int borderpx = 2; /* diff --git a/src/st/config.h b/src/st/config.h index 9189fdb..d446665 100644 --- a/src/st/config.h +++ b/src/st/config.h @@ -5,7 +5,7 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "Fira Code:pixelsize=15:style=Regular:antialias=true:autohint=true"; +static char *font = "Fira Code:size=13:style=Regular:antialias=true:autohint=true"; static int borderpx = 2; /* diff --git a/src/st/x.c b/src/st/x.c index 97d397a..031a6c7 100644 --- a/src/st/x.c +++ b/src/st/x.c @@ -2573,19 +2573,14 @@ config_init(void) } } - /* Apply Fira Code font sized for current scale unless st.font / St.font was explicitly set */ + /* Apply Fira Code 13pt font (scaled via live Xft.dpi) unless st.font / St.font was explicitly set */ if (!has_font) { - const char *ff = NULL, *bsz = NULL; + const char *ff = NULL; if (db && XrmGetResource(db, "theme.fontFace", "*", &type, &ret) && ret.addr && ret.addr[0]) ff = ret.addr; - if (db && XrmGetResource(db, "theme.baseFontSize", "*", &type, &ret) && ret.addr && ret.addr[0]) - bsz = ret.addr; - int px = bsz ? atoi(bsz) : anode_scale_px(15, scale); - if (px < 8 || px > 96) - px = anode_scale_px(15, scale); snprintf(st_theme_font, sizeof(st_theme_font), - "%s:pixelsize=%d:style=Regular:antialias=true:autohint=true", - ff ? ff : "Fira Code", px); + "%s:size=13:style=Regular:antialias=true:autohint=true", + ff ? ff : "Fira Code"); font = st_theme_font; } if (db) { diff --git a/tests/test_theme_scale.py b/tests/test_theme_scale.py index 1c78dee..20053ca 100755 --- a/tests/test_theme_scale.py +++ b/tests/test_theme_scale.py @@ -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")) diff --git a/tests/test_x11_xvfb.py b/tests/test_x11_xvfb.py index b805bd5..a4d2f4d 100755 --- a/tests/test_x11_xvfb.py +++ b/tests/test_x11_xvfb.py @@ -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" )