Jump to content

Different fonts


wctltya

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...