iOS4.2 and web fonts

22 views
Skip to first unread message

Davide P. Cervone

unread,
Jan 9, 2011, 5:14:37 PM1/9/11
to mathj...@googlegroups.com
Robert and Sean:

Since iOS4.2 apparently supports web-based fonts without crashing
Safari, I've modified the HTML-CSS output jax to use them for iOS4.2
and above. (I no longer have a device running at less than that, so I
can't test the earlier versions any longer.) It is in the "iOS4.2"
branch of my fork of MathJax. I think it can be included in v1.1 if
there aren't any objections. The only change is to check if the
version is high enough (Safari 5.0.2 was new in iOS4.2, so that is
what I use). It would be great to get away from the image fonts for
iPhone and iPad. That means that the only use of image fonts at this
point is with Firefox for local files when MathJax is in another
directory from the page that loads it, and for older versions of
browsers (FF before 3.5, Safari before 3.1, Opera before 10, iPhone/
iPad before 4.2, Android before 2.2). I suspect that these are all
old enough now that we may be able to phase out support for them, and
I have an idea about how to handle FF with local files that should
eliminate that situation. So we may be able to dump the image fonts
at some point!

Davide

Sean Hogan

unread,
Jan 10, 2011, 7:22:52 AM1/10/11
to mathj...@googlegroups.com, Davide P. Cervone
Thanks Davide. I assume we want this in v1.1, so I'll commit it tomorrow.
Unfortunately I can't check before or after iOS4.2.
I've created a distribution for this if anyone gets the chance to do
some testing. Try
http://www.mathjax.org/devel/mathjax/dpvc/iOS4.2/test/index.html
http://www.mathjax.org/devel/mathjax/dpvc/iOS4.2/test/index-images.html
http://www.mathjax.org/devel/mathjax/dpvc/iOS4.2/test/sample.html

Sean

On 10/01/11 9:14 AM, Davide P. Cervone wrote:
> Robert and Sean:
>
> Since iOS4.2 apparently supports web-based fonts without crashing
> Safari, I've modified the HTML-CSS output jax to use them for iOS4.2
> and above. (I no longer have a device running at less than that, so I
> can't test the earlier versions any longer.) It is in the "iOS4.2"
> branch of my fork of MathJax. I think it can be included in v1.1 if
> there aren't any objections. The only change is to check if the
> version is high enough (Safari 5.0.2 was new in iOS4.2, so that is
> what I use). It would be great to get away from the image fonts for
> iPhone and iPad. That means that the only use of image fonts at this
> point is with Firefox for local files when MathJax is in another
> directory from the page that loads it, and for older versions of
> browsers (FF before 3.5, Safari before 3.1, Opera before 10,

> iPhone/iPad before 4.2, Android before 2.2). I suspect that these are

Davide P. Cervone

unread,
Jan 10, 2011, 7:42:09 AM1/10/11
to mathj...@googlegroups.com
I tested it on the iPad and iTouch, with iOS4.2, but can't test before
that. Thanks for setting up the test site.

Davide

Reply all
Reply to author
Forward
0 new messages