Closed Bug 1659313 Opened 5 months ago Closed 5 months ago

Font settings are not applied to characters from the Mathematical Alphanumeric Symbols Unicode block (outside of MathML)

Categories

(Core :: Layout: Text and Fonts, defect)

79 Branch
defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: vincent-moz, Assigned: jfkthame)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached file math-font.html (obsolete) —

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0

Steps to reproduce:

  1. In the font preferences for Mathematics, choose Asana Math.
  2. Open a web page with characters from the Mathematical Alphanumeric Symbols Unicode block (range U+1D400–U+1D7FF), such as the attached file (math-font.html), which has 2 italic characters 𝑚𝑥.

Actual results:

If font-family 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.

Attached file math-font.html

Explicitly set the encoding to UTF-8.

Attachment #9170215 - Attachment is obsolete: true

Comment on attachment 9170216 [details]
math-font.html

Corrected the MIME type.

Attachment #9170216 - Attachment mime type: text/html → application/xhtml+xml

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

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="x-math", but not otherwise.)

Probably it would make sense to use this setting also (during font fallback) for characters from the Unicode mathematical-symbols blocks, rather than the generic "Other Writing Systems" preference which is what they'd currently try.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Font settings are not applied on the Mathematical Alphanumeric Symbols Unicode block → Font settings are not applied to characters from the Mathematical Alphanumeric Symbols Unicode block (outside of MathML)
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fe1f580e78c1
Use the Mathematics font preference during fallback for characters from Unicode math-symbols blocks. r=fredw
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Blocks: 1133318
You need to log in before you can comment on or make changes to this bug.