Bug 156843

Summary: Make math fonts configurable
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: MathMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Enhancement CC: darin
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Frédéric Wang (:fredw) 2016-04-21 03:23:11 PDT
Currently, this can be done with CSS in author's web page or user's custom stylesheet etc

I'm not even sure a built-in mechanism exists for text fonts but maybe we want that for math fonts.

See http://trac.webkit.org/wiki/MathML/Fonts#CustomizingMathFont

Note that font-family in Gecko is reset to serif and the actual selection of the default math font and fallback are listed in font.name.serif.x-math and font.name-list.serif.x-math configuration options. These options are accessible from the font preference menu of Firefox.

https://dxr.mozilla.org/mozilla-central/source/modules/libpref/init/all.js

See also https://addons.mozilla.org/en-US/firefox/addon/mathml-font-settings/ for an example of add-on allowing font customization.
Comment 1 Darin Adler 2016-04-21 09:04:25 PDT
(In reply to comment #0)
> Currently, this can be done with CSS in author's web page or user's custom
> stylesheet etc

Exactly. We don’t need a new mechanism for this unless we have some idea about how to do it better.