Re: [Rdkit-discuss] SVG depiction with fonts?

2021-10-04 Thread Greg Landrum
It would have helped if I'd gotten the sense of the arguments correct... sorry about that. What I should have typed is: d = Draw.MolDraw2DSVG(350,300,-1,-1,True) The "True" argument disables FreeType -greg On Mon, Oct 4, 2021 at 4:38 PM Geoffrey Hutchison wrote: > > Unfortunately there are

Re: [Rdkit-discuss] SVG depiction with fonts?

2021-10-04 Thread Geoffrey Hutchison
> Unfortunately there are not keyword arguments for this (something for me to > fix ASAP), but you can do this as follows: > d = Draw.MolDraw2DSVG(350,300,-1,-1,False) Perfect, thanks! Maybe the keyword can be `useFreeType = False` or something along those lines. -Geoff

Re: [Rdkit-discuss] SVG depiction with fonts?

2021-09-30 Thread Greg Landrum
Hi Geoff, you need to disable the use of freetype when you create the MolDraw2DSVG object. Unfortunately there are not keyword arguments for this (something for me to fix ASAP), but you can do this as follows: d = Draw.MolDraw2DSVG(350,300,-1,-1,False) That last "False" turns off FreeType and

[Rdkit-discuss] SVG depiction with fonts?

2021-09-28 Thread Geoffrey Hutchison
Hi all, I recently upgraded to RDKit 2021.3 from the March 2020 version. With last year's release, I was able to tweak the generated SVG depictions to replace characters (e.g., where we used "*" in a SMILES but really wanted "M" for a metal center) or change the font-weight and font-size.