David, thanks for the very thorough testing. All JSmol is doing is setting
the canvas.context.font using a simple string like "bold 12px Serif"
So perhaps some experimentation on your part with a simple canvas could fix
that. You can find the code for this at
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_font
and get back to me with what looks good.
Bob
On Thu, Jan 15, 2015 at 8:37 AM, David Leader <david.lea...@gmail.com>
wrote:
> Following my initial foray into converting Jmol applets to JSmol/HTML5
> for small teaching demos, I am now turning my attention to a research
> web application for protein structure motivated (Motivated Proteins)
> that has been employing the Jmol java applet for the last 10 years or
> so (http://motif.gla.ac.uk/motif/index.html). I am happy to say that I
> have managed to do a 95%-acceptable conversion and have mounted a
> hard-coded mock-up at http://motif.gla.ac.uk/JSmolTest/. Thanks again
> to Robert Hanson and the rest of the Jmol/JSmol team.
>
> However...
> ...I have encountered what I regard as a bug in relation to the
> rendering of text labels. In brief, the default label font for Mac
> Safari seems imperceptibly different from bold, and is aesthetically
> unpleasing, and, although this is not particularly important for me,
> the default hover text is unacceptably ugly. The situation is similar
> (albeit with some differentiation between plain and bold labels) for
> Chrome and Firefox on the Mac (a year old iMac with a normal
> resolution display running Mavericks). On viewing the mockup on a
> student PC cluster running Windows 7, Chrome and Firefox look
> marginally better than on the Mac, and only Internet Explorer shows a
> proper plain label with an acceptable hover style of text.
> This is different from the java applet version of the web application
> running on Mac Safari (albeit running a very old version of Jmol)
> where the text has always been fine, given that it is aliased.
>
> Viewing the mock-up on my iPhone there is also no difference between
> plain and bold, although the default is less bad, perhaps because the
> phone has a Retina-display screen.
>
> I have mounted a gallery of screenshots at
> http://motif.gla.ac.uk/JSmolTest/text.html. One can also view the text
> on my demo: click on the button for individual motifs and then on
> Motif 1 - marked up as 12 plain - and Motif 2 - marked up as 12 bold.
>
> I wonder if the font (if any) that is being specified is the problem.
> Or is there some IE-only code somewhere?
>
> David Leader
>
> (University of Glasgow)
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department 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
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users