Skip to content

fix(terminal): add CJK/emoji font fallbacks and cell-aligned box-drawing rendering - #198

Merged
Cleboost merged 2 commits into
masterfrom
fix/terminal-font-fallback-and-box-drawing
Nov 26, 2026
Merged

Cleboost merged 2 commits into
masterfrom
fix/terminal-font-fallback-and-box-drawing

Conversation

@Cleboost

Copy link
Copy Markdown
Owner

Summary

  • Vector emoji & CJK/symbol font fallbacks:
    • Bundled NotoEmoji-Regular.ttf (vector monochrome Noto Emoji) in assets/fonts/ and added it to FontFamily::Monospace so modern emojis (e.g. 🦀) render cleanly instead of tofu boxes.
    • Added discover_system_mono_fallbacks() using fc-match to load system fallback fonts (Noto Sans Mono CJK JP, Noto Sans CJK JP, DejaVu Sans Mono, Noto Sans Symbols 2) into FontFamily::Monospace.
  • Cell-aligned TUI box-drawing & block-element rendering:
    • Added paint_box_drawing (U+2500..=U+257F: light/heavy/double lines, corners, rounded corners ╭╮╯╰, diagonals, half-lines) and paint_block_element (U+2580..=U+259F: fractional blocks, shades ░▒▓, quadrants) in terminal_view.rs so TUI frames (btop, htop, tmux, etc.) connect seamlessly without gaps or misalignment.

Test plan

  • cargo test passes (12/12 unit tests).

@Cleboost
Cleboost merged commit 84d46ba into master Nov 26, 2026
@Cleboost
Cleboost deleted the fix/terminal-font-fallback-and-box-drawing branch November 26, 2026 17:33
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