You are not logged in.

#1 2023-12-06 12:55:18

zgR3Vr
Member
Registered: 2020-05-18
Posts: 25

[Solved] Suckless ST terminal font spacing weird

I am trying to set up ST terminal with the 'Noto Sans' font. This does however not look right. The characters either go inside each other, or they have a ridiculous distance to each other.
I have tried to change the 'cwscale' parameter to no avail. It does change stuff, but it doesn't fix the problem.
If I change the font to another like 'liberation mono' everything looks normal.

Here is an image where you can see the problem.
https://imgur.com/a/EIc4GdB

And here is my ST config.h file:
https://pastebin.com/xM7aN04H

Let me know if you need more information.

Last edited by zgR3Vr (2023-12-06 18:46:34)

Offline

#2 2023-12-06 13:10:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: [Solved] Suckless ST terminal font spacing weird

Basically no TE can usably handle variable with fonts because they contradict the concept of a terminal.
Pick a monospace font you like. (eg. "Noto Sans Mono")

Offline

#3 2023-12-06 13:42:49

zgR3Vr
Member
Registered: 2020-05-18
Posts: 25

Re: [Solved] Suckless ST terminal font spacing weird

seth wrote:

Basically no TE can usably handle variable with fonts because they contradict the concept of a terminal.

Not sure I am following you here, but just out of curiosity, would you care to explain?
I have went with 'noto sans mono', and that works as expected. Thanks!

Offline

#4 2023-12-06 13:52:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,314

Re: [Solved] Suckless ST terminal font spacing weird

A monospacefont uses the same height and width for every single glyph.
Variable width fonts dont.
Terminals operate by the concept of rows and columns, every glyph gets a block in those.
That runs into an obvious conflict if the glyphs would prefer to occupy more or less than (typically) one column (the height is most of the time uniform)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#5 2023-12-07 08:12:53

zgR3Vr
Member
Registered: 2020-05-18
Posts: 25

Re: [Solved] Suckless ST terminal font spacing weird

Oh, like that. That makes a lot of sense.
Thanks a bunch for the help!

Offline

Board footer

Powered by FluxBB