Re: Important information about the MathML fonts in Gecko 41

Frédéric WANG <[email protected]> Wed, 23 Sep 2015 23:16:41 +0200
Newsgroups gmane.comp.mozilla.devel.mathml,gmane.comp.web.mathematics
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============2768417182002896847==
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="6u7cu1DQSW4eCHfbHD1W41mFrt60XT15h"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--6u7cu1DQSW4eCHfbHD1W41mFrt60XT15h
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Thank you for the suggestion and reference Murray.

Actually, the "check whether there is a MATH table" workaround has
already been used since Gecko 31, because many OpenType fonts with a
MATH table didn't set the OS/2 USE_TYPO_METRICS flag properly. However,
it's not really good to keep such "hacks" so this will be removed
starting with Gecko 43 (to be released at the end of the year):
https://bugzilla.mozilla.org/show_bug.cgi?id=3D1170782

=46rom my testing of free math fonts and from what I heard (for non-free
math fonts), all the fonts with a MATH table but STIX sets the OS/2
USE_TYPO_METRICS flag. That's not much a problem for STIX since the
current release has bugs that prevent it to be usable for math layout
anyway and it's best to use the XITS fork. The STI Pub is aware of the
bugs and I'm confident that at least the  OS/2 USE_TYPO_METRICS bug will
be fixed in version 2.

On 09/23/2015 10:58 PM, Murray Sargent wrote:
> Fr=C3=A9d=C3=A9ric noted that the STIX font doesn't support the OS/2 US=
E_TYPO_METRICS flag.=20
>
> For math fonts, a workaround is to check if there's a MATH table and us=
e the typo metrics if so. Another work around is to compare the type asce=
nt/descent to the TEXTMETRIC ascent/descent and assume a high font is inv=
olved if the latter is significantly bigger (1.5 =C3=97 or more). Here's =
a post (http://blogs.msdn.com/b/murrays/archive/2009/12/01/high-fonts-and=
-math-fonts.aspx#10023606) on high fonts which explains a little more.
>
> Murray


--=20
Fr=C3=A9d=C3=A9ric Wang
maths-informatique-jeux.com/blog/frederic



--6u7cu1DQSW4eCHfbHD1W41mFrt60XT15h
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWAxbBAAoJEL8nnpULUzQO8fMQAKWUf48qnd4Lj89ZhBNjGk0h
ABDuCQBqjLQeijkrWEMY+9YU/+ttwhHL7O4mK/xjt5mFYJtgiqlbJuvaQDF3gV4k
tUpKB2sJ2QPViJKVirQdorro4DsnYzAvF1+jBj+F4/2owrbCHBvlvwkRg6ymU7Vo
MA40/oZsaXV/JLJq1vJsf5OuGSZNmFtrTfo8gUG99Eh2q4MzU2gEfTNBqGi2R4oK
16CgbM8M0opPWXRAXqprOjXyjg1XiZwsmt3KcXLMGP18D99f+dUzN8dCR7503YsG
Mc+8NUpuwOvl3+jF8IKmUwlyROGTJrzYjrBDRD9CI+a9fd1Z1MotNma9XLWU2DNf
QIkuAzPwMb0ijuKrr6mtxS4ON09wVNZ6g9dG4FUf4be6xHwMATe5S6O3RjjqMfcj
bEnndBV1x0pPb0ok0Mf++FtCVpsIDXLhxDIQDUmY2aaVM2j2kfEOHTl5ZvjsrEqq
EVylHAd4l57oPWMwZtubaLHD35xT5HEAyN1YGo3giuPvvNWJ0svjHJfa1cZ9zPxG
lSb0b+LDqzjLGo81ohga/y8IVZErh56OqUrhETAN+HtuoXuq96qLJAGmUJtQo0/q
hh/WKJ/ohDBckgNUzVP6dy35KNzAtjRAfx0eQmtalIiwZVs63ClXCEKYJwtp2kGq
FWWWODhUc2jG2dewDaui
=RF9M
-----END PGP SIGNATURE-----

--6u7cu1DQSW4eCHfbHD1W41mFrt60XT15h--

--===============2768417182002896847==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
dev-tech-mathml mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-mathml

--===============2768417182002896847==--