tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: noto-emoji-ttf not working correctly



On Fri, Apr 08, 2022 at 07:54:52AM +0200, Thomas Klausner wrote:
> On Thu, Apr 07, 2022 at 10:16:39PM +0000, RVP wrote:
> > On Thu, 7 Apr 2022, Thomas Klausner wrote:
> > 
> > > M-x describe char says:
> > > 
> > >    ftcrhb:-GOOG-Noto Color Emoji-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x373)
> > > 
> > 
> > That looks like a bitmap font specifier. Does:
> > 
> > 	xterm -fd 'Noto Color Emoji:style=Regular'
> > 
> > followed by:
> > 
> > 	echo $'\U1F3A4 \U1F352'
> > 
> > produce the microphone and cherry glyph (in B&W)?
> 
> No.
> 
> > If it does, then the
> > font is OK. For a colour test, put the hex into an .html file and open in
> > firefox.
> 
> In firefox, it does, but I don't know which font it is using for that
> - I have efont-unicode installed which supports many emoji symbols as
> well.

Sorry, in firefox it displays them in black & white.
 Thomas
 
> 
> I've found https://github.com/googlefonts/noto-emoji/issues/36 in the
> meantime which talks about bugs in cairo and fontconfig in 2015, but I
> guess those are all fixed. It also contains fonts.conf suggestions
> like this one:
> 
> <?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>
>         <test name="family"><string>sans-serif</string></test>
>         <edit name="family" mode="prepend" binding="weak">
>             <string>Noto Color Emoji</string>
>         </edit>
>     </match>
> 
>     <match>
>         <test name="family"><string>serif</string></test>
>         <edit name="family" mode="prepend" binding="weak">
>             <string>Noto Color Emoji</string>
>         </edit>
>     </match>
> 
>     <match>
>         <test name="family"><string>Apple Color Emoji</string></test>
>         <edit name="family" mode="prepend" binding="strong">
>             <string>Noto Color Emoji</string>
>         </edit>
>     </match>
> 
> </fontconfig>
> 
> and I can see with 'FC_DEBUG=1024 pango-view --annotate=1 --font="Noto
> Color Emoji" emoji-test.txt' that the files are read, but this doesn't
> fix anything, I see an empty glyph.
> 
> I tried twemoji-color-font-ttf as well. I get black'n'white emojis
> with that font, but nothing in color, despite the name.
>  Thomas


Home | Main Index | Thread Index | Old Index