1
0
Fork 0
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:
jules 2012-12-17 21:27:23 +00:00
parent 6971cab6d2
commit 2ae82c4db4
13 changed files with 104 additions and 90 deletions

View file

@ -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);