How to change the font of a Slider textbox?

In my projects, I am changing the font in Slider Textboxes. I took a look into how exactly I am achieving that, since it’s been awhile.

I have a custom LookAndFeel applied to the Sliders, and in that LookAndFeel, I override:

getLabelFont(Label& label)

I then return in that function the desired font. This works, since the textbox part of the slider is actually a Label.

Example: setting this to return “Bradley Hand”:

1 Like