From 46c327d902802e11e855e255dc61577acaf5b9e7 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 3 Jul 2012 19:43:49 +0100 Subject: [PATCH] Font::fromString() fix. --- modules/juce_graphics/fonts/juce_Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_graphics/fonts/juce_Font.cpp b/modules/juce_graphics/fonts/juce_Font.cpp index 2a651554f2..76363505ac 100644 --- a/modules/juce_graphics/fonts/juce_Font.cpp +++ b/modules/juce_graphics/fonts/juce_Font.cpp @@ -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)