Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emoji fonts?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 354

PostPosted: Mon Jul 21, 2014 4:12 am    Post subject: Emoji fonts? Reply with quote

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. :roll: Are there no emoji font packages in portage? I don't find any on searching "emoji". Thanks.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Mon Jul 21, 2014 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Apheus
Guru
Guru


Joined: 12 Jul 2008
Posts: 422

PostPosted: Mon Jul 21, 2014 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 354

PostPosted: Wed Jul 30, 2014 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Freeky
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2011
Posts: 129
Location: Novosibirsk, Russia

PostPosted: Wed Jul 30, 2014 7:38 am    Post subject: Reply with quote

After looking at that css style http://emojisymbols.comcss/style.css I found that this site uses this woff font: http://emojisymbols.com/font/EmojiSymbols-Regular.woff
Back to top
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 354

PostPosted: Wed Jul 30, 2014 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Apheus
Guru
Guru


Joined: 12 Jul 2008
Posts: 422

PostPosted: Wed Jul 30, 2014 12:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 354

PostPosted: Wed Jul 30, 2014 7:05 pm    Post subject: Reply with quote

Apheus wrote:
Just to add that information: Press Ctrl+Shift+I to open the DOM inspector....

Thanks Apheus.
Back to top
View user's profile Send private message
Freeky
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2011
Posts: 129
Location: Novosibirsk, Russia

PostPosted: Thu Jul 31, 2014 1:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Apheus
Guru
Guru


Joined: 12 Jul 2008
Posts: 422

PostPosted: Thu Jul 31, 2014 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Aug 01, 2014 8:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Sat Aug 02, 2014 12:00 am    Post subject: Reply with quote

You can look at the glyph coverage of the desired Unicode block of various fonts. Example for emoticons and pictographs:
http://www.fileformat.info/info/unicode/block/emoticons/fontsupport.htm
http://www.fileformat.info/info/unicode/block/miscellaneous_symbols_and_pictographs/fontsupport.htm

Most of these fonts are available in portage.

EDIT: with dejavu, quivira and symbola you will have almost all of the symbols listed on emojisymbols.com - except for U+303D which is some obscure CJK character and U+E50A which is in the private use area.
Back to top
View user's profile Send private message
jorgicio
n00b
n00b


Joined: 17 Oct 2014
Posts: 47

PostPosted: Sat Jun 11, 2016 2:27 pm    Post subject: I got the font Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Jun 11, 2016 5:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
jhon987
Apprentice
Apprentice


Joined: 18 Nov 2013
Posts: 297

PostPosted: Tue Jun 14, 2016 3:24 pm    Post subject: Re: I got the font Reply with quote

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
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 535

PostPosted: Thu Jun 16, 2016 11:05 am    Post subject: Reply with quote

I found that Noto Color Emoji rendering is very broken, including gedit and Firefox. Glyphs are way, way too large and the wrong color.

https://bug1106250.bmoattachments.org/attachment.cgi?id=8530510
Back to top
View user's profile Send private message
papandreoos
Apprentice
Apprentice


Joined: 17 Dec 2014
Posts: 163

PostPosted: Thu Nov 09, 2017 2:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Thu Nov 09, 2017 4:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Nov 10, 2017 5:43 am    Post subject: Reply with quote

papandreoos wrote:
...

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
View user's profile Send private message
papandreoos
Apprentice
Apprentice


Joined: 17 Dec 2014
Posts: 163

PostPosted: Fri Nov 10, 2017 12:26 pm    Post subject: Reply with quote

thanks, but there are no changes after i apply this.
i copy your code to a file:
Code:
/etc/fonts/local.conf

as suggested here:
https://wiki.gentoo.org/wiki/Fontconfig#Custom_system_wide_configuration
51-local.conf is enabled already.
i also restart my computer.
am i missing something?
Back to top
View user's profile Send private message
papandreoos
Apprentice
Apprentice


Joined: 17 Dec 2014
Posts: 163

PostPosted: Sat Nov 11, 2017 5:25 pm    Post subject: Reply with quote

i found this:
https://github.com/googlei18n/noto-emoji/issues/36
(it closed now because it was solved).
here:
https://github.com/googlei18n/noto-emoji/issues/36#issuecomment-319210480
maybe i don't have the latest fontconfig/gnome?
{EDIT}:
i have the latest fontconfig.
Back to top
View user's profile Send private message
papandreoos
Apprentice
Apprentice


Joined: 17 Dec 2014
Posts: 163

PostPosted: Sun Nov 12, 2017 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Wed Nov 15, 2017 9:47 am    Post subject: Reply with quote

Punchcutter wrote:
I'm sure they're only going to get used more and more as time goes on. :roll:

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. :o

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. :x

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
View user's profile Send private message
havana8
n00b
n00b


Joined: 17 Nov 2017
Posts: 16

PostPosted: Fri Dec 01, 2017 3:50 pm    Post subject: Reply with quote

Is the solution the same for the square icons that appear?
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Thu Dec 28, 2017 1:28 am    Post subject: Reply with quote

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. :x

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. :roll:
_________________
Dantrell B.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum