Loading additional fonts.

Place where find documentation
Post Reply
AndyGadget
Posts: 63
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 24 times
Been thanked: 54 times

Loading additional fonts.

Post 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?
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: Loading additional fonts.

Post 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
You do not have the required permissions to view the files attached to this post.
AndyGadget
Posts: 63
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 24 times
Been thanked: 54 times

Re: Loading additional fonts.

Post by AndyGadget »

Absolutely Brilliant!

Many thanks, Francesco.
User avatar
Electroguard
Posts: 179
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 40 times
Been thanked: 102 times

Re: Loading additional fonts.

Post by Electroguard »

I've just downloaded them anyway, but what display are these fonts actually for ?
AndyGadget
Posts: 63
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 24 times
Been thanked: 54 times

Re: Loading additional fonts.

Post 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 :) )
Post Reply