Closed Bug 118782 Opened 23 years ago Closed 15 years ago

ṉ has odd spacing

Categories

(Core :: MathML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ian, Unassigned)

Details

Attachments

(2 files)

The &#x1E49; character (lowercase latin n with underbar) seems to have an intrinsic wider size. STEPS TO REPRODUCE <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>c</mi> <mi>&#x1E49;</mi> <mi>c</mi> </mrow> </math> ACTUAL RESULTS c n c - EXPECTED RESULTS c n c - See attached testcase.
Looks like a missing glyph problem (in conjuction with one of the typical issues of weird fonts). Since there is no fonts with a glyph, it is transliterated from transliterate.properties as: # U+1E49 LATIN SMALL LETTER N WITH LINE BELOW entity.7753=n_ On Windows, I am seeing "cn_c", so what you see on Linux seems due to the fact that the glyph picked for underscore is different (but not specific to MathML).
It works fine if I use HTML.
Maybe the MathML glyph measuring code is measuring enough space for "n_" and when the two get renderered on top of each other it doesn't take that into account?
That might be the case. Perhaps the code is taking the delta that you see as the italic correction. There is a subtlety with respect to this, e.g., try: <math xmlns="&mathml;"> <mrow> <mi>f</mi> <mo>q</mo> <mi>f</mi> <mo>I</mo> </mrow> </math> vs. <html> <span><i>f</i> q <i>f</i> I</span> </html> There is a difference (Err, a significant difference for picky math author). But I am not sure if that's where the difference with "n_" arises. I haven't investigated yet. I will first need to grab a font with that glyph.
If you find one, please tell me about it... ;-)
QA Contact: ian → mathml
No bug for me, even when clearing font.mathfont-family in about:config. Tested on a linux trunk build.
Assignee: rbs → nobody
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: