Box drawing characters: Inconsistent glyph widths / Fallback fonts #590

Open
opened 2020-05-25 09:25:45 +02:00 by nleanba · 1 comment
nleanba commented 2020-05-25 09:25:45 +02:00 (Migrated from github.com)

The fonts "Proggy Tiny (Modern)", "HD: Inconsolata (Modern)" and some System fonts have missing box-drawing characters. As the cool-retro-terminal doesn't use the system fixed-width font as a fallback, this leads to weird display in programs such as alsamixer.

It appears as if the terminal doesn't calculate the widths correctly for these characters, as there are overlaps etc.

So it would be good if the terminal would either calculate the glyph widths better or simply force them into the grid, and/or respect the system fallback (monospace) fonts.

I'm using ubuntu 20.04.

Screenshot from 2020-05-25 09-22-23

Screenshot from 2020-05-25 09-24-43

The fonts "Proggy Tiny (Modern)", "HD: Inconsolata (Modern)" and some System fonts have missing box-drawing characters. As the cool-retro-terminal doesn't use the system fixed-width font as a fallback, this leads to weird display in programs such as `alsamixer`. It appears as if the terminal doesn't calculate the widths correctly for these characters, as there are overlaps etc. So it would be good if the terminal would either calculate the glyph widths better or simply force them into the grid, and/or respect the system fallback (monospace) fonts. I'm using ubuntu 20.04. ![Screenshot from 2020-05-25 09-22-23](https://user-images.githubusercontent.com/25827850/82788762-60bd6100-9e69-11ea-9913-027ecd9b08c0.png) ![Screenshot from 2020-05-25 09-24-43](https://user-images.githubusercontent.com/25827850/82788898-a1b57580-9e69-11ea-81bf-dced85275ac0.png)
heeplr commented 2022-07-19 15:16:24 +02:00 (Migrated from github.com)

I think my issue in combination with pytermgui (or basically any TUI) is related to this.
The output of $ python pytermgui/examples/simple_app.pylooks like this:

retro

The character widths seem to be wrong, so vertical lines aren't straight.

On other terminals it looks like this:

normal

I think my issue in combination with [pytermgui](https://github.com/bczsalba/pytermgui/) (or basically any TUI) is related to this. The output of ```$ python pytermgui/examples/simple_app.py```looks like this: ![retro](https://user-images.githubusercontent.com/32984777/179758583-5486714c-4333-466d-a37c-2053189082ca.png) The character widths seem to be wrong, so vertical lines aren't straight. On other terminals it looks like this: ![normal](https://user-images.githubusercontent.com/32984777/179758777-0da5e803-c391-471a-a961-56b9e2b079b7.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#590
No description provided.