Skip to content

webterm: bundle + inject Symbols Nerd Font for terminal glyphs#10

Merged
Devail1 merged 1 commit into
mainfrom
dev
Jun 7, 2026
Merged

webterm: bundle + inject Symbols Nerd Font for terminal glyphs#10
Devail1 merged 1 commit into
mainfrom
dev

Conversation

@Devail1

@Devail1 Devail1 commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Terminal wall glyphs (lazygit/yazi file & git icons) rendered as boxes because the ttyd font stack only listed Nerd Fonts in xterm.js's fontFamily, relying on the viewer's machine having one installed — which WSL/Windows here did not.

Fix mirrors picoclaw: bundle SymbolsNerdFontMono-Regular.ttf, serve it from /static, and inject an @font-face into each ttyd page so PUA glyphs resolve on any viewer with no local install.

Verified: font serves HTTP 200 font/ttf, @font-face present in live ttyd page, dashboard restarted.

🤖 Generated with Claude Code

…on any viewer

The ttyd font stack only listed Nerd Fonts in xterm.js's fontFamily, which
relies on the viewer's machine having one installed. With none present the PUA
icon glyphs (lazygit/yazi file & git icons) fell back to monospace and showed as
boxes. Bundle SymbolsNerdFontMono-Regular.ttf, serve it from /static, and inject
an @font-face into each ttyd page so the glyphs resolve on any device with no
local install (mirrors picoclaw's approach).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Devail1 Devail1 merged commit b0901b6 into main Jun 7, 2026
0 of 2 checks passed
Devail1 added a commit that referenced this pull request Jun 22, 2026
webterm: bundle + inject Symbols Nerd Font for terminal glyphs
Devail1 added a commit that referenced this pull request Jun 23, 2026
webterm: bundle + inject Symbols Nerd Font for terminal glyphs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant