> The problem is - as you go on to point out - with scaling of fonts
> and other objects, such as unit cell axis widths, where the
> size is specified in pixels. From the same script I want to create
> both the online image (at about 100 pixels per inch) and a
> higher-resolution TIFF (~ 300 ppi). If I simply scale the
> output width and height to get the TIFF, my fonts are 1/3 the
> desired size.
>
>> Q: How did you solve the font scaling problem?
>
> It's not a solved problem. I was hoping Bob would say "Oh, it's just
> a half-hour's work to provide an export option that will scale all
> dimensions (in pixels) by a factor of n" :-)
>
> Failing that, we will look into post-processing the script to find
> any size-setting commands and scale them individually; and also to
> determine default sizes for fonts etc. and scale those defaults
> globally.
>

Definitely more than half an hour's work. Perhaps what we are going to
need is some sort of font size expressed in percent -- which would use the
Jmol default font size and offsets and some sort of default applet size
(height? width? 400?), and then calculate the font sizes on the fly from
that. Or what we will need is some sort of setting such as

 set fontScaleAutomatic 400

that would take whatever font sizes and offsets are present and apply the
ratio of this number to the zoom-determining dimension (height or width).
Might work....

Bob



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to