After looking at this I ended up wondering if there’s something I’m missing.
I wanted to change my Font sizes for the TextProperrtyComponent and came upon the following conundrum:
In the TextProperrtyComponent, there’s a private member Label. Two font sizes are related to that:
A: The size used to draw the label, which is easily enough changed by adding a drawLabel method in one’s LookAndFeel class, and using a size other than that of the Label’s font object.
B: The size of the font used in the label’s editor, which one can set only if one has access to the Label’s setFont function.
So now, if I want to change the font in the TextProperrtyComponent editor, the only recourse, due to B and the Label object being private, seems to be to copy-paste the TextProperrtyComponent code into my own new class, and change a few lines!
Have I missed something? Surely there should be a Juce(y)er way to have control over one’s font sizes?
I’m in the process of making a program where users have control over the UI’s font sizes, so that old myopic people, and varying screen size and pixel densities can be optimally supported.
Hiccups similar to the above will likely happen more than once I imagine, so my wider-scoping question would be: How do I centrally allow increasing/decreasing the size of fonts across my UI?