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

Made SVG parser cope with quoted font names

This commit is contained in:
jules 2017-05-30 11:46:06 +01:00
parent 84a4dc0faa
commit 4397cc3701

View file

@ -1007,7 +1007,7 @@ private:
if (getStyleAttribute (xml, "font-weight").containsIgnoreCase ("bold"))
style |= Font::bold;
auto family = getStyleAttribute (xml, "font-family");
auto family = getStyleAttribute (xml, "font-family").unquoted();
return family.isEmpty() ? Font (fontSize, style)
: Font (family, fontSize, style);