Skip to content

viewer: draw banner and label text in scripts the embedded font lacks #421

Closed

Description

@ElbertePlinio

Found in review of the fix for #367.

The native viewer draws its own text with one embedded font, Geist Medium (crates/pickforge-viewer/src/ui.rs). Geist covers Latin, Cyrillic and Vietnamese, but not CJK, Arabic, Hebrew, Greek, Thai, Devanagari and other scripts. Characters it cannot draw show as nothing or as a missing glyph.

After #367, the thumbnail's session label replaces each such run with an ellipsis, so the session id stays readable, and the window title keeps the full name. The attention banner still draws an agent's request_takeover message as is, so a message in those scripts is unreadable in the viewer.

  • Choose a fallback: a system font found through fontconfig, or a small bundled fallback
  • Draw the banner message and the label with it
  • Test a CJK and an Arabic message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions