The new Google Material Icon SVG’s do not scale the right way with JUCE.
SVG download:
The definition in the SVG:
height="24px" viewBox="0 -960 960 960" width="24px"
The old version of the icons worked:
height="24px" viewBox="0 0 24 24" width="24px"
Example code:
_drawable = Drawable::createFromSVG(*svgXml);
_drawable->setBounds(0, 0, getWidth(), getHeight());
_drawable->setTransformToFit(Rectangle<float>(0, 0, (float)getWidth(), (float)getHeight()), RectanglePlacement());
It would great if this can be fixed. I’m not sure how long google offers the old icons for download.
