David Carlisle writes:
> Testing MathML on an Android device (using text/html html5 style
> markup if it makes any difference). Can stretchy characters be
> made to work?
>
> Looking at
>
>
http://monet.nag.co.uk/~dpc/stfmml.html
>
> the mathml layout is understood but the stretchy () brackets come
> out as a vertical stack of missing glyph boxes.
Assuming this is due to a lack of font support on the device for
these characters, we probably need bug 663740 [4] to stop the
missing glyph boxes showing.
I haven't tested on mobile but I expect @font-face to work there.
It's a bit lucky that @font-face works with stretchy operators at
all in Gecko, because the implementation was well before
@font-face, but, with some caveats, things can be made to work.
The font family needs to be specified for the :-moz-math-stretchy
pseudoelement to override the browser CSS [1], and it needs to
include the family name used in the @font-face rule.
Only stretchy characters that can be built from Unicode characters
can be constructed using @font-face families. [2]
(The generic solution is [3], but that is a lot of work.)
STIX fonts have their characters divided into multiple font faces,
so it's tricky to use the STIX fonts in the official form.
I've attached an example using DejaVu Serif.
The local() references avoid the download on systems that already
have the font. I guess some format() values and other quirks
should be added to make things work properly across browsers.
[1]
http://hg.mozilla.org/mozilla-central/annotate/ea2f892d9439/layout/mathml/mathml.css#l410
[2]
http://mxr.mozilla.org/mozilla-central/source/layout/mathml/mathfontUnicode.properties
[3]
https://bugzilla.mozilla.org/show_bug.cgi?id=407059
[4]
https://bugzilla.mozilla.org/show_bug.cgi?id=663740