MolImageSize is way off

User f5e6ccf034

07-01-2008 14:31:22

I pointed out a long time ago that the size returned by MolImageSize


can be really way off and I notice that this hasn't improved. The


attached program below, run on the attached molecule at scale = 20,


shows that the vertical size is almost 50% too big (the wasted space


was manually highlighted in yellow). Is this really such an intractable


problem?

ChemAxon 7c2d26e5cf

09-01-2008 15:41:19

Sorry for the late answer.


We have already started checking this issue.


Probably, the code of Marvin (molecule bound calculation) should improve to solve this problem. Until that we are investigating whether a workaround could be prepared for it.

User f5e6ccf034

09-01-2008 16:14:30

Thanks! That's neither urgent nor hateful ;-) I just wanted to remind


you of the issue because in some settings the overshoot is quite


apparent.

ChemAxon 7c2d26e5cf

09-01-2008 16:22:47

If you are interested in MolPrinter API, I recommend you to check the following topic as well: FontMetrics for Marvin TextBoxes


Although it does not give answer to your original question, it might be useful.