Page 1 of 1
sevenseg fonts
Posted: 15 Dec 2023, 08:25
by Pencraft
Good afternoon.
ESP32, firmvare display_ESP32_4M316k, 30.11.2023.
In the sevenseg24 and sevenseg18 fonts, the "1" character has a smaller width than all the others. Because of this, the display of numbers shifts. Can this be fixed somehow?
Re: sevenseg fonts
Posted: 15 Dec 2023, 08:42
by Ath
Hmm, haven't used those fonts much, so didn't notice this before.
I'll have a look during the weekend to see if this can be fixed easily.
Re: sevenseg fonts
Posted: 15 Dec 2023, 08:47
by TD-er
Maybe also check if each character (not only '1') has the same width, or is this a (hex)number-only font?
Re: sevenseg fonts
Posted: 15 Dec 2023, 09:08
by Pencraft
Yes, unfortunately, other characters also have different widths.
Although this is not so critical.
Re: sevenseg fonts
Posted: 15 Dec 2023, 09:10
by Pencraft
It would also be nice to add a degree Celsius symbol. {D}
Re: sevenseg fonts
Posted: 17 Dec 2023, 23:16
by Ath
The issue here is that the used 7-segment fonts are proportionally spaced, causing exactly this behavior.
I'm looking for an alternative 7-segment font that can be used, as patching this font doesn't provide the desired result. And adding (or replacing) a character to show the degree symbol is not really doable.
Re: sevenseg fonts
Posted: 22 Dec 2023, 18:53
by Pencraft