From bf0af144fd7c5184b3ca8fe3dbcc905692b8d1f3 Mon Sep 17 00:00:00 2001 From: Nikunj Tyagi Date: Thu, 9 Jul 2026 13:39:36 +0530 Subject: [PATCH] fix(viewer): fix monospace font rendering in pre/code blocks on Windows (#328) --- internal/viewer/static/style.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/viewer/static/style.css b/internal/viewer/static/style.css index d2a6fb5..f5c9b00 100644 --- a/internal/viewer/static/style.css +++ b/internal/viewer/static/style.css @@ -3,7 +3,7 @@ color-scheme: light dark; /* Typography */ - --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; + --mono: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", "DejaVu Sans Mono", ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace; /* Surfaces */ --bg: #f5f7fa; @@ -106,6 +106,10 @@ body { padding-bottom: 2rem; } +code, pre { + font-family: var(--mono); +} + nav.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border);