Closed Bug 311635 Opened 20 years ago Closed 17 years ago

Wrong MathML display on OS/2

Categories

(Core :: MathML, defect)

x86
OS/2
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mozilla, Assigned: rbs)

References

()

Details

Attachments

(4 files)

Even when all relevant fonts are installed and the warning message about missing fonts does not appear any more, MathML does not display correctly on OS/2. This was recently discussed widely in the netscape.public.mozilla.os2 newsgroup. I will shortly attach a few examples.
This shows one specific problem. All needed fonts are installed, but characters between at least the <mo></mo> tags seem to be taken from the wrong font.
Without any of the math fonts installed (no TeX fonts, no Math*, no Symbol) the page looks much nicer. It seems that especially the Symbol font takes precedence over the normal (serif?) font whenever it is present, and is then used to display most of the MathML.
OK, that part of the problem seems to be somewhat cross-platform, the Symbol font seems to be problematic on Windows and Linux (bug 233114) and MacOS (bug 161137) at least. So let me morph this into a more general OS/2 MathML bug, as I see at least two more problems: 1. This can be seen in attachment 198909 [details]: the "+" and "=" signs are displayed as superscripts instead of on the same line. I would appreciate any hints where to search for this (OS/2 gfx font code, or MathML code?). The same problem is apparent on <http://www.w3.org/Math/testsuite/testsuite/Presentation/TokenElements/mo/mo3.xml>. 2. OS/2 registers the TeX fonts with lower case font names (cmex10, cmsy10, etc.) while it seems that Mozilla expects the font names to be upper case. What would be the correct way to work around this problem? Should a line get added to all.js (for OS/2 only) giving the lower case names?
Summary: Various characters in MathML display strangely on OS/2 → Wrong MathML display on OS/2
For question 2, you could probably add additional font mapping here: http://lxr.mozilla.org/seamonkey/source/gfx/src/os2/nsFontMetricsOS2.cpp#916
Hmm, I did the changes you pointed me to but it doesn't seem to help. I still get the message that the font with capital letters are not installed.
I wrote some code that has device context send the CheckFontExistence call to fontmetrics. We think this is the right thing to do. This makes the dialog only display "Symbol" Of course as pointed out, the page looks better WITHOUT the math fonts installed.
Actually, the font that causes the bad display is cmsy10 - if that font is not installed, things look OK. So we need to figure out why cmsy10 is getting used (I do NOT have Symbol installed)
(In reply to comment #7) > Actually, the font that causes the bad display is cmsy10 - if that font is not > installed, things look OK. So we need to figure out why cmsy10 is getting used > (I do NOT have Symbol installed) > Take a look at https://bugzilla.mozilla.org/show_bug.cgi?id=161137. It appears that a similar problem occurred on the Mac.
I don't think we will ever get this fixed on the 1.8 branch, so I'll mark this WONTFIX. Since we investigated this problem in the OS/2 specific graphics/font code, MathML has been completely overhauled on trunk to work with the cross-platform graphics cairo-based code. It actually works as nicely for me on OS/2 as it does on Linux after a quick look at some test pages, so one could even say this matter has fixed itself...
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: