Skip to content

fix: restore font fallback discovery on Linux/Windows#1642

Open
pinpox wants to merge 1 commit into
raphamorim:mainfrom
pinpox:push-wvssssowppsw
Open

fix: restore font fallback discovery on Linux/Windows#1642
pinpox wants to merge 1 commit into
raphamorim:mainfrom
pinpox:push-wvssssowppsw

Conversation

@pinpox
Copy link
Copy Markdown
Contributor

@pinpox pinpox commented Jun 3, 2026

The terminal render path (rioterm grid_emit::resolve_font) and the UI text path (sugarloaf text) resolved each glyph's font through find_best_font_match, which only consults already-loaded fonts and returns the primary font (font_id 0) on a miss, it never triggers cascade discovery. So on Linux/Windows any codepoint absent from the user's primary font (Nerd Font icons from ls --icons, CJK, ...) rendered as the primary font's .notdef tofu.

The terminal render path (rioterm grid_emit::resolve_font) and the UI
text path (sugarloaf text) resolved each glyph's font through
find_best_font_match, which only consults already-loaded fonts and
returns the primary font (font_id 0) on a miss, it never triggers
cascade discovery. So on Linux/Windows any codepoint absent from the
user's primary font (Nerd Font icons from `ls --icons`, CJK, ...)
rendered as the primary font's .notdef tofu.
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