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
> 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
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
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.
4 matches
Mail list logo