Majid-Derhambakhsh / ST7789

ST7789 LCD Library for ARM Cortex M (STM32) and AVR microcontrollers
MIT License
7 stars 0 forks source link

Convert new font #1

Open Sarim-Jalil opened 2 months ago

Sarim-Jalil commented 2 months ago

How to convert new fonts from ttf to the format used in library.

Majid-Derhambakhsh commented 1 month ago

You can use this Python code to change the format of the font into array bits: https://gist.github.com/wsarce/4a0f2dfb5d974000984bafd5a55930b1

fukushimaBH commented 4 days ago

You can use this Python code to change the format of the font into array bits: https://gist.github.com/wsarce/4a0f2dfb5d974000984bafd5a55930b1

This converter is not working, do you know the one that is working please? I would like to use your library but I need large fonts. I lost 2 days finding the font converter that would work but still no luck, coud you help me with this?

fukushimaBH commented 4 days ago

How to convert new fonts from ttf to the format used in library.

Hi, have you found the solution for converting fonts?

Sarim-Jalil commented 4 days ago

The converter works fine on Ubuntu. The windows version doesn't work. I used it on Ubuntu and ot generated the output in .c file.