Skip to content

[Editor] Incorrect word wrap for monospace CJK fonts #286283

@MikeWang000000

Description

@MikeWang000000

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version:
    Version: 1.107.1 (system setup)
    Commit: 994fd12
    Date: 2025-12-17T14:15:14.850Z
    Electron: 39.2.3
    ElectronBuildId: 12895514
    Chromium: 142.0.7444.175
    Node.js: 22.21.1
    V8: 14.2.231.21-electron.0
    OS: Windows_NT x64 10.0.17763

  • OS Version: Windows 10 1809

Steps to Reproduce:

  1. Install a monospace Chinese font such as Maple Font: https://github.com/subframe7536/maple-font/releases/download/v7.9/MapleMonoNormalNL-CN.zip
  2. Add the config to settings.json: "editor.fontFamily": "'Maple Mono Normal NL CN', 'Courier New', monospace"
  3. Paste following words into the editor
    WORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORDWORD
    文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字文字
    
  4. Before word wrap:
Image
  1. Enable word wrap:
Image

The horizontal scrollbar still exists. The line length for alphabets is correct, but is wrong for CJK characters.

Image

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityeditor-wrappingEditor line wrapping issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions