mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Docs: Clarify that Label get/setFont may be overridden by LookAndFeel
Thanks to @FigBug for the report.
This commit is contained in:
parent
30b62cc6be
commit
26e8d81380
1 changed files with 6 additions and 4 deletions
|
|
@ -89,13 +89,15 @@ public:
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/** Changes the font to use to draw the text.
|
/** 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);
|
void setFont (const Font& newFont);
|
||||||
|
|
||||||
/** Returns the font currently being used.
|
/** Returns the Label's current font.
|
||||||
This may be the one set by setFont(), unless it has been overridden by the current LookAndFeel
|
Note that this method will always return the font set by setFont(), even if
|
||||||
@see setFont
|
the LookAndFeel is overriding the label's font during drawing.
|
||||||
|
@see setFont, LookAndFeelMethods
|
||||||
*/
|
*/
|
||||||
Font getFont() const noexcept;
|
Font getFont() const noexcept;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue