Bug 1205570 - fix up font prefs for x-math lang group. r=heycam
authorJohn Daggett <jdaggett@mozilla.com>
Fri, 18 Sep 2015 13:48:45 +0900
changeset 295791 1ab076078dc357724b011db374d035e7a1563b21
parent 295790 e8bb18a02a560187ed66d852685ecf84b58d1378
child 295792 37c7812ce0e6d10c7e7182f12e752832835e1d67
child 295793 8f860449c1a96be345671ca3b7b92beff4fa7511
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1205570
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1205570 - fix up font prefs for x-math lang group. r=heycam
gfx/thebes/gfxFontPrefLangList.h
modules/libpref/init/all.js
--- a/gfx/thebes/gfxFontPrefLangList.h
+++ b/gfx/thebes/gfxFontPrefLangList.h
@@ -22,14 +22,15 @@ FONT_PREF_LANG(Armenian, "x-armn", x_arm
 FONT_PREF_LANG(Bengali, "x-beng", x_beng),
 FONT_PREF_LANG(Canadian, "x-cans", x_cans),
 FONT_PREF_LANG(Ethiopic, "x-ethi", x_ethi),
 FONT_PREF_LANG(Georgian, "x-geor", x_geor),
 FONT_PREF_LANG(Gujarati, "x-gujr", x_gujr),
 FONT_PREF_LANG(Gurmukhi, "x-guru", x_guru),
 FONT_PREF_LANG(Khmer, "x-khmr", x_khmr),
 FONT_PREF_LANG(Malayalam, "x-mlym", x_mlym),
+FONT_PREF_LANG(Mathematics, "x-math", x_math),
 FONT_PREF_LANG(Oriya, "x-orya", x_orya),
 FONT_PREF_LANG(Telugu, "x-telu", x_telu),
 FONT_PREF_LANG(Kannada, "x-knda", x_knda),
 FONT_PREF_LANG(Sinhala, "x-sinh", x_sinh),
 FONT_PREF_LANG(Tibetan, "x-tibt", x_tibt),
 FONT_PREF_LANG(Others, "x-unicode", Unicode)
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -2710,17 +2710,20 @@ pref("font.size.fixed.zh-HK", 16);
 
 pref("font.default.zh-TW", "sans-serif");
 pref("font.minimum-size.zh-TW", 0);
 pref("font.size.variable.zh-TW", 16);
 pref("font.size.fixed.zh-TW", 16);
 
 // mathml.css sets font-size to "inherit" and font-family to "serif" so only
 // font.name.*.x-math and font.minimum-size.x-math are really relevant.
+pref("font.default.x-math", "serif");
 pref("font.minimum-size.x-math", 0);
+pref("font.size.variable.x-math", 16);
+pref("font.size.fixed.x-math", 13);
 
 /*
  * A value greater than zero enables font size inflation for
  * pan-and-zoom UIs, so that the fonts in a block are at least the size
  * that, if a block's width is scaled to match the device's width, the
  * fonts in the block are big enough that at most the pref value ems of
  * text fit in *the width of the device*.
  *