A collection of plain and anti-aliased fonts to use with the tgx 2D/3D graphic library
The plain fonts are encoded in ILI9341_t3_font_t
v1 format compatible with the ILI9341_t3 library.
The antialiased fonts are in ILI9341_t3_font_t
v2.3 format whose description can be found here and supported also by the Teensy specific ILI9341_t3n library.
A preview of all the fonts is available here.
-
All fonts were downloaded from Google Font
-
The repo is organized as follow
/ttf
contains the original font in ttf format./bdf
contains the font converted to BDF (version 2.3 with AA)./src
contains the .cpp/.h files with the font in the finalILI9341_t3_font_t
format./tools
contains a Python3 script to convert from bdf fonts to source .cpp/.h files./examples
contains examples on how to use the fonts (for Teensy, with tgx and my ILI9341_T4 driver).
-
The naming of the fonts follows the convention:
font_[FONTNAME]_[AAx]_[lite]_[SIZE]
where
FONTNAME
is the name of the font (possible including the 'italic' or 'bold' qualiier)AAx
is the antialiasing strategy:AA2
for 2 bit (4 levels of gray).AA4
for 4 bit (16 levels of gray).- Nothing for plain font (no anti-aliasing).
lite
means that only the characters 32-126 are available in the font (in order to make the font smaller). If this qualifier is omitted, all available characters in the range 32-255 are included in the font.SIZE
if the ref. height of the font in pixels.
- Each font is available in size
8,9,10,14,16,18,20,24,28,3,36
and in plain/AA2/AA4 format. Each font is also generated in normal and lite version.