View previous topic :: View next topic |
Author |
Message |
Punchcutter Guru
Joined: 11 Feb 2007 Posts: 354
|
Posted: Mon Jul 21, 2014 4:12 am Post subject: Emoji fonts? |
|
|
Hey all...... I am getting tired of seeing the generic Unicode "missing glyph" symbol on facebook every time one of my friends there uses emoji. I'm sure they're only going to get used more and more as time goes on. Are there no emoji font packages in portage? I don't find any on searching "emoji". Thanks. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Jul 21, 2014 12:30 pm Post subject: |
|
|
Punchcutter ...
I don't think its simply a question of a font ... this suggests changes to freetype2, cairo, etc, would be required. Also, from what I can gather this particular font is owned by Apple, and "derivatives" are "not permitted".
best ... khay |
|
Back to top |
|
|
Apheus Guru
Joined: 12 Jul 2008 Posts: 422
|
Posted: Mon Jul 21, 2014 3:09 pm Post subject: |
|
|
Firefox on windows shows way more glyphs on the emoji list page than on linux. The font on windows is "Segoe UI Symbol", while linux firefox says "Arial" (with my setup).
http://emojisymbols.com/emojilist.php
Edit: On my main gentoo installation, the site works. This is due to media-fonts/symbola. |
|
Back to top |
|
|
Punchcutter Guru
Joined: 11 Feb 2007 Posts: 354
|
Posted: Wed Jul 30, 2014 4:39 am Post subject: |
|
|
Thanks for the responses. I looked at the URL that Apheus posted..... and I have virtually all of them displayed! (only one missing that I can find on a quick, casual scroll-through). I'm kinda drawing a blank here, but maybe I never knew....... how do I find out what font Firefox is using to render a given page? I don't have symbola installed! |
|
Back to top |
|
|
Freeky Tux's lil' helper
Joined: 11 Mar 2011 Posts: 129 Location: Novosibirsk, Russia
|
|
Back to top |
|
|
Punchcutter Guru
Joined: 11 Feb 2007 Posts: 354
|
Posted: Wed Jul 30, 2014 8:16 am Post subject: |
|
|
Freeky, so... in other words, it means nothing to have all those glyphs display for me, because the site is sending its font to my browser, eh? I guess I need to install symbola or the font offered by that site. |
|
Back to top |
|
|
Apheus Guru
Joined: 12 Jul 2008 Posts: 422
|
Posted: Wed Jul 30, 2014 12:14 pm Post subject: |
|
|
Punchcutter wrote: | how do I find out what font Firefox is using to render a given page? |
Just to add that information: Press Ctrl+Shift+I to open the DOM inspector. In the smaller panel on the right, there are four tabs. One of them is "Fonts". When you activate it, firefox shows the used font(s) in the DOM element under the cursor in the web page. |
|
Back to top |
|
|
Punchcutter Guru
Joined: 11 Feb 2007 Posts: 354
|
Posted: Wed Jul 30, 2014 7:05 pm Post subject: |
|
|
Apheus wrote: | Just to add that information: Press Ctrl+Shift+I to open the DOM inspector.... |
Thanks Apheus. |
|
Back to top |
|
|
Freeky Tux's lil' helper
Joined: 11 Mar 2011 Posts: 129 Location: Novosibirsk, Russia
|
Posted: Thu Jul 31, 2014 1:52 am Post subject: |
|
|
Punchcutter wrote: | Freeky, so... in other words, it means nothing to have all those glyphs display for me, because the site is sending its font to my browser, eh? |
Yes, you're right.
Punchcutter wrote: | I guess I need to install symbola or the font offered by that site. |
I have no idea about symbola font.
Unfortunately, the Emoji Symbols Font can not be installed in the system without conversion to TTF or OTT that prohibited by the rules of using this font. For more information http://emojisymbols.com/beforeuse.php and http://emojisymbols.com/faq.php |
|
Back to top |
|
|
Apheus Guru
Joined: 12 Jul 2008 Posts: 422
|
Posted: Thu Jul 31, 2014 8:52 am Post subject: |
|
|
I just discovered that when I allow javascript for emojisymbols.com, firefox indeed uses the downloaded font "emojisymbols" instead of the installed symbola. The symbols look different, and all glyphs are supported. With symbola, there were still ~30 missing glyphs.
Your problem originally was on facebook.com, so check if facebook.com is allowed to execute javascript (if you use NoScript), and if you have in about:config:
Code: | gfx.downloadable_fonts.enabled=true |
|
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Aug 01, 2014 8:12 pm Post subject: |
|
|
media-fonts/unifont has a large amount of emoji glyphs now. It's an ugly bitmap font, but for normal text sizes it looks acceptable. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
|
Back to top |
|
|
jorgicio n00b
Joined: 17 Oct 2014 Posts: 47
|
Posted: Sat Jun 11, 2016 2:27 pm Post subject: I got the font |
|
|
I found a font called emojione-color-font. You can install it from my overlay.
Code: |
layman -a jorgicio
emerge emojione-color-font
|
Supports also from Twitter, and it's based in Unicode 9.0. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sat Jun 11, 2016 5:13 pm Post subject: |
|
|
Since it's been two years, I'll add media-fonts/symbola and media-fonts/noto to my recommendation above. Between them they cover pretty much all of Unicode. |
|
Back to top |
|
|
jhon987 Apprentice
Joined: 18 Nov 2013 Posts: 297
|
Posted: Tue Jun 14, 2016 3:24 pm Post subject: Re: I got the font |
|
|
jorgicio wrote: | I found a font called emojione-color-font. You can install it from my overlay.
Code: |
layman -a jorgicio
emerge emojione-color-font
|
Supports also from Twitter, and it's based in Unicode 9.0. |
Are there any plans to merge it into main portage tree? |
|
Back to top |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
|
Back to top |
|
|
papandreoos Apprentice
Joined: 17 Dec 2014 Posts: 163
|
Posted: Thu Nov 09, 2017 2:07 pm Post subject: |
|
|
i'm on gnome 3.24.
in gnome-characters all the fonts are black and white without color.
here is the application screenshot:
https://i.imgur.com/xCtKESs.png
also i think i miss some menus on the left with more emojis.
i installed as suggested here:
media-fonts/symbola
media-fonts/noto
media-fonts/quivira
media-fonts/unifont
my fontconfig list look like this:
Code: | Available fontconfig .conf files (* is enabled):
[1] 10-autohint.conf
[2] 10-hinting-full.conf
[3] 10-hinting-medium.conf
[4] 10-hinting-none.conf
[5] 10-hinting-slight.conf *
[6] 10-no-sub-pixel.conf
[7] 10-scale-bitmap-fonts.conf *
[8] 10-sub-pixel-bgr.conf
[9] 10-sub-pixel-rgb.conf
[10] 10-sub-pixel-vbgr.conf
[11] 10-sub-pixel-vrgb.conf
[12] 10-unhinted.conf
[13] 11-lcdfilter-default.conf
[14] 11-lcdfilter-legacy.conf
[15] 11-lcdfilter-light.conf
[16] 20-unhint-small-dejavu-sans.conf
[17] 20-unhint-small-dejavu-sans-mono.conf
[18] 20-unhint-small-dejavu-serif.conf
[19] 20-unhint-small-vera.conf *
[20] 25-unhint-nonlatin.conf
[21] 30-metric-aliases.conf *
[22] 31-cantarell.conf
[23] 40-nonlatin.conf *
[24] 45-generic.conf *
[25] 45-latin.conf *
[26] 49-sansserif.conf *
[27] 50-user.conf *
[28] 51-local.conf *
[29] 57-dejavu-sans.conf *
[30] 57-dejavu-sans-mono.conf *
[31] 57-dejavu-serif.conf *
[32] 60-generic.conf *
[33] 60-latin.conf *
[34] 65-culmus.conf *
[35] 65-fonts-persian.conf *
[36] 65-khmer.conf
[37] 65-nonlatin.conf *
[38] 69-unifont.conf *
[39] 70-no-bitmaps.conf
[40] 70-yes-bitmaps.conf
[41] 80-delicious.conf *
[42] 90-roboto-regular.conf
[43] 90-synthetic.conf *
[44] 99pdftoopvp.conf |
what can i do to get more menus of emojis as can be seen here (and with colors of course):
https://whatsup.org.il/meir/gnome-characters.png
it's also gnome-characters (but the guy is using a different os (not gentoo))
.
thanks. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Thu Nov 09, 2017 4:25 pm Post subject: |
|
|
When I found out that colors are now in fonts, I 🤦facepalmed... I can't believe "⛱" is a "standardized" "character"... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Nov 10, 2017 5:43 am Post subject: |
|
|
Noto has NotoColorEmoji.ttf but no fontconfig files (despite being packaged for several years); you'd need to add something manually for it. This might work:
Code: | <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<accept><family>Noto Color Emoji</family></accept>
<accept><family>Noto Sans Symbols</family></accept>
</alias>
<alias>
<family>sans-serif</family>
<accept><family>Noto Color Emoji</family></accept>
<accept><family>Noto Sans Symbols</family></accept>
</alias>
</fontconfig> |
|
|
Back to top |
|
|
papandreoos Apprentice
Joined: 17 Dec 2014 Posts: 163
|
|
Back to top |
|
|
papandreoos Apprentice
Joined: 17 Dec 2014 Posts: 163
|
|
Back to top |
|
|
papandreoos Apprentice
Joined: 17 Dec 2014 Posts: 163
|
Posted: Sun Nov 12, 2017 12:34 pm Post subject: |
|
|
i installed cairo 1.15.8 using pg_overlay
https://gpo.zugaina.org/Overlays/pg_overlay
then the emoticons in the emoticons menu (in gnome characters) was made colorful:
https://preview.ibb.co/nPzrvw/image.png
(without the need of local.conf settings).
but it is just one change.
everything else is black and white and i miss a lot of emoticons in gnome characters as before.
another strange thing is that the emoticons for example here:
http://getemoji.com/
are looking different if look there in firefox or chrome.
in firefox they are rounded.
in chrome they not rounded but more like "Trapezoid"
it seems that chrome and firefox have a different implementations of the emojis. |
|
Back to top |
|
|
dantrell l33t
Joined: 01 Jun 2007 Posts: 915 Location: Earth
|
Posted: Wed Nov 15, 2017 9:47 am Post subject: |
|
|
Punchcutter wrote: | I'm sure they're only going to get used more and more as time goes on. |
This turned out to be the case and after seeing them used in URLs, I finally decided to do something about it. What a rabbit hole I went down.
Apheus wrote: | I just discovered that when I allow javascript for emojisymbols.com, firefox indeed uses the downloaded font "emojisymbols" instead of the installed symbola. |
This is correct.
If you use any kind of JavaScript blacklist, you need to allow @font-face though. This ensures that if a @font-face is provided, the defined fonts work as defined instead of cascading through fontconfig.
Ant P. wrote: | Since it's been two years, I'll add media-fonts/symbola and media-fonts/noto to my recommendation above. Between them they cover pretty much all of Unicode. |
You can install as many fonts as you want but I will emphasize that what they will do is provide glyph coverage on the off chance that they are selected automatically if they weren't selected manually (i.e. there is a good chance they will do nothing).
If a @font-face isn't provided, the system flips a coin (I'm exaggerating) by cascading through fontconfig.
Ant P. wrote: | Noto has NotoColorEmoji.ttf but no fontconfig files (despite being packaged for several years); you'd need to add something manually for it. |
A proper fontconfig file is indeed the key. The problem is that said fontconfig file probably won't be applicable for every user.
Ant P. wrote: | Code: | <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<accept><family>Noto Color Emoji</family></accept>
<accept><family>Noto Sans Symbols</family></accept>
</alias>
<alias>
<family>sans-serif</family>
<accept><family>Noto Color Emoji</family></accept>
<accept><family>Noto Sans Symbols</family></accept>
</alias>
</fontconfig> |
|
If Noto is your poison, this will work in a pinch but only for Chromium based browsers. It does not work for Firefox but at least it won't clash with it.
You can make a more complex fontconfig file to force Firefox to use those fonts but it will display nothing instead of falling back to sane defaults. The reason why is because there are multiple formats for color fonts. Noto was designed for Chromium based browsers and thus uses Google's Android format, CBLC/CBDT. Firefox, on the other hand, uses SVGinOT.
Therefore, if you find a font is working on a Chromium based browser but not with Firefox, you need to find a SVGinOT variant of the font (e.g. in the case of Noto Color Emoji, you need to use Noto Color Emoji SVGinOT) or better yet, something with native support. What native support you ask? Firefox comes bundled with a little known font called EmojiOne Mozilla. The problem is that it practically never gets used.
So basically to get color emojis, your fontconfig file should force Chromium based browsers to use Noto Color Emoji (or whatever else you prefer) and force Firefox to use EmojiOne Mozilla.
If it works, this demo page will have near-complete coverage (note, when testing, you only need to restart the application utilizing the font and not the entire computer).
Now making this widespread (e.g. color emojis in terminals and text editors)? That's another story.
papandreoos wrote: | i installed cairo 1.15.8 using pg_overlay [...] then the emoticons in the emoticons menu (in gnome characters) was made colorful |
This is correct.
To retrieve colored emoji glyphs on cairo-dependent packages, you need at least Cairo 1.15.8.
papandreoos wrote: | but it is just one change.
everything else is black and white and i miss a lot of emoticons in gnome characters as before. |
I'm pretty sure GNOME Characters uses Noto Color Emoji.
If you have Noto installed then another font is probably being selected after cascading through fontconfig.
papandreoos wrote: | it seems that chrome and firefox have a different implementations of the emojis. |
This is correct.
It will also be different on Android (Android Emoji) Mac (Apple Color Emoji) and Windows (Segoe UI Emoji). _________________ Dantrell B. |
|
Back to top |
|
|
havana8 n00b
Joined: 17 Nov 2017 Posts: 16
|
Posted: Fri Dec 01, 2017 3:50 pm Post subject: |
|
|
Is the solution the same for the square icons that appear? |
|
Back to top |
|
|
dantrell l33t
Joined: 01 Jun 2007 Posts: 915 Location: Earth
|
Posted: Thu Dec 28, 2017 1:28 am Post subject: |
|
|
havana8 wrote: | Is the solution the same for the square icons that appear? |
Those are missing glyphs.
If you have reason to believe that they represent color emojis then the solution discussed here will work.
dantrell wrote: | Now making this widespread (e.g. color emojis in terminals and text editors)? That's another story. |
Update (2018-11-29): I made it widespread.
I did it by disabling every available fontconfig .conf then setting global font defaults while making sure Noto Color Emoji was the first match for every font type family.
There was some program exclusion/inclusion involved as well since not everything liked my changes and I also had to make it compatible with infinality.
There was also the nice surprise of some normal symbols being unnecessarily emojified. _________________ Dantrell B. |
|
Back to top |
|
|
|