Bug 1032671 - Part 3. Set font.name-list.emoji for some platforms. r?jfkthame draft
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Sun, 12 Nov 2017 16:30:23 +0900
changeset 706548 941e679a68c83000f7a1787d8043fd347bcc976a
parent 706547 196e3c68dc3b810196c655cfd1e952f9ec2efa9a
child 706549 dc20923dd31b4a4522c243175c27238b2e3ae381
push id91829
push userbmo:m_kato@ga2.so-net.ne.jp
push dateSat, 02 Dec 2017 09:30:34 +0000
Bug 1032671 - Part 3. Set font.name-list.emoji for some platforms. r?jfkthame - Segoe UI Emoji for Windows 8+ - EmojiOne Mozilla for Windows 7 - Apple Color Emoji for OSX - EmojiOne Mozilla for GTK(Linux). fontconfig doesn't support emoji as family name. - Noto Color Emoji for Android MozReview-Commit-ID: GOkOFRujk93
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -3629,16 +3629,18 @@ pref("ui.mouse.radius.bottommm", 4);
 pref("ui.mouse.radius.visitedWeight", 120);
 // When true, the ui.mouse.radius.* prefs will only affect simulated mouse events generated by touch input.
 // When false, the prefs will be used for all mouse events.
 pref("ui.mouse.radius.inputSource.touchOnly", true);
 #ifdef XP_WIN
+pref("font.name-list.emoji", "Segoe UI Emoji, EmojiOne Mozilla");
 pref("font.name-list.serif.ar", "Times New Roman");
 pref("font.name-list.sans-serif.ar", "Segoe UI, Tahoma, Arial");
 pref("font.name-list.monospace.ar", "Courier New");
 pref("font.name-list.cursive.ar", "Comic Sans MS");
 pref("font.name-list.serif.el", "Times New Roman");
 pref("font.name-list.sans-serif.el", "Arial");
 pref("font.name-list.monospace.el", "Courier New");
@@ -3985,16 +3987,18 @@ pref("ui.osk.debug.keyboardDisplayReason
 pref("browser.drag_out_of_frame_style", 1);
 pref("ui.key.saveLink.shift", false); // true = shift, false = meta
 // default fonts (in UTF8 and using canonical names)
 // to determine canonical font names, use a debug build and
 // enable NSPR logging for module fontInfoLog:5
 // canonical names immediately follow '(fontinit) family:' in the log
+pref("font.name-list.emoji", "Apple Color Emoji");
 pref("font.name-list.serif.ar", "Al Bayan");
 pref("font.name-list.sans-serif.ar", "Geeza Pro");
 pref("font.name-list.monospace.ar", "Geeza Pro");
 pref("font.name-list.cursive.ar", "DecoType Naskh");
 pref("font.name-list.fantasy.ar", "KufiStandardGK");
 pref("font.name-list.serif.el", "Times, Times New Roman");
 pref("font.name-list.sans-serif.el", "Helvetica, Lucida Grande");
@@ -4276,16 +4280,20 @@ pref("helpers.global_mailcap_file", "/et
 pref("helpers.private_mime_types_file", "~/.mime.types");
 pref("helpers.private_mailcap_file", "~/.mailcap");
 pref("print.printer_list", ""); // list of printers, separated by spaces
 pref("print.print_reversed", false);
 pref("print.print_in_color", true);
 // font names
+// fontconfig doesn't support emoji yet
+// https://lists.freedesktop.org/archives/fontconfig/2016-October/005842.html
+pref("font.name-list.emoji", "EmojiOne Mozilla");
 pref("font.name-list.serif.ar", "serif");
 pref("font.name-list.sans-serif.ar", "sans-serif");
 pref("font.name-list.monospace.ar", "monospace");
 pref("font.size.fixed.ar", 12);
 pref("font.name-list.serif.el", "serif");
 pref("font.name-list.sans-serif.el", "sans-serif");
 pref("font.name-list.monospace.el", "monospace");
@@ -4451,16 +4459,18 @@ pref("font.default.x-western", "sans-ser
 pref("font.size.fixed.x-western", 12);
 #if defined(ANDROID)
 // We use the bundled fonts for Firefox for Android
+pref("font.name-list.emoji", "Noto Color Emoji");
 pref("font.name-list.serif.ar", "Noto Naskh Arabic, Noto Serif, Droid Serif");
 pref("font.name-list.sans-serif.ar", "Noto Naskh Arabic, Clear Sans, Roboto, Droid Sans");
 pref("font.name-list.monospace.ar", "Noto Naskh Arabic");
 pref("font.name-list.serif.el", "Droid Serif, Noto Serif"); // not Charis SIL Compact, only has a few Greek chars
 pref("font.name-list.sans-serif.el", "Clear Sans, Roboto, Droid Sans");
 pref("font.name-list.monospace.el", "Droid Sans Mono");