notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Fixed / monospace font not fixed

Open
#10,797 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

I am using Notepad++ 7.9.5 (64-bit) on Windows 10 and different types of monitors/displays. I am working on it to get an update from my admin.

When I use monospace fonts (tried Hack, FiraCode, FiraCodeRetina, SourceCodePro and Courier) the indention is not correct.

Look at this lines and the beginning of the string in column 40.

        res_e = einsaetze_jahr.loc[:, ['PERSON',
                                       'GENDER',

In that picture you see the exactly (copyied!) snippet of a Python file.
In the white background it is Windows 10 notepad. Indention is correct.
In the dark background you see Notepad++ without zoom. The indention is not correct.

nppp

What happens here? The fonts are monospace / fixed.

EDIT:
Here you see MS Word 2016 with the same code snipped and all 4 fonts I tested. The indention is correct.
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported indentation mismatch in Notepad++ 7.9.5 on Windows 10 with Hack, FiraCode, FiraCodeRetina, SourceCodePro, or Courier at default zoom. Compare the displayed alignment with the same copied Python snippet in another editor, then trace the desktop text-rendering path. Done means fixed-width fonts align the snippet consistently without changing zoom behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.