Regression: spaces render too wide with a custom monospaced font
@alexdima is already working on this.
Since Jun 10, 2026.
Assessment
This issue has not been assessed yet.
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.124
- OS Version: win-11 25h2 x64
Type: Bug
After upgrading VS Code, a custom monospaced font that has worked correctly for years no longer preserves alignment.
I use a custom monospaced font that contains Latin characters, Chinese/CJK characters, and symbols. The font is designed so that Latin characters, symbols, and spaces occupy 1 cell, while Chinese/CJK characters occupy exactly 2 Latin cells.
However, this regression does not require any CJK characters to reproduce. It can be reproduced with English text and spaces only.
I have confirmed that the main problem is that the space character is being rendered too wide. This alone is enough to break column alignment. Some English characters also appear bolder than before, which may or may not be related, but the incorrect space width is the core regression.
I also tried changing the setting that controls whitespace rendering between svg and font, but the problem remains.
Expected behavior
Spaces should have the same advance width as Latin monospace characters in the selected font.
Usually, English text aligned with spaces should keep its columns:
This breaks layouts that rely on monospace alignment, even though the same font still works correctly in older VS Code versions.
Regression
This works correctly in VS Code 1.110.1.
It breaks after upgrading to a newer VS Code version. The version where I observed the regression was 1.124.0.
Steps to Reproduce:
- use monospaced font
- update vscode(user)
- open vscode
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in microsoft/vscode
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·