Repository navigation
Bundle Nerd Font symbol fallback for terminal glyphs - #5712
Conversation
|
Ready to review this PR? Stage has broken it down into 4 individual chapters for you:
Chapters generated by Stage for commit fb0ff36 on Jun 18, 2026 2:05pm UTC. |
📝 WalkthroughWalkthroughA bundled Nerd Font Symbols font file ( 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Bundles a Symbols Nerd Font Mono (symbols-only) fallback font into the renderer so terminal Private Use Area (PUA) glyphs (OMP/Powerline/starship, etc.) render correctly even on systems without user-installed Nerd Fonts.
Changes:
- Added bundled
SymbolsNerdFontMono-Regular.ttf(SIL OFL) and registered it asOrca Nerd Font Symbolsvia@font-face. - Inserted the bundled font into the terminal font fallback chain ahead of optional user-installed Nerd Fonts.
- Updated/extended
buildFontFamilytests to cover fallback ordering and duplicate suppression (including the new bundled family).
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/renderer/src/components/terminal-pane/layout-serialization.ts | Adds Orca Nerd Font Symbols into the terminal fallback font list and updates rationale comments. |
| src/renderer/src/components/terminal-pane/layout-serialization.test.ts | Updates expected fallback strings and adds a test ensuring the new bundled family is not duplicated. |
| src/renderer/src/assets/main.css | Registers the bundled font via @font-face for use by the renderer. |
| src/renderer/src/assets/fonts/SymbolsNerdFontMono-OFL.txt | Adds required SIL OFL license text for the bundled font. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @font-face { | ||
| font-family: 'Orca Nerd Font Symbols'; | ||
| src: url('./fonts/SymbolsNerdFontMono-Regular.ttf') format('truetype'); | ||
| font-weight: 400; | ||
| font-style: normal; | ||
| font-display: swap; | ||
| } |
There was a problem hiding this comment.
Addressed in fb0ff36: the bundled symbol face is now scoped to Unicode Private Use Area ranges so it is only considered for OMP/Powerline/Nerd Font glyph fallback.
| @@ -15,6 +15,14 @@ | |||
| font-display: swap; | |||
| } | |||
|
|
|||
| @font-face { | |||
| font-family: 'Orca Nerd Font Symbols'; | |||
| src: url('./fonts/SymbolsNerdFontMono-Regular.ttf') format('truetype'); | |||
There was a problem hiding this comment.
Addressed in fb0ff36: replaced the TTF asset with WOFF2 only, matching the existing Geist font precedent and reducing the bundled asset from 2.5 MB to about 1.18 MB.
55652e8 to
fb0ff36
Compare
Jinwoo-H
left a comment
There was a problem hiding this comment.
Thanks for this — and for laying out the packaging options so clearly. Reviewed and validated locally:
- Bundled font is symbols-only (no text glyphs), so normal terminal text is never affected;
unicode-rangecorrectly scopes it to the Private Use Area. - Verified in the app: the fallback loads and renders OMP/Powerline glyphs that previously showed as missing-glyph boxes on a system without an installed Nerd Font.
- Full build, typecheck, lint, and the terminal font-stack tests all pass.
Option 1 (the bundled fallback) is the right call here — deterministic, offline, and no network in the render path. Merging.
|
thanks for reporting. looking into it |
Co-authored-by: Wolfgang Schoenberger <[email protected]>
Summary
Draft PR for #5711. Maintainer decision needed on packaging.
User-visible change: OMP, Powerline, starship, and other terminal tools that emit Nerd Font / Private Use Area glyphs can render symbols in Orca's terminal without requiring the user to change their primary terminal font.
This draft implements the most deterministic option:
SymbolsNerdFontMono-Regular.woff2under the SIL OFL.Orca Nerd Font Symbolswithunicode-rangelimited to Private Use Area codepoints.Review choice for maintainers:
My recommendation is option 1 or option 2. I would avoid option 3 unless Orca already wants a general downloadable-assets system.
X handle: @wolfie_
Screenshots
No new Orca chrome or settings UI.
The visible behavior is terminal glyph fallback. A useful before/after screenshot requires a clean system without user-installed Nerd Fonts, so I did not attach a local screenshot from my now-modified machine.
Testing
pnpm lint- not run; draft PR, scoped CSS/font-stack changepnpm typecheck- not run; ran renderer typecheck insteadpnpm run typecheck:web- passedpnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/layout-serialization.test.ts- passed, 24 testspnpm build- attemptedpnpm run build:web; it timed out after 300s during Vitetransforming..., so build coverage is not claimedpython3asset-link check - passed; CSS references the bundled WOFF2 font, PUAunicode-rangeis present, and the TTF source is absentAI Review Report
Reviewed for:
@font-faceand xterm font-family fallback. No platform-specific shortcuts, labels, shell commands, or path separators changed.unicode-rangelimits when the browser considers the fallback face.unicode-rangeand WOFF2. Both were implemented and replied to inline.Security Audit
Reviewed risks:
src/renderer/src/assets/fonts/SymbolsNerdFontMono-OFL.txt.Follow-up needed only if maintainers prefer a different packaging strategy.
Notes
Geist-Variable.woff2..woff2is mapped instatic-web-client-handler.ts.