mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
New method Font::withPointHeight, for specifying font sizes in points.
This commit is contained in:
parent
6971cab6d2
commit
2ae82c4db4
13 changed files with 104 additions and 90 deletions
|
|
@ -130,8 +130,7 @@ public:
|
|||
if (rowIsSelected)
|
||||
g.fillAll (Colours::lightblue);
|
||||
|
||||
Font font (fonts [rowNumber]);
|
||||
font.setHeight (height * 0.7f);
|
||||
Font font = fonts[rowNumber].withPointHeight (height * 0.6f);
|
||||
|
||||
g.setFont (font);
|
||||
g.setColour (Colours::black);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue