nerd-fonts icon indicating copy to clipboard operation
nerd-fonts copied to clipboard

Fix Noto too wide

Open Finii opened this issue 3 years ago • 1 comments

Description

[why] The 'monospace' width is determined by examining all the 'normal' glyphs and taking the widest one.

'Normal' means 0x00-0x17f: the Latin Extended-A range.

Unfortunately Noto has the '1/2', '1/4', '3/4' that are all wider then the normal (i.e. letter) glyphs.

[how] Exclude a small sub-range from the 'find the widest glyph' that contain no glyphs one would call 'letter'.

Requirements / Checklist

What does this Pull Request (PR) do?

Fix Noto * Nerd Font Mono variants.

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

  • #610

Screenshots (if appropriate or helpful)

Finii avatar May 14 '22 17:05 Finii

Highligthed are the glyphs that are excluded from width-determination with the PR.

image

Finii avatar May 14 '22 17:05 Finii