Dear Bob

> # new feature: set fontScaling TRUE/FALSE
> 
> OK, this is big. It still needs extensive testing. I'm sure there are a 
> few bugs here.
> After using
> 
>  set fontScaling TRUE
> 
> when you then introduce a label or 3D echo, the current zoom is used as 
> a basis for the font size. When the zoom is changed (or the window size 
> is changed), the font sizes follow.
> 
> Note that this only affects fonts for atom labels and 3D echos.
> 
> In addition, now when you create a JPG image, Jmol will adjust the fonts 
> of axes, unit cells, captions, titles, and such so that the produced 
> image looks (nearly) the same as the original model. I say "nearly" 
> because when you scale fonts they are not going to be exactly the same. 
> But they should be very close.

Many thanks indeed for the new font scaling features in 11.5.4.
They work very nicely in creating the high-resolution figures I
need in parallel with the current applet view, and open the way to
full implementatuion of Jmol-enhanced figures in our journals.

Here are a few early observations. Note that all my examples
so far are with a small-molecule CIF (that might be relevant if
your loading of crystal structures itself performs some
preliminary scaling or distance normalisation).

Case 1:

  load 
"http://submission.iucr.org/jtkt/servecif/z/9zpJOELMOAZw2mzo/zz0000/_zz0000fig0_enhanced.cif";;
  font labels 20 serif bold;label %a
  set labeloffset 0 0
  set labeloffset -12 -12

Note, no font scaling invoked.

With Jmol 11.4RC1: works as expected
With Jmol 11.5.4: labels not centred with 0 0 offset - they appear to be
roughly where "set labeloffset -3 -3" puts them under 11.4RC1. Similarly,
the position after "set labeloffset -12 -12" is about where 11.4RC1
locates them with "set labeloffset -46 -46"
           

Case 2:
   now add

   set fontScaling TRUE;

With Jmol 11.5.4: the labels (currently offset to lower left) jump to
the positions they occupied with "set labeloffset -12 -12" under 11.4RC1;
but for other offsets (0 0, 12 12, etc.) they sit consistently too
high and to the right.

Now the labels don't scale as I zoom in and out. Is this expected
behaviour? (i.e. the fontScaling must be set at initialisation?)


Case 3:

  load 
"http://submission.iucr.org/jtkt/servecif/z/9zpJOELMOAZw2mzo/zz0000/_zz0000fig0_enhanced.cif";;
  set fontScaling TRUE;
  font labels 20 serif bold;label %a
  colour labels black

With Jmol 11.5.4: Labels grow and shrink as I dynamically zoom the figure.
However, they are white (on a black background). "background white" causes
them to flip colour - now they are black. This is very convenient,
but differs from 11.4RC1 where "colour labels black" and "colour
labels white" were honoured verbatim. Will this be the behaviour in
future?


Case 4:

  load 
"http://submission.iucr.org/jtkt/servecif/z/9zpJOELMOAZw2mzo/zz0000/_zz0000fig0_enhanced.cif";;
  set fontScaling TRUE;
  font labels 20 serif bold;label %a
  zoom 200;
  font labels 24 serif bold;label %a
  zoom 200;

With Jmol 11.5.4: When the second font command is issued, the labels
appear small (they are 24 pixels at the initial zoom setting); the
second "zoom" command doesn't affect them - they still look small.
On the other hand, "zoom 201;" causes them to jump to the expected size.


These don't necessarily reflect major bugs, but they do require
workarounds either from the program or the user.

Hope these observations are of some use.

Best wishes
Brian

-------------------------------------------------------------------------
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