From 5ade64b3672b0ef707ee2ce68246ca7d94dfbbd9 Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Sun, 15 Feb 2026 15:05:36 +0000 Subject: [PATCH] Wire vendored Nerd font into dashboard SVG thumbnails Ensure dashboard screenshot SVGs consistently use the vendored Fira Nerd font stack used by the terminal. Changes: - Added dashboard inline CSS declarations for @font-face (FiraCode Nerd Font/FiraMono Nerd Font) and --webterm-mono in the dashboard HTML template. - Updated RenderTerminalSVG styling to use font-family: var(--webterm-mono, ...) with the full Nerd-font-aware fallback stack. - Embedded matching @font-face declarations inside generated SVG style blocks so externally loaded SVG images can resolve the vendored font without relying on parent page CSS inheritance. Result: - Dashboard screenshot tiles and search thumbnails retain full glyph/icon coverage with consistent typography across environments. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- webterm/server.go | 3 +++ webterm/svg_exporter.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/webterm/server.go b/webterm/server.go index 0153589..744b9c5 100644 --- a/webterm/server.go +++ b/webterm/server.go @@ -894,6 +894,9 @@ func (s *LocalServer) handleRoot(w http.ResponseWriter, r *http.Request) { `) + b.WriteString(``) b.WriteString(fmt.Sprintf(``, svgWidth, svgHeight)) b.WriteString(``) for rowIdx := 0; rowIdx < len(buffer); rowIdx++ {