LFC Font Converter is a specialized command-line tool that converts TrueType/OpenType fonts into the C8 bitmap font format optimized for embedded systems. Using the FreeType library, it converts only specified characters into efficient C arrays ready for integration into C-based embedded projects.
-
FreeType-Based Conversion: Accurate font rendering using the FreeType library
-
Selective Character Conversion: Convert only needed characters to minimize memory footprint
-
C8 Bitmap Format: Optimized custom format for embedded systems
-
C Language Integration: Outputs directly as C arrays (.h and .c files)
-
UTF-8 & UTF-32 Support: Full Unicode character support
-
Command Line Interface: Easy integration into build pipelines
-
Visual Studio Project: Pre-configured for easy compilation
| Parameter | Description | Required | Example |
|---|---|---|---|
| -f | Input font file (TTF format required) | Yes | -f Arial.ttf |
| -a | Export all characters to UTF-8 text file | Yes | -a all_chars.txt |
Example: Converter.exe -f Arial.ttf -a all_char.txt
all_char.txt file will be create
| Parameter | Description | Required | Example |
|---|---|---|---|
| -f | Input font file (TTF format required) | Yes | -f Arial.ttf |
| -o | Output header file (.h extension) | Yes | -o my_font.h |
| -c | UTF-8 character set file (.txt) | Yes | -c my_chars.txt |
| -s | Font size in pixels (positive integer) | Yes | -s 16 |
Example: Converter.exe -f Arial.ttf -o arial.h -c chars.txt -s 24
arial.h will be create
| Parameter | Description | Required | Example |
|---|---|---|---|
| -f | Input font file (TTF format required) | Yes | -f Arial.ttf |
| -o | Output header file (.h extension) | Optional | -o my_font.h |
| -u | UTF-32 character set file (.txt) | Optional** | -u utf32_codes.txt |
| -s | Font size in pixels (positive integer) | Yes | -s 16 |
Example: Converter.exe -f Arial.ttf -o arial.h -u utf32_codes.txt -s 24
arial.h will be create
| Parameter | Description | Required | Example |
|---|---|---|---|
| -h or ? | Show help message | Optional | -h |
Video : https://www.youtube.com/embed/kiy8hUHDtfQ?si=wGdkTaGpn4vWaZG1