[jQuery] Re: How to check for specified fonts

2007-10-08 Thread EdMartin
Yes. That certainly would have been an issue if I were doing the testing on an XHTML 1.1 page. In fact, however, I'm doing it on a kind of "gateway" page that gives access to more than one distance-learning courses, only one of which (a Calculus course) needs the full MathML capability. So I serve

[jQuery] Re: How to check for specified fonts

2007-10-07 Thread Joel Birch
I wonder if it has anything to do with the fact that you must serve XHTML 1.1 as real XML instead of using the text/html mime type, which I assume you are doing if you have it working in IE as it does not support XHTML served in the correct way. That's an absolute stab in the dark, and probably n

[jQuery] Re: How to check for specified fonts

2007-10-07 Thread EdMartin
Well, you're right that it works for the usual fonts. I hadn't noticed that because my interest in having such a test derives from the desire to detect if users have the necessary fonts installed to display MathML in documents served as http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd";> So

[jQuery] Re: How to check for specified fonts

2007-10-06 Thread Joel Birch
I set up a test and added some debugging code and it works for me. Here is the relevant stuff so you can see how it differs. HTML: Some well-chosen sample text Some well-chosen sample text JS: function IsItThere( fontname ){ $("#test").css("font-family", fontname + ", monospace