1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Docs: Clarify that Label get/setFont may be overridden by LookAndFeel

Thanks to @FigBug for the report.
This commit is contained in:
Sudara 2025-07-16 14:13:19 +02:00
parent 30b62cc6be
commit 26e8d81380

View file

@ -89,13 +89,15 @@ public:
//==============================================================================
/** Changes the font to use to draw the text.
@see getFont
Note that when drawing, the label's LookAndFeel may override the font set here.
@see getFont, LookAndFeelMethods
*/
void setFont (const Font& newFont);
/** Returns the font currently being used.
This may be the one set by setFont(), unless it has been overridden by the current LookAndFeel
@see setFont
/** Returns the Label's current font.
Note that this method will always return the font set by setFont(), even if
the LookAndFeel is overriding the label's font during drawing.
@see setFont, LookAndFeelMethods
*/
Font getFont() const noexcept;