Skip to content

Monospace font displayed incorrectly at certain sizes #2485

Description

@Grimelios

The IDE (tested on 08/11/2026) displays certain monospace fonts incorrectly. One such font is listed below (from the downloaded zip, I installed Lekton-Regular.ttf).

https://fonts.google.com/specimen/Lekton

Here's a screenshot at font size 14, showing all text correctly monospaced.

Image

Here's a screenshot at font size 12, showing the same text displayed incorrectly, leading to names, equals signs, and values being jagged horizontally.

Image

This problem isn't just visual. It also affects cursor placement when clicking or using arrow keys, as demonstrated in these two gifs. My suspicion is that this latter problem is caused by the former, but I'm just speculating.

Image Image

I tested this font at various sizes in two other applications (Notepad and Visual Studio) and both displayed correctly in all cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions