2 Program to convert any ttf font to c source file that can be includes in ESP32 tft library.
4 This is a windows program, but can be used under Linux with wine:
8 ttf2c_vc2003.exe <point-size> <input-file> <output-file> [<start_char> <end_char>]
12 wine ./ttf2c_vc2003.exe <point-size> <input-file> <output-file> [<start_char> <end_char>]
18 wine ./ttf2c_vc2003.exe 18 Vera.ttf vera.c
21 After the c source is created, open it in editor and make following changes:
25 #include <avr/pgmspace.h>
29 uint8_t vera18[] PROGMEM =
33 unsigned char vera18[] =
36 The font name ("vera18" here) will be different for different font,
37 you can change it to any other name.