Font settings are not applied to characters from the Mathematical Alphanumeric Symbols Unicode block (outside of MathML)
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
Tracking  Status  

firefox81    fixed 
People
(Reporter: vincentmoz, Assigned: jfkthame)
References
Details
Attachments
(2 files, 1 obsolete file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Steps to reproduce:
 In the font preferences for Mathematics, choose Asana Math.
 Open a web page with characters from the Mathematical Alphanumeric Symbols Unicode block (range U+1D400–U+1D7FF), such as the attached file (mathfont.html), which has 2 italic characters 𝑚𝑥.
Actual results:
If fontfamily is not specified, one gets some default font, but not the one chosen for Mathematics.
Expected results:
The font chosen for Mathematics should be applied on the characters from the Mathematical Alphanumeric Symbols Unicode block.
Reporter  
Comment 1•5 months ago


Explicitly set the encoding to UTF8.
Reporter  
Comment 2•5 months ago


Comment on attachment 9170216 [details]
mathfont.html
Corrected the MIME type.
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Assignee  
Comment 4•5 months ago


I believe the font pref for Mathematics is used for MathML rendering, but is not (currently, at least) used for font fallback in general HTML content. (It would be used if the HTML element had the attribute lang="xmath"
, but not otherwise.)
Probably it would make sense to use this setting also (during font fallback) for characters from the Unicode mathematicalsymbols blocks, rather than the generic "Other Writing Systems" preference which is what they'd currently try.
Assignee  
Comment 5•5 months ago


Updated•5 months ago

Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fe1f580e78c1 Use the Mathematics font preference during fallback for characters from Unicode mathsymbols blocks. r=fredw
Comment 7•5 months ago


bugherder 
Description
•