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:
parent
b6211f01c8
commit
46c327d902
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue