GLCD (ILI9341SPI) more Fixed Number and Space With

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 758
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

GLCD (ILI9341SPI) more Fixed Number and Space With

Post by stefan.erni »

Hi Ben

The display works well with FC9.
The font should only be larger when displaying measured values such as temperature or pressure.

I don't know if that's true...

Erasing the screen mostly flickers, it's easier just to overwrite the digits.
This works if you set a leading 0 so that the number of digits remains the same
But of course it's nicer without these zeros
Then you can actually make a leading space and the digits are always in the same place no matter how many leading space or digits there are.
For this, the space with should be half the font size.
This is currently only possible in FC9 with this combination
Fixed Number 16 with Space With 8 and the display works perfectly
Would it be possible to add the following font and space?
Fixed number 12
Fixed number 14
Fixed Number 32 and Space With 16
Fixed Number 64 and Space With 32

regards
Stefan


Here a sample with the problem Top is not the halfsize, bottom is the half size:
Font_2022-09-29_14-38-46.jpg
Font_2022-09-29_14-38-46.jpg (7.52 KiB) Viewed 826 times

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: GLCD (ILI9341SPI) more Fixed Number and Space With

Post by BenR »

Hi Stefan,

I did have a look at this when you posted and I'm not sure I fully understand what you're after. I do see what you mean regarding the variable width character fonts and blanking spaces.

There is a gLCD component macro named SetFontScaler which allows you to scale up any existing font. Would this suit your requirements for scaling up the existing Fixed Number font?

Post Reply