diff options
author | Alexander Popov <alex.wayfer@gmail.com> | 2018-05-18 15:20:23 +0300 |
---|---|---|
committer | Alexander Popov <alex.wayfer@gmail.com> | 2018-08-13 21:11:40 +0300 |
commit | f73a21e35710eef24b47307631f1996b35fdf9d3 (patch) | |
tree | c1ab5bc12ffc84b5bca9db8991d593316732eb11 /app/assets/javascripts/emoji | |
parent | 891cb10fc9ca4ee915eecdefb2c903705fefaa64 (diff) |
Add Noto Color Emoji font support
This is a font from [Google](https://www.google.com/get/noto/).
Arch Linux [has a recommendation of it](https://wiki.archlinux.org/index.php/fonts#Emoji_and_symbols).
Add info about this into `docs/user/markdown.md#emoji`
Diffstat (limited to 'app/assets/javascripts/emoji')
-rw-r--r-- | app/assets/javascripts/emoji/support/unicode_support_map.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/emoji/support/unicode_support_map.js b/app/assets/javascripts/emoji/support/unicode_support_map.js index 8c1861c56db..651169391fe 100644 --- a/app/assets/javascripts/emoji/support/unicode_support_map.js +++ b/app/assets/javascripts/emoji/support/unicode_support_map.js @@ -86,7 +86,7 @@ function generateUnicodeSupportMap(testMap) { canvas.height = numTestEntries * fontSize; ctx.fillStyle = '#000000'; ctx.textBaseline = 'middle'; - ctx.font = `${fontSize}px "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`; + ctx.font = `${fontSize}px "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`; // Write each emoji to the canvas vertically let writeIndex = 0; testMapKeys.forEach(testKey => { |