From 5e4fd94b8f3920d314c9c59f3de577d2c8f23576 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 10 Aug 2017 15:09:23 +0100 Subject: [PATCH] SVG parser: if font-size is unspecified for text, a non-zero default size is used --- modules/juce_gui_basics/drawables/juce_SVGParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/drawables/juce_SVGParser.cpp b/modules/juce_gui_basics/drawables/juce_SVGParser.cpp index 6b604ebe48..3f71281009 100644 --- a/modules/juce_gui_basics/drawables/juce_SVGParser.cpp +++ b/modules/juce_gui_basics/drawables/juce_SVGParser.cpp @@ -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)); } //==============================================================================