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:
parent
a092c19bcc
commit
5e4fd94b8f
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue