Bug 67604 - MathML: Issues with italic STIX fonts on Lion
Summary: MathML: Issues with italic STIX fonts on Lion
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: mathjax mathml-in-mathjax
  Show dependency treegraph
 
Reported: 2011-09-05 08:24 PDT by François Sausset
Modified: 2012-05-09 14:52 PDT (History)
6 users (show)

See Also:


Attachments
test file (455 bytes, application/xhtml+xml)
2011-09-05 08:24 PDT, François Sausset
no flags Details
Rendering of the test (10.43 KB, image/png)
2011-09-05 08:26 PDT, François Sausset
no flags Details
non-MathML STIX (7.19 KB, image/png)
2012-05-04 08:09 PDT, Jacky Jiang
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Sausset 2011-09-05 08:24:16 PDT
Created attachment 106338 [details]
test file

In Mac OS X 10.7, STIX fonts used to render MathML in Webkit are installed by default.
However there seem to be a problem with the italic variant. Indeed regular glyphs are rendered as italic ones and italic glyphs are rendered as "double italic" ones for mathml content in Lion.
I added a test file with the rendering on my machine.
Comment 1 François Sausset 2011-09-05 08:26:06 PDT
Created attachment 106339 [details]
Rendering of the test
Comment 2 Alexey Proskuryakov 2011-09-05 13:54:05 PDT
<rdar://problem/9946779>

Dan, is this INVALID due to being an issue outside WebKit? Or did it get fixed as part of bug 67444? I don't have Lion here to test a nightly build.
Comment 3 mitz 2011-09-05 16:07:11 PDT
This was not addressed by the fix for bug 67444. Let’s keep this bug open to track a possible workaround in WebKit.
Comment 4 François Sausset 2011-09-07 05:10:51 PDT
(In reply to comment #3)
> This was not addressed by the fix for bug 67444. Let’s keep this bug open to track a possible workaround in WebKit.

I think I have a workaround in webkit by adding some lion-specific css rules in css/mathml.css.
However, I don't know how to add lion-specific rules in a css file. Is it possible? How?
If yes, I'll submit a patch soon.

I also suspect that the problem is outside webkit: I filled a bug report <rdar://problem/10013627> that is perhaps a duplicate of <rdar://problem/9946779> (but I can't access it).
Comment 5 François Sausset 2011-10-07 08:22:53 PDT
The problem has been solved by the release of the version 1.1.0-beta1 of the STIX fonts!
However, these fonts have to be installed on the Lion bots to practically solve the problem for the MathML related layout tests.
Hopefully, it will be done by the OS X 10.7.2 update?
Comment 6 Frédéric Wang (:fredw) 2012-04-16 02:08:55 PDT
What is the status of this bug? Are the new version of STIX fonts included in Webkit?

For your information, this bug also happened with MathJax:
https://github.com/mathjax/MathJax/issues/152

and a workaround was added: *-Regular and *-Italic are now used for the family names.

It seems that the actual bug is that Webkit tries to italize the *-Italic fonts whereas they are already of italic type.
Comment 7 Jacky Jiang 2012-05-04 08:09:41 PDT
Created attachment 140232 [details]
non-MathML STIX

Looks this not only happened to MathML, it also happened  to non-MathML contents. Attaching the screenshot of latest build Safari on Lion 10.7.3. Following are the contents:
<html>
<body>
	<div style="font-family: STIXGeneral;">
		NON-MATHML
	</div>
</body>
</html>
Comment 8 mitz 2012-05-09 14:52:30 PDT
This issue is addressed in OS X Lion Update 10.7.4.