mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Removed the style parameter from Graphics::setFont(), because if the current font doesn't support that style, it'll give the wrong results. If this breaks your code, just wrap your arguments in a Font constructor, e.g. g.setFont (Font (mySize, myStyle));
This commit is contained in:
parent
7dc6a4687e
commit
f5d72f1406
10 changed files with 16 additions and 21 deletions
|
|
@ -70,7 +70,7 @@ void ItemPreviewComponent::paint (Graphics& g)
|
|||
RectanglePlacement::centred | RectanglePlacement::onlyReduceInSize,
|
||||
false);
|
||||
|
||||
g.setFont (15.0f, Font::bold);
|
||||
g.setFont (Font (15.0f, Font::bold));
|
||||
g.setColour (Colours::white);
|
||||
g.drawMultiLineText (facts.joinIntoString ("\n"),
|
||||
10, 15, getWidth() - 16);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue