mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-01 03:10:06 +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
|
|
@ -180,10 +180,10 @@ public:
|
|||
else
|
||||
g.setColour (Colours::black);
|
||||
|
||||
g.setFont (height * 0.7f, Font::bold);
|
||||
g.setFont (Font (height * 0.7f, Font::bold));
|
||||
g.drawFittedText (m->uid, height, 0, 200, height, Justification::centredLeft, 1);
|
||||
|
||||
g.setFont (height * 0.55f, Font::italic);
|
||||
g.setFont (Font (height * 0.55f, Font::italic));
|
||||
g.drawText (m->name, height + 200, 0, width - height - 200, height, Justification::centredLeft, true);
|
||||
}
|
||||
}
|
||||
|
|
@ -547,7 +547,7 @@ struct ProjectSettingsTreeClasses
|
|||
g.setColour (Colours::black.withAlpha (0.4f));
|
||||
g.drawRect (0, 28, getWidth(), getHeight() - 38);
|
||||
|
||||
g.setFont (14.0f, Font::bold);
|
||||
g.setFont (Font (14.0f, Font::bold));
|
||||
g.setColour (Colours::black);
|
||||
g.drawFittedText (getName(), 12, 0, getWidth() - 16, 26, Justification::bottomLeft, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue