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?
Loading additional fonts.
-
- Posts: 111
- Joined: Mon Feb 15, 2021 1:44 pm
- Has thanked: 41 times
- Been thanked: 81 times
-
- Site Admin
- Posts: 418
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 92 times
- Been thanked: 299 times
- Contact:
Re: Loading additional fonts.
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.
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.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 111
- Joined: Mon Feb 15, 2021 1:44 pm
- Has thanked: 41 times
- Been thanked: 81 times
- Electroguard
- Posts: 279
- Joined: Mon Feb 08, 2021 6:22 pm
- Has thanked: 56 times
- Been thanked: 129 times
Re: Loading additional fonts.
I've just downloaded them anyway, but what display are these fonts actually for ?
-
- Posts: 111
- Joined: Mon Feb 15, 2021 1:44 pm
- Has thanked: 41 times
- Been thanked: 81 times
Re: Loading additional fonts.
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
)
(Although as Francesco admits, not fully documented
