I'm using Arch Linux and one thing I just can't seem to get right is the Unicode fonts.
I'll give you an example of what goes wrong.
Here's a screenshot of gucharmap:
The selected glyph in the top left renders as it should, but then the Text to copy renders as a completely different icon, from another font presumably.
Then here's a screenshot of urxvt showing the same icon:
As you can see, it just renders some boxes. This is the most common behavior across most of my applications.
Also here is the output of fc-list
(it's in a paste-bin because it was too long), maybe it's useful, I don't know.
So what I think is happening is that I have another font installed of which the Unicode area overlaps with the one from Material icons. My question is then, how do I fix this? And is this even the thing that's going wrong?
UPDATE
changing my fontconfig to:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer><family>Noto Sans</family></prefer>
<default><family>Material Icons</family></default>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Noto Sans</family></prefer>
<default><family>Material Icons</family></default>
</alias>
<alias>
<family>sans</family>
<prefer><family>Linux Libertine</family></prefer>
<default><family>Material Icons</family></default>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Hack</family></prefer>
<default><family>Material Icons</family></default>
</alias>
</fontconfig
has fixed the issue of gucharmap glyphs not matching the Text to copy however, the issue of applications not rendering the glyphs still remains.
This makes me think the issue is with the applications not using the correct font for rendering the glyphs. I assumed setting the default tags for the aliases would make it so they would be used as a fallback if the preferred font does not contain the unicode character. I feel like this is wrong though, but the docs don't really make it clear.
UPDATE
Someone asked for the output of locale
, so here it is:
LANG=en_GB.utf8
LC_CTYPE="en_GB.utf8"
LC_NUMERIC="en_GB.utf8"
LC_TIME="en_GB.utf8"
LC_COLLATE="en_GB.utf8"
LC_MONETARY="en_GB.utf8"
LC_MESSAGES="en_GB.utf8"
LC_PAPER="en_GB.utf8"
LC_NAME="en_GB.utf8"
LC_ADDRESS="en_GB.utf8"
LC_TELEPHONE="en_GB.utf8"
LC_MEASUREMENT="en_GB.utf8"
LC_IDENTIFICATION="en_GB.utf8"
LC_ALL=
sudo pacman -S noto-fonts noto-fonts-extra noto-fonts-emoji
. Does that help? Then there's also the question of whether the terminal emulator you are using supports such fonts and whether the font you are using in the emulator has the relevant glyphs. Does it work better if you copy/paste into libreoffice or gedit or anything other than a terminal?locale
?