From c074a085cca9d97d9b4eb18f21004fb41f7857f6 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 18:44:24 +0100 Subject: fix(ui): serve the Propo Nerd Font so icons centre The plain Inconsolata Nerd Font gives each icon a 500 unit advance while its ink is up to twice that wide, so every Nerd Font button sat right of centre. The Propo variant's advance is the ink, so centring works for all of them; the VM power button's padding workaround goes. The URL becomes /fonts/nerd-propo.ttf because the font is cached for a day. Co-Authored-By: Claude Opus 5.5 --- tests/test_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_server.py b/tests/test_server.py index 4d734b4..beaeab4 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -131,10 +131,10 @@ class Server(unittest.TestCase): f.write_bytes(b"\x00\x01\x00\x00font") srv._font.clear() with mock.patch.object(srv, "_run", return_value=str(f)): - self.assertEqual(self.req("GET", "/fonts/nerd.ttf", HOST), (200, b"\x00\x01\x00\x00font")) + self.assertEqual(self.req("GET", "/fonts/nerd-propo.ttf", HOST), (200, b"\x00\x01\x00\x00font")) srv._font.clear() with mock.patch.object(srv, "_run", return_value="/usr/share/fonts/DejaVuSans.ttf"): - self.assertEqual(self.req("GET", "/fonts/nerd.ttf", HOST)[0], 404) + self.assertEqual(self.req("GET", "/fonts/nerd-propo.ttf", HOST)[0], 404) srv._font.clear() def test_clock_font(self): -- cgit v1.2.3