Sunday, March 18th 2018, 10:27pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Oct 5th 2017

Posts: 30


Monday, November 27th 2017, 4:47pm

SKINNING - font size change using the same skin?

Dear all

How to make the Font size change using the same button skin?


SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 512


Tuesday, November 28th 2017, 11:06am


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.

SEGGER - Schoenen has attached the following file:
  • (854 Byte - 27 times downloaded - Last download: Mar 12th 2018, 8:57pm)