Hi,
I’m new to Juce and going through the tutorials. I’m working on the ‘Label Class’ tutorial and see that the Font class is depricated. I’m trying to change the following piece of code from the tutorial
(Just substituting FontOptions for juce::Font)
How do I specify a bold font using FontOptions without using the Font::bold enum? Is there any tutorial or documention (aside from the class reference) which dives into the FontOptions class?
Yes. It compiled for me too. The issue is that it uses the depricated Font class and may NOT compile in a future update. How should one create a bold font without using the Font class, and only use the FontOptions class?
FontOptions is not a replacement for the Font Class. It’s another class that specifies certain options to be used for the font. As @chrhaase mentioned, it’s just the constructors that now require a FontOptions class to be passed. Also note that these two are equivalent: