Dear Alan, On Mon, Jun 27, 2011 at 10:13 PM, Alan Smith <[email protected]> wrote: > > I'm trying to change the font and the minimum font size for the atoms labels > in my depictions. I can see the variables: atomLabelFontFace and > atomLabelMinFontSize in the MolDrawing class in the documentation, but how > do I change them ? Also what fonts are available. > > This is the code I use to generate the depictions (taken from the wiki): > > from rdkit import Chem > > from rdkit.Chem import Draw > > mol = Chem.MolFromSmiles('c1ccncc1CC(=O)O') > > Draw.MolToImageFile(mol,'test.png')
At the moment the only way to change the font is to call the code in the MolDrawing class yourself (essentially copying much of the code that's in MolToFile) after having modified the members of the MolDrawing class. This is definitely an area where the code could/should be improved. It won't make the next release (coming soon), but it's a good suggestion for the Q3_2011 release. -greg ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Rdkit-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

