On Nov 20, 2012, at 10:23 AM, Andrew Dalke wrote:
> What font are you using?
Ahh, you showed the code. It uses the default, which is from
rdkit/Chem/Draw/MolDrawing.py and is "sans"
Could you try this?
from rdkit.Chem.Draw import MolDrawing
MolDrawing.MolDrawing.atomLabelFontFace = "sansserif"
This forces the default to be "sansserif" instead of "sans"
If this works, then the fix for RDKit is either to change
the setting in MolDrawing to "sansserif" or to change
rdkit/sping/PIL/pidPIL.py:
def _pilFontPath(face,size,bold=0):
if face == 'monospaced': face = 'courier'
elif face == 'serif': face = 'times'
elif face == 'sansserif' or face == 'system': face = 'helvetica'
so that "face == 'sans'" is another alias for helvetica.
Cheers,
Andrew
[email protected]
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss