Hey all - is it possible to set different font sizes (or ideally fonts) in the same component?
I’m trying to do something like this…
Font font ("Helvetica Neue", 20 , Font::plain); g.setFont (font); g.drawText("size 20 text", 0,0, width, height, Justification::left); font.setHeight(10); g.drawText("size 10 text", 0,0, width, height, Justification::left);
If I run the debugger, the height of the font does get set to 10, but it draws the 2nd line of text as size 20.
If I make an entirely new font instead, it doesn’t draw the text at all.
Is the answer to make a component for each style of font I want to use - kind of like a class in CSS?