Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the font generator #3

Open
ChubbyBunny1 opened this issue Sep 22, 2019 · 6 comments
Open

Using the font generator #3

ChubbyBunny1 opened this issue Sep 22, 2019 · 6 comments

Comments

@ChubbyBunny1
Copy link

Hi, i downloaded the zip file but i dont know how to use it to generate custom fonts for arduino.
I dont find any executable file, anyone can help?

@zst123
Copy link
Member

zst123 commented Oct 1, 2019

Sorry this is not for Arduino, but it is for the STM32 LCD

@ChubbyBunny1
Copy link
Author

I managed to run the script on windows by installing python. I generated fonts for an arduino display. Its the Waveshare 3.5 tft display. I found that it uses fonts from this generator by opening a font file that was included in the library.
https://www.waveshare.com/3.5inch-tft-touch-shield.htm

@sreeshma-am
Copy link

Hi how to create font table for korean?

@zst123
Copy link
Member

zst123 commented Jan 2, 2023

Hi how to create font table for korean?

Hi. All CJK fonts are supported.

Please refer to the following example. Here it maps "ABCDEFG" to the Korean characters.

https://github.com/zst-embedded/STM32-LCD_Font_Generator/blob/master/example-korean/korean-hello-world.txt

image

@vigilcoma
Copy link

Can you explain how to use the script with TTF font?

I've got this error if try to use *.ttf
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

@cloudwindy
Copy link

Can you explain how to use the script with TTF font?

I've got this error if try to use *.ttf AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

pip install Pillow==9.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants