1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Font::fromString() fix.

This commit is contained in:
jules 2012-07-03 19:43:49 +01:00
parent b6211f01c8
commit 46c327d902

View file

@ -700,7 +700,7 @@ Font Font::fromString (const String& fontDescription)
if (name.isEmpty())
name = getDefaultSansSerifFontName();
String sizeAndStyle (fontDescription.substring (separator + 1));
String sizeAndStyle (fontDescription.substring (separator + 1).trimStart());
float height = sizeAndStyle.getFloatValue();
if (height <= 0)