Hi,
I ran this simple example code posted on the internet. However, I changed the output format to svg, extension of file name to .svg, smile string and coloring. The resulting file shows a strange rendering of the molecule, with the heteroatoms significantly enlarged and the comment text not spaced out. It looks like a mess and is not readable. I tried using Chrome and Firefox to view the .svg file and it looks the same on both. Did anyone else run into this issue?
from indigo import *
from indigo_renderer import *
indigo = Indigo()
renderer = IndigoRenderer(indigo)
mol = indigo.loadMolecule("CN1C=NC2=C1C(=O)N(C(=O)N2C)C")
mol.layout() # if not called, will be done automatically by the renderer
indigo.setOption("render-output-format", "png")
indigo.setOption("render-comment", "Caffeine")
indigo.setOption("render-comment-position", "top")
indigo.setOption("render-image-size", 200, 250)
indigo.setOption("render-background-color", 1.0, 1.0, 1.0)
renderer.renderToFile(mol, "caffeine.png")