1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

SVG parser: if font-size is unspecified for text, a non-zero default size is used

This commit is contained in:
jules 2017-08-10 15:09:23 +01:00
parent a092c19bcc
commit 5e4fd94b8f

View file

@ -1126,7 +1126,7 @@ private:
if (getStyleAttribute (xml, "font-weight").containsIgnoreCase ("bold"))
f.setBold (true);
return f.withPointHeight (getCoordLength (getStyleAttribute (xml, "font-size"), 1.0f));
return f.withPointHeight (getCoordLength (getStyleAttribute (xml, "font-size", "15"), 1.0f));
}
//==============================================================================