ToggleButton Font and Text Size


In the Introjucer Component Builder or derived class code, how can I set the font and font size of “ToggleButton” text?

The “Label” class has font and size fields that can be modified in the Component Builder or in the code. How to do the same for “ToggleButton”?

Similarly, how to keep text from auto-sizing?


The text of a ToggleButton is drawn in LookAndFeel::drawToggleButton using Graphics::drawFittedText. You will need to create your own LookAndFeel class and overwrite the LookAndFeel::drawToggleButton method to make it look different.