On 1 June 2011 20:31, Chris Morley <c.mor...@gaseq.co.uk> wrote: > On 31/05/2011 21:27, Noel O'Boyle wrote: >> >> I forgot to attach the test file, which I converted with "-d" to >> remove the hydrogens. >> >> - Noel >> >> On 31 May 2011 21:25, Noel O'Boyle<baoille...@gmail.com> wrote: >>> >>> Hi Chris, >>> >>> Could you or Tim help me with the placement of text in the png >>> painter. Seems a bit complex. >>> >>> The attached images compare the output of the png and svg. You can see >>> that the png has the 2 of NH2 a bit too high, and the H of NH is also >>> too high. >>> >>> Any idea how to solve this? > > The problem is with what is in OBFontMetrics. The structure is presumably > based on what Cairo provides, but I didn't find any equivalent for svg, so I > had to make it up. I'm a bit busy at the moment, but the strategy should be > to adjust OBDepict so that png is correct and then correct OBFontMetrics in > SVGPainter so that svg is restored properly.
Yes - thanks for that. That helped a lot. I'll just check it in now. > Chris > ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel