Skip to content

Letter spacing changed after updating 5.1.0 -> 5.5.0 #5409

@yury-s

Description

@yury-s

Details

  • Browser and browser version: Chrome stable
  • OS version: Mac, Ubuntu
  • xterm.js version: 5.5.0

Steps to reproduce

  1. Update xterm:
-        "xterm": "^5.1.0",
-        "xterm-addon-fit": "^0.7.0"
+        "@xterm/addon-fit": "^0.10.0",
+        "@xterm/xterm": "^5.5.0",
  1. The letter spacing is messed up after the update:

Before:
Image

After:

Image

Can be reproduced with Playwright UI mode:

  1. npm init playwright repro, press enter a few times to accept all defaults
  2. cd repro
  3. npx playwright test --ui, run the tests in UI mode and see the builtin terminal output.
  4. Now update to a more recent version with updated xterm npm i @playwright/test@1.56.0-alpha-2025-09-23
  5. npx playwright test --ui see the difference

Here is how the terminal is created: https://github.com/microsoft/playwright/blob/c813e9cf595cd4b83f6590afda26b460993231cb/packages/web/src/components/xtermWrapper.tsx#L63-L69

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions