Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / common / m5stack-tft / repo / tools / readme.txt
1
2 Program to convert any ttf font to c source file that can be includes in ESP32 tft library.
3
4 This is a windows program, but can be used under Linux with wine:
5
6 Usage:
7
8 ttf2c_vc2003.exe <point-size> <input-file> <output-file> [<start_char> <end_char>]
9
10 or, under Linux:
11
12 wine ./ttf2c_vc2003.exe <point-size> <input-file> <output-file> [<start_char> <end_char>]
13
14
15 Example:
16 --------
17
18 wine ./ttf2c_vc2003.exe 18 Vera.ttf vera.c
19
20
21 After the c source is created, open it in editor and make following changes:
22
23 Delete the line:
24
25 #include <avr/pgmspace.h>
26
27 Change the line:
28
29 uint8_t vera18[] PROGMEM =
30
31 to:
32
33 unsigned char vera18[] =
34
35
36 The font name ("vera18" here) will be different for different font,
37 you can change it to any other name.
38