Skip to content

Font #326

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

Open
Sse2005 opened this issue Feb 27, 2025 · 3 comments
Open

Font #326

Sse2005 opened this issue Feb 27, 2025 · 3 comments

Comments

@Sse2005
Copy link

Sse2005 commented Feb 27, 2025

Is there any way to change the font?

@nodoubtman
Copy link

nodoubtman commented Apr 14, 2025

Hello. I'm using google fonts everyday, you can use other fonts than google's.

Make sure you have python 3.0 installed

1st:
google fonts:
https://fonts.google.com/

2nd:
edit: ESPUI-master\data\index.htm with wordpad.

3rd:
locate:

after this line you can add custom google url, example:

4:
go to:
ESPUI-master\tools
in the command line

5:
Update index.htm and all the necessary files.
python prepare_static_ui_sources.py --auto

6:
Using your custom font in espui
after ESPUI.begin();

ESPUI.setElementStyle(famousQuotesLabel, F("font-family: "Walter Turncoat", cursive; font-size: 26px;"));

using label in ESPUI

ESPUI.updateLabel(famousQuotesLabel, "HELLO WORLD");

Any questions? don't be shy to ask.

I hope i helped you.
Marc.

@Sse2005
Copy link
Author

Sse2005 commented Apr 14, 2025

Many Thanks Marc!!!
I'll try it.
Another thing, Is there any way to use farsi language? I mean making the text right to left.
Thanks in advance

@nodoubtman
Copy link

Many Thanks Marc!!! I'll try it. Another thing, Is there any way to use farsi language? I mean making the text right to left. Thanks in advance

You are very welcome :)

I don't know about this farsi language. :)

Have a great day.
Let me know about your font progression.
Marc.

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

2 participants