summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-09 15:43:04 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-09 15:43:04 +0200
commit149b09027c3948bcea24a082615ac63e90d53ddb (patch)
treeb5c39681d39835d9d61fd1574b6b68e8b39ea85c
parent84c479afa375c7cb6cd38dbaf0547636046b8cb5 (diff)
downloadUXP-149b09027c3948bcea24a082615ac63e90d53ddb.tar
UXP-149b09027c3948bcea24a082615ac63e90d53ddb.tar.gz
UXP-149b09027c3948bcea24a082615ac63e90d53ddb.tar.lz
UXP-149b09027c3948bcea24a082615ac63e90d53ddb.tar.xz
UXP-149b09027c3948bcea24a082615ac63e90d53ddb.zip
Set font.name-list.emoji for some platforms.
- Twemoji Mozilla for Windows. Can be prefixed with Segoe UI emoji for native Win8+ emoji, but reduces uniformity. - Apple Color Emoji for OSX - Twemoji Mozilla for GTK (Linux). fontconfig doesn't support emoji as family name. - Noto Color Emoji for Android
-rw-r--r--modules/libpref/init/all.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index 88a9af2da..6506d4bce 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -3171,6 +3171,10 @@ pref("ui.mouse.radius.inputSource.touchOnly", true);
#ifdef XP_WIN
+// Be as uniform as possible, use Twemoji everywhere.
+// Optional: prefix with `Segoe UI Emoji` to use Win8+ Segoe UI font emoji where available.
+pref("font.name-list.emoji", "Twemoji Mozilla");
+
pref("font.name.serif.ar", "Times New Roman");
pref("font.name.sans-serif.ar", "Segoe UI");
pref("font.name-list.sans-serif.ar", "Segoe UI, Tahoma, Arial");
@@ -3596,6 +3600,8 @@ pref("ui.osk.debug.keyboardDisplayReason", "");
pref("browser.drag_out_of_frame_style", 1);
pref("ui.key.saveLink.shift", false); // true = shift, false = meta
+pref("font.name-list.emoji", "Apple Color Emoji");
+
// 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
@@ -4018,6 +4024,10 @@ pref("print.print_extra_margin", 0); // twips
// font names
+// fontconfig doesn't support emoji yet
+// https://lists.freedesktop.org/archives/fontconfig/2016-October/005842.html
+pref("font.name-list.emoji", "Twemoji Mozilla");
+
pref("font.name.serif.ar", "serif");
pref("font.name.sans-serif.ar", "sans-serif");
pref("font.name.monospace.ar", "monospace");
@@ -4262,6 +4272,8 @@ pref("font.name.monospace.x-math", "Fira Mono");
#elif defined(ANDROID)
// We use the bundled fonts for Firefox for Android
+pref("font.name-list.emoji", "Noto Color Emoji");
+
// ar
pref("font.name.serif.el", "Droid Serif"); // not Charis SIL Compact, only has a few Greek chars