title: How to make SVG to PNG rendering with MiniMagick not ignore size and font options?
body: <p>I'm using <a href="https://github.com/minimagick/minimagick" rel="nofollow"><code>minimagick</code></a> to do some dynamic resizing of a SVG image into a PNG one.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>require "mini_magick"
  
  svgString = '&lt;?xml version="1.0" encoding="UTF-8"?&gt;'\
  '&lt;svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" viewBox="0, 0, 512, 512"&gt;'\
    '&lt;g id="Calque_1"&gt;'\
  '    &lt;g&gt;'\
  '      &lt;path d="M256,432.5 C143.61,432.5 52.5,345.867 52.5,239 C52.5,132.133 143.61,45.5 256,45.5 C368.39,45.5 459.5,132.133 459.5,239 C459.5,345.867 368.39,432.5 256,432.5 z" fill="#FFFFFF"/&gt;'\
  '      &lt;path d="M256,432.5 C143.61,432.5 52.5,345.867 52.5,239 C52.5,132.133 143.61,45.5 256,45.5 C368.39,45.5 459.5,132.133 459.5,239 C459.5,345.867 368.39,432.5 256,432.5 z" fill-opacity="0" stroke="#000000" stroke-width="1"/&gt;'\
  '    &lt;/g&gt;'\
  '    &lt;text transform="matrix(1, 0, 0, 1, 179.125, 208)"&gt;'\
  '      &lt;tspan x="-28.125" y="10.5" font-size="24" fill="#000000"&gt;Is this using my font?&lt;/tspan&gt;'\
  '    &lt;/text&gt;'\
  '  &lt;/g&gt;'\
  '&lt;/svg&gt;'
  
  image = MiniMagick::Image.read(svgString)
  image.combine_options do |b|
    b.resize "760x760"
    b.font "/Users/foo/Library/Fonts/myFont.ttf"
  end
  image.format("png", 1)
  image.write('from-string.png') 
  </code></pre>
  
  <p>The image gets rendered, but it's a 512x512 image (the viewport size), and the font <code>myFont</code> is not used in the rendering.</p>
  
  <p>Any idea how I could fix this?</p>