Closed Bug 713766 Opened 13 years ago Closed 10 years ago

The middle part of the MathML right extended square bracket is displaced by a pixel to the left.

Categories

(Core :: MathML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
mozilla31

People

(Reporter: paulmasson, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Build ID: 20111220165912

Steps to reproduce:

Created MathML formulas of various heights enclosed in left and right square brackets


Actual results:

Any time the right bracket in MathML is extended by insertion of a middle section between the top and bottom angles, the middle part is displaced by a pixel to the left, leading to a jagged bracket


Expected results:

The middle section should align with the vertical parts of the top and bottom angles
Component: General → Untriaged
QA Contact: general → untriaged
Please provide a public URL or reduced test case that exhibits this issue.

Can you attach a screenshot showing the issue?
Test page created at http://obscureapps.com/test/MathMLTest.htm

Sample image at http://obscureapps.com/test/MathMLTest.jpg showing rendering on my machine
Able to see the defect on Mozilla/5.0 (Windows NT 5.1; rv:12.0a1) Gecko/20111228 Firefox/12.0a1 ID:20111228031049 - amplified if I zoom in all the way
Component: Untriaged → MathML
Product: Firefox → Core
QA Contact: untriaged → mathml
Version: 9 Branch → Trunk
Do you have STIX 1.0 fonts installed?
I do not, but I don't see why that should be necessary in this case. Square brackets have long been part of ASCII, and the left extended bracket renders just fine.
Glyphs from different fonts may be used for the parts of stretchy symbols and that can explain why they are not joined correctly.
I would have expected Monotype's Symbol font to be used for all parts of a tall ] on MS XP.  That suggests either a defect in that font or in our placement of glyphs.

pm, do you know whether this is rendering worse than earlier versions of Firefox?
Karl, I have only recently switched from IE to Firefox, so I cannot comment on earlier versions.

Frédéric, the problem does not appear with the STIX fonts installed, as you suspected. Unfortunately, the STIX fonts render quite faintly with Windows XP ClearType, and are not legible enough to use.
You may want to try the Asana font instead.
See http://www.mozilla.org/projects/mathml/demo/texvsmml.xhtml

We plan to continue to improve font support.
See https://wiki.mozilla.org/MathML:Fonts
Whiteboard: [closeme 2012-03-27]
Resolved per whiteboard
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2012-03-27]
This issue has not been fixed in Firefox 13 on Windows XP.
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Depends on: 947654
The stretchy code has changed a lot in Firefox 31, could you try with a https://www.mozilla.org/en-US/firefox/channel/#aurora build and see if the alignment problem still persists?

If comment 6 is the issue, then bug 1005657 might help here.

(Note: on Windows 7 or later, Cambria Math will be usable in Firefox 31 so that might solve the problem too. It's not installed on Windows XP, though)
Flags: needinfo?(pm.iphone)
Problem solved. Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago10 years ago
Resolution: --- → WORKSFORME
(In reply to pm.iphone from comment #13)
> Problem solved. Thanks!

OK, great. Thanks for testing.
Target Milestone: --- → mozilla31
Flags: needinfo?(pm.iphone)
You need to log in before you can comment on or make changes to this bug.