Open Bug 1168065 Opened 9 years ago Updated 2 years ago

Different fonts may be used for a same largeop/stretchy operator for different sizes

Categories

(Core :: MathML, defect)

defect

Tracking

()

Tracking Status
firefox41 --- affected

People

(Reporter: fredw, Unassigned)

Details

Attachments

(2 files)

This issue was raised during discussion with the author of GNU Free Fonts. If you open

http://fred-wang.github.io/MathFonts/GNUFreeSerif/

and scroll down to, for example, the sigma summation then you see that other math fonts than GNU Free fonts may used (Latin Modern and Asana), while the document only specifies font-family = GNU Free font.

I think it's fine to use glyphs from the fallback fonts when the document font is not able to stretch the desired operator, just like what happens with "normal" characters missing from one font. However, when the document font does have something to stretch a given operator we should probably try and use the best size from that font and not a better size from another font.

I believe this is related to what was discussed in bug 584332 comment 10. I have not read the code again, but I suspect this is not restricted to large operators, though.

Besides providing more consistent rendering of a document with respect to what the author requests, this could help for bug 1009582 since we would stop at the first MATH font that has an entry for the desired operator, instead of trying all the fonts in the list.
This is a screenshot of the same document, with the preferences options for fallback fonts cleared in about:config. Only the sizes provided by GNU Free Fonts are used.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: