HI Adrian,

On Wed, Jul 11, 2012 at 9:49 AM, Adrian Jasiński
<jasinski.adr...@gmail.com> wrote:
>
> Greg thanks for new release.
> By the way I have the question:
> How can I change font size on image?

The MolDrawing class that's used by the Draw.MolTo{File,Image}
functions has an atomLabelFontSize member that you can change. It's a
bit fiddly to do this while using Draw.MolTo{File,Image}, but it can
be done:

In [3]: from rdkit.Chem import Draw

In [4]: from rdkit.Chem.Draw.MolDrawing import MolDrawing

In [6]: MolDrawing.atomLabelFontSize=18

in [7]: Draw.MolToFile(m,'blah.png')

> When I create small images the font is too big and on some big size
> images it is too small.

You should be able to solve the problem with fonts being too small the
same way using MolDrawing.atomLabelMinFontSize.

-greg

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to