Loading additional fonts.

Place where find documentation
Post Reply
AndyGadget
Posts: 222
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 119 times
Been thanked: 132 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?
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1260 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: 222
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 119 times
Been thanked: 132 times

Re: Loading additional fonts.

Post by AndyGadget »

Absolutely Brilliant!

Many thanks, Francesco.
User avatar
Electroguard
Posts: 835
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 267 times
Been thanked: 317 times

Re: Loading additional fonts.

Post by Electroguard »

I've just downloaded them anyway, but what display are these fonts actually for ?
AndyGadget
Posts: 222
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 119 times
Been thanked: 132 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 :) )
BeanieBots
Posts: 315
Joined: Tue Jun 21, 2022 2:17 pm
Location: South coast UK
Has thanked: 168 times
Been thanked: 102 times

Re: Loading additional fonts.

Post 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?
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1260 times
Contact:

Re: Loading additional fonts.

Post 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
BeanieBots
Posts: 315
Joined: Tue Jun 21, 2022 2:17 pm
Location: South coast UK
Has thanked: 168 times
Been thanked: 102 times

Re: Loading additional fonts.

Post 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.
You do not have the required permissions to view the files attached to this post.
Post Reply