Skip to content

feat(terminal): allow themes to set the terminal font size #5089

Description

@koenvangeert

The workflow

I want a larger font in the integrated terminal and the current size everywhere else. nvim and other TUIs are hard to read at 12px. My theme can now set the terminal font family through --font-terminal (#3236), but it cannot set the size.

What happens today

On main at 68a1e8b, the terminal is created with a fixed size:

The only workarounds today:

  • App zoom (Cmd+Plus) makes every part of the UI larger, not only the terminal.
  • CSS zoom on .xterm scales the WebGL canvas and can blur text or misplace mouse selection.

What you would expect

Read a --font-terminal-size token the same way as --font-terminal:

--font-terminal-size: 14px;
  • Read it when the terminal is created and when the theme changes.
  • Keep 12 when the token is absent or invalid.
  • Refit after a change so cell size and PTY size stay aligned (as applyTerminalFontFamily already does).

Context and alternatives

Checks

  • I searched open and closed issues for the same request.
  • If an agent wrote this, the body ends with > AGENT GENERATED.

AGENT GENERATED

Activity

  1. added
    ui
    on Oct 7, 2026
  2. bb-slop-cop commented on Oct 7, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied and verified: Type: Feature · Priority: Low · Effort: Low · Labels: ui. No existing classifications were replaced.

    Terminal-only font sizing adds new customization rather than correcting unexpected behavior. This is a contained UI enhancement, consistent with the earlier terminal-font customization classification.

    No reproduction report or pull request: the final Type is Feature, so this rule skips bug reproduction and fixes.

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

    ui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions