SKINNING - font size change using the same skin?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Hi,

    You could use BUTTON_SetFont() to change the font. If you want to change the font e.g. when clicking the button you can react on WIDGET_ITEM_DRAW_TEXT within the custom skinning routine and change the font accordingly.

    Attached is an example where I change the font if the button gets pressed down and uses the default font when it gets released.

    Regards
    Sven
    Files
    • TextInSkin.zip

      (854 Byte, downloaded 254 times, last: )
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.