wctltya Posted September 27, 2016 Report Posted September 27, 2016 Perhaps such a question has been answered already, but I didn't found it. I would like to have different fonts for different widgets on a screen page. For example there many Labels which I would like to draw them in different fonts, sizes, colors. So, how to set the particular widgets font either in uGfx Studio and the code? In gui.c > guiCreate() is invoked gwinSetDefaultFont(FontName), but it is for the entire app (or page), isn't it? And how to set the text color, by the style structure foreground color? Or there is another way?
wctltya Posted September 27, 2016 Author Report Posted September 27, 2016 Sorry guys, I found the answer. So, you can delete this topic.
Joel Bodenmann Posted September 27, 2016 Report Posted September 27, 2016 No need to delete the topic. If you can leave an answer to your question this might help other people in the future that have the same question Official the answer is: Use gwinSetFont() to set a widget specific font Use the Font property combobox in the µGFX-Studio widget editor on the right side to set a font in the studio
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now