Page 1 of 1

Loading additional fonts.

Posted: Sat May 01, 2021 9:59 am
by AndyGadget
To use a custom-loaded font the manual states "The fonts available are essentially all the freefonts available in the Adafruit_GFX library format simply converted in binary ready to be loaded into Annex."
The additional fonts Annex loads are a .ttf in a .tar, but these are not used in an example program.

Could I have a bit more detail on this please.
Are these fonts the Arduino format .h files or as a .ttf?
What is the process for converting these to a .bin for Annex?

Re: Loading additional fonts.

Posted: Sat May 01, 2021 12:56 pm
by cicciocb
Hi Andy,
I forgot to document and distribute these fonts.
Actually the conversion in .bin format is done using a program that runs on the module itself (not annex, but a c++ program).

As nobody asked for, I even forgot how I did but the plan is to publish an easy way for the conversion ( maybe inside the toolkit).

In the while this .zip contains around 50 fonts already converted in .bin format.
FreeFonts.zip

Re: Loading additional fonts.

Posted: Sat May 01, 2021 1:02 pm
by AndyGadget
Absolutely Brilliant!

Many thanks, Francesco.

Re: Loading additional fonts.

Posted: Sat May 01, 2021 1:03 pm
by Electroguard
I've just downloaded them anyway, but what display are these fonts actually for ?

Re: Loading additional fonts.

Posted: Sat May 01, 2021 9:46 pm
by AndyGadget
These are additional TFT display fonts which can be loaded as font 10 and 11 using TFT.LOADFONT as detailed in the help file.
(Although as Francesco admits, not fully documented :) )

Re: Loading additional fonts.

Posted: Tue Aug 16, 2022 8:06 pm
by BeanieBots
There are some nice fonts in that download, but is there any chance we could have instructions or a tool to convert fonts for ourselves?

Re: Loading additional fonts.

Posted: Fri Aug 19, 2022 6:29 am
by cicciocb
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue Aug 16, 2022 8:06 pm There are some nice fonts in that download, but is there any chance we could have instructions or a tool to convert fonts for ourselves?
Hi, yes, I'll try to document

Re: Loading additional fonts.

Posted: Fri Aug 19, 2022 9:21 am
by BeanieBots
That's great. Your efforst with all of this are very much appreciated.
Meanwhile, I've had a little play with a cheap 1.8" low res TFT using bitmapped fonts to get antialiased text.
It's a painful process but the results are quite pleasing so I'll post as a project once it's done. (only digits so far).
20220819_103346.jpg
Not the best of pictures but hopefully it can be seen that the characters and trend indicators are antialiased.
Bear in mind, that 1.8" display is only 128*160 pixels.