Hi RDKiters, for displaying structures in a PyQt QTableWidget, I was using
Draw.MolToQPixmap(mol,size=(300,300)) However, the atom labels are pretty misaligned, which is especially annoying in rings. Furthermore, when using small image sizes the atom labels are too large relative to the rings. Some time ago, Greg suggested to use MolToImage instead: Draw.MolToImage(mol,size=(300,300)) The aligment looks better there, but for me the standard font size is too small relative to the rings. How can I change the atom label font size in Draw.MolToImage()? I was hoping for something simple, like Draw.MolToImage(mol, size=(300,300), atomLabelFontSize=16) I couldn't find clear documentation about this. The following link might be related: https://www.rdkit.org/docs/source/rdkit.Chem.Draw.MolDrawing.html but I don't know how to put it together. I'm missing practial code examples. Thank you for your help. Theo. _______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss