Skip to content

Terminal: support crisp font rendering on HiDPI displays #337208

Open

Description

Terminal text in VS Code looks noticeably softer than the same font in Ghostty and other native terminals on macOS HiDPI. I've heard this from a few people: the integrated terminal reads "dull" next to a standalone terminal at the same font and size.

I dug into it and the difference on macOS is the font antialiasing policy, not resolution. Editor and workbench text get one policy, terminal text on the GPU canvas path gets another, so terminal glyphs read heavier and blurrier.

Proposal: an opt-in terminal.integrated.fontRendering setting, inherit as the unchanged default and crisp as the opt-in mode, scoped to terminal text only so the editor, workbench, terminal theme, font family, size and weight don't change. On Windows and Linux the GPU renderer could request grayscale antialiasing through xterm's existing alpha-capable canvas path.

Comparison on macOS HiDPI, left crisp, right current:

It should apply to normal, detached and sticky-scroll terminals, and keep terminal image transparency working.

Upstream: xterm.js doesn't expose a font antialiasing option today, so VS Code has to go through the allowTransparency canvas path to get this. A dedicated antialiasing/font-rendering option in xterm.js (WebGL and DOM renderers) would let this be a first-class setting rather than a side effect, and would help every xterm.js embedder, not just VS Code. Until then this stays experimental, since the visible result depends on OS, display scale, font and theme.

Activity

  1. added
    feature-request
    terminal
    on Sep 22, 2026
  2. anthonykim1 commented on Sep 22, 2026

    @anthonykim1
    ContributorAuthor
    Image Image
  3. added and removed
    terminal
    on Sep 22, 2026
  4. dalisoft commented on Sep 29, 2026

    @dalisoft
    Contributor

    Anthony Kim (@anthonykim1) can you please this feature on light theme?
    More info: #338199 and #299442; with demos and pictures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestterminal-rendering

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions