Repository navigation
Description
Description
When the “Editor: Experimental GPU Acceleration” setting is turned on, the editor stops rendering
font ligatures. Even with a clearly ligature‑capable monospace font (e.g. Cascadia Code, Fira Code,
JetBrains Mono, etc.) selected and editor.fontLigatures set to true, sequences like !=, =>,
-> are displayed as separate characters. Turning the experimental GPU acceleration off causes
ligatures to return immediately.
This can be reproduced reliably with the steps below.
Steps to Reproduce
-
Add/ensure the following user settings in
settings.json:{ "editor.fontFamily": "Cascadia Code, Consolas, monospace", "editor.fontLigatures": true, "editor.experimentalGpuAcceleration": "on" } -
Restart VS Code.
-
Open any source file (.c/.cpp/.js/etc.) and type:
if (a != b && c == d) return ptr->field;
-
Observe that
!=,==,->do not turn into ligatures. -
In settings, set Editor: Experimental GPU Acceleration to
offand restart the editor. -
Type the same line again; all of the above glyphs now render as single ligatures.
Actual Behaviour
With GPU acceleration enabled, font ligatures are ignored and the text falls back to the
backup font (Consolas), resulting in:
!= -> == ...
displayed as ordinary characters.
Expected Behaviour
Ligatures should be honoured regardless of the GPU acceleration setting.
editor.fontLigatures: true and the selected font’s OpenType features should be respected even
when rendering is done on the GPU.
Environment
-
VS Code version:
1.91.0(issue present on latest insiders/main as well) -
OS: Windows 11 23H2
-
GPU: NVIDIA GTX 1650 / Intel UHD 750 (issue reproduced on multiple GPUs/drivers)
-
Font used:
Cascadia Code PL 2107.01(also tested with Fira Code, JetBrains Mono, etc.) -
Relevant settings:
"editor.fontFamily": "Cascadia Code, Consolas, monospace", "editor.fontLigatures": true, "editor.experimentalGpuAcceleration": "on"
Additional Context
- In DevTools the computed
font-familyis correctly"Cascadia Code", and
font-feature-settingsshows"liga","calt", so the issue lies in the rendering pipeline,
not font selection. - Disabling GPU acceleration immediately fixes the problem.
- Unchecked on Linux/macOS.
Please investigate whether the GPU rendering path skips font-feature-settings or loads a
non‑ligature variant of the font.
Thanks!
Activity
Tyriar commentedon Mar 24, 2026
/duplicate #227120