It will not be as easy as you think to modify jsMath to use @font-face
web fonts.

First, IE uses EOT fonts, while everyone else uses TTF and OTF fonts
(and DON'T handle EOT fonts).  Also, EOT fonts are keyed to a
particular server, so they would have to be modified every time you
want to serve them from a different server.  I'm not sure of the
implications of this for using them from a local disk (as no server is
involved).

Second, several browsers load web fonts asynchronously, meaning that
they initially show the character in a default font and then change
the page after the font is loaded.  Because jsMath must measure the
size of parts of the mathematics while it is constructing the typeset
formula, this approach will not work (the sizes would change after the
math has ben typeset).  So you would need to work out a method of
determining when the font is actually available and wait until after
that to start typesetting mathematics.  The only ways I can think of
to do this are fragile hacks.

I have been looking forward to being able to use web fonts with
jsMath, but it is not a trivial change, and I'm not sure when I will
get to it.

Davide

On Jul 16, 12:26 pm, Tom Boothby <tomas.boot...@gmail.com> wrote:
> At long last, the Mozilla team has heard the voice of reason, and
> allows the browser to download fonts!  This means no more jsmath
> warning!  Next week, I'm going to take a crack at remedying this
> problem in jsmath itself, and submitting it upstream.  Failing that,
> I'll put it into the notebook code.
>
> http://craigmod.com/journal/font-face/
>
>    --tom
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to