sevenseg fonts

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Pencraft
Normal user
Posts: 10
Joined: 05 Dec 2023, 18:54

sevenseg fonts

#1 Post by Pencraft » 15 Dec 2023, 08:25

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?
Attachments
IMG_8989 (1).jpg
IMG_8989 (1).jpg (561.98 KiB) Viewed 5765 times

User avatar
Ath
Normal user
Posts: 3522
Joined: 10 Jun 2018, 12:06
Location: NL

Re: sevenseg fonts

#2 Post by Ath » 15 Dec 2023, 08:42

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.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: sevenseg fonts

#3 Post by TD-er » 15 Dec 2023, 08:47

Maybe also check if each character (not only '1') has the same width, or is this a (hex)number-only font?

Pencraft
Normal user
Posts: 10
Joined: 05 Dec 2023, 18:54

Re: sevenseg fonts

#4 Post by Pencraft » 15 Dec 2023, 09:08

Yes, unfortunately, other characters also have different widths. :(
Although this is not so critical. ;)
Attachments
IMG_8990.jpg
IMG_8990.jpg (570.61 KiB) Viewed 5755 times

Pencraft
Normal user
Posts: 10
Joined: 05 Dec 2023, 18:54

Re: sevenseg fonts

#5 Post by Pencraft » 15 Dec 2023, 09:10

It would also be nice to add a degree Celsius symbol. {D}

User avatar
Ath
Normal user
Posts: 3522
Joined: 10 Jun 2018, 12:06
Location: NL

Re: sevenseg fonts

#6 Post by Ath » 17 Dec 2023, 23:16

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.
/Ton (PayPal.me)

Pencraft
Normal user
Posts: 10
Joined: 05 Dec 2023, 18:54

Re: sevenseg fonts

#7 Post by Pencraft » 22 Dec 2023, 18:53


Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests