Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Google Chrome - some characters are not displaying right.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
papandreoos
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2014
Posts: 113

PostPosted: Tue Dec 05, 2017 11:54 am    Post subject: Google Chrome - some characters are not displaying right. Reply with quote

[EDIT]: i'm on gnome 3.24, but i didn't install all gnome packages.
i just chose the desktop gnome profile and then emerge to update my system.[/EDIT]

i'm on latest google chrome beta.
i also have archlinux and there, there is also the latest beta but everything works great.
the problem is in my gentoo exclusively
also, in firefox on my gentoo everything works great, so it's chrome problem alone (i think).
and here are two example.
one from tomshardware.
this is how i see the line in this page with google chrome:
https://i.imgur.com/OTxicab.png
there is empty space there.
if i mark the text with the mouse i can now see the text:
https://i.imgur.com/Bn8OFbI.png

here is a example from github:
without the mouse mark:
https://i.imgur.com/cw2GG3H.png
and now with the mark:
https://i.imgur.com/97BC9zP.png

i tried to remove chrome including the ~/.config chrome folder (and of course installed it again)
i also reset the browser from within (it has that option).
nothing solving this.
Back to top
View user's profile Send private message
papandreoos
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2014
Posts: 113

PostPosted: Mon Dec 25, 2017 7:54 pm    Post subject: Reply with quote

i found the problem and fixed it.
but now i have just black emojis, and no color one's.
for example here:
getemoji.com
all the emojis are black and white.
no color at all.

i remember that sometime ago i changed
Code:
/etc/fonts/local.conf

and add to it:
Code:
<?xml version="1.0" ?>                       
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">     
<fontconfig>                                 
  <match target="scan">                     
    <test name="family">                     
      <string>Noto Color Emoji</string>     
    </test>                                 
    <edit name="scalable" mode="assign">     
      <bool>true</bool>                     
    </edit>                                 
  </match>                                   
                                             
  <match target="pattern">                   
    <test name="prgname">                   
      <string>chrome</string>               
    </test>                                 
    <edit name="family" mode="prepend_first">
      <string>Noto Color Emoji</string>     
    </edit>                                 
  </match>                                   
</fontconfig>                               


and after restart i got color emojis in chrome but apparently messed those web pages (in my first post).
after i commented out this config the problem in those websites was gone but as i said, now i don't have color emojis in chrome.
(in firefox i have).

so how can i get color emojis in chrome?
i'm on latest gnome (3.24).
Back to top
View user's profile Send private message
dantrell
Guru
Guru


Joined: 01 Jun 2007
Posts: 430
Location: Earth

PostPosted: Tue Dec 26, 2017 10:37 am    Post subject: Reply with quote

papandreoos wrote:
so how can i get color emojis in chrome?

I wrote a detailed answer here a while ago:

dantrell wrote:
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.

_________________
Dantrell B.
Back to top
View user's profile Send private message
papandreoos
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2014
Posts: 113

PostPosted: Tue Dec 26, 2017 11:00 pm    Post subject: Reply with quote

you are great!

i just add to
Code:
/etc/fonts/local.conf

the code you quote from Ant P. (which didn't work for me before (i respond to the post you have linked to, in the past :-)) but now is. don't know why).
now no problems in github or tomshardware "missing" numbers as before and in your check-link almost all the emojis are colored now.

when the latest cairo will arrive to gentoo, could i remove this local.conf file and the emoji will be with colors out of the box?
Back to top
View user's profile Send private message
dantrell
Guru
Guru


Joined: 01 Jun 2007
Posts: 430
Location: Earth

PostPosted: Wed Dec 27, 2017 7:38 am    Post subject: Reply with quote

papandreoos wrote:
when the latest cairo will arrive to gentoo, could i remove this local.conf file and the emoji will be with colors out of the box?

Probably not as cairo and fontconfig are separate issues.
_________________
Dantrell B.
Back to top
View user's profile Send private message
papandreoos
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2014
Posts: 113

PostPosted: Wed Dec 27, 2017 11:22 am    Post subject: Reply with quote

thanks :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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