Brian, (and Eric and others)

Thanks very much for the test examples. This is just what I needed. 
These should all be fixed for 11.5.6.

In addition, I have added one more feature. You can set a font scale 
reference two ways now -- either by indicating the number of Angstroms 
per pixel (a number < 5) or a zoom setting (a number >= 5). This should 
be convenient for users who just want to set the font size.

Test files can be found at 
http://chemapps.stolaf.edu/jmol/docs/examples-11/Jmol-11_5.zip


Bob


Brian McMahon wrote:

>
>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?
>
>  
>
nothing new there. Jmol is designed to switch to contrasting color if a 
label is the same as the background color and has no label background. 
What you have found is a bug in 11.4, actually. That's fixed now.

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


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get. 

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900



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