The font caused the cursor position to be abnormal

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

when I switch the font to JetBrains Mono SemiBold, the default font size causes the cursor position to be abnormal. However, when I switch the font size to 13, 15, or other sizes, the cursor position returns to normal.

Steps to Reproduce

Install the font JetBrains Mono SemiBold

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.6.20 (system setup)
VSCode Version: 1.105.1
Commit: b29eb4ee5f9f6d1cb2afbc09070198d3ea6ad760
Date: 2026-03-17T01:50:02.404Z
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.22631

Does this stop you from using Cursor

No - Cursor works, but with this issue

Screenshot under normal circumstances

Additional note: After restarting my computer and reopening the software, the cursor position became abnormal again. Adjusting the font size resolved the issue.

Hey, this is a known issue with how the editor Monaco and VS Code measures character widths for monospaced fonts. Some font plus size combos cause subpixel rounding differences, so the cursor position shifts.

A couple of workarounds:

  1. Use JetBrains Mono Regular instead of JetBrains Mono SemiBold. Regular is more likely to be detected correctly.
  2. Use font size 13 or 15, like you already found.
  3. Try adding this to settings.json: "editor.fontWeight": "600" instead of using SemiBold in the font name. Sometimes that helps.

Similar reports:

Sadly, the root cause is upstream in VS Code or Chromium font rendering, so it’s hard for us to fully fix on our side.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.