Font larger than 96 point? #1966
Replies: 3 comments 3 replies
-
The Adafruit font uses an int8_t so sets a limit of 127 for the height above the baseline, and 127 below. This is a limitation of that font format not the library sp this limits the maximum size to around 95 points. Options are to use a different font format that accepts larger characters: |
Beta Was this translation helpful? Give feedback.
-
Brilliant! The your last example got me going. I decided something just a little small was needed. I found your Processing sketch for font creation, https://github.com/Bodmer/TFT_eSPI/blob/master/Tools/Create_Smooth_Font/Create_font/Create_font.pde, and then the referenced file converter, https://tomeko.net/online_tools/file_to_hex.php?lang=en. This all worked perfectly. Many thanks as always. My biggest surprise was how much space these fonts can consume. This large font, limited to the 0-9 : characters, took 116 kBytes of program space on the ESP32. |
Beta Was this translation helpful? Give feedback.
-
Hello, please, could you give a few directions as to how to adapt the output of that online converter to a proper TFT_eSPI header file? Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Library is working beautifully with the 3.5" TFT LCD 320x480 from Adafruit (HX8357D).
I'm just wondering on the best method for obtaining a large point full resolution font? I can scale the provided fonts with setTextSize, but they get very blocky. Using, http://oleddisplay.squix.ch, I was able to generate the very nice 96 point font in the attached example. However, above this size, that utility seems to wrap and generate negative numbers that don't compile into a uint.
My objective is to about double the size of that top row of text (clock digits), such that it about fills the top seciont of the display. The red rectangles and just so I can see the size of the current sprites.
Thanks,
Allan.
Beta Was this translation helpful? Give feedback.
All reactions