Sometimes
x11-fonts/font-awesome needs to be placed in the owner home dir (.fonts) to work correctly. Also after you install it, run fc-cache to build/rebuild font information cache.
I've created the directory
~/fonts and put a symlink to the fonts. But it didn't work and later I copied all otf files from awesome font in it
Font Awesome 5 Brands-Regular-400.otf
Font Awesome 5 Free-Regular-400.otf
Font Awesome 5 Free-Solid-900.otf
Then I executed fc-cache, but nothing happens. I rebooted the system to be sure, but still weird signs everywhere.
maxmoon look in
/var/log/Xorg.0.log, most of those 13 directories are likely already loaded by default. You only need to add the ones that aren't loaded by default to a
fonts.conf file.
Mine only has these:
Code:
Section "Files"
FontPath "/usr/local/share/fonts/terminus-font/"
FontPath "/usr/local/share/fonts/dejavu"
EndSection
/var/log/Xorg.0.log says:
Code:
[ 30.682] (**) FontPath set to:
/usr/local/share/fonts/dejavu/,
/usr/local/share/fonts/hack-font/,
/usr/local/share/fonts/GentiumBasic/,
/usr/local/share/fonts/GentiumPlus/,
/usr/local/share/fonts/Liberation/,
/usr/local/share/fonts/LinLibertineG/,
/usr/local/share/fonts/Carlito/,
/usr/local/share/fonts/Caladea/,
/usr/local/share/fonts/font-awesome/,
/usr/local/share/fonts/misc/,
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
/usr/local/share/fonts/Type1/,
/usr/local/share/fonts/100dpi/,
/usr/local/share/fonts/75dpi/
So what does it mean? Does it mean that Xorg loaded it correctly, but Firefox, urxvt and i3blocks still don't know what to do?
Notice from
/usr/local/etc/fonts/fonts.conf
Code:
DO NOT EDIT THIS FILE.
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
LOCAL CHANGES BELONG IN 'local.conf'.
<!-- the following element will be removed in the future -->
<dir>~/.fonts</dir>
Ok, I've put everything in
/etc/X11/xorg.conf. It looks like this now:
Code:
Section "Module"
Load "dbe"
Load "dri"
Load "dri2"
Load "extmod"
Load "record"
Load "freetype"
Load "bitmap"
Load "type1"
Load "glx"
EndSection
Section "Files"
FontPath "/usr/local/share/fonts/dejavu/"
FontPath "/usr/local/share/fonts/hack-font/"
FontPath "/usr/local/share/fonts/GentiumBasic/"
FontPath "/usr/local/share/fonts/GentiumPlus/"
FontPath "/usr/local/share/fonts/Liberation/"
FontPath "/usr/local/share/fonts/LinLibertineG/"
FontPath "/usr/local/share/fonts/Carlito/"
FontPath "/usr/local/share/fonts/Caladea/"
FontPath "/usr/local/share/fonts/font-awesome/"
EndSection
From pkg info font-awesome
This package installs only free OTF fonts suitable for use in X.Org
applications. The corresponding web fonts aren't installed.
What does that mean?
Ok, that means that it doesn't work in Firefox. It would be a nice-to-have if they would work in Firefox, because seeing other configs in the browser is sometimes really hard with all the glyths, but I should focus on urxvt and i3blocks and maybe look for those webfonts later or do you know how to fix this by any chance?
And then from pkg info -D font-awesome
font-awesome-5.9.0:
Always:
Make sure that the freetype module is loaded. If it is not, add the following
line to the "Modules" section of your X Windows configuration file:
Load "freetype"
Add the following line to the "Files" section of X Windows configuration file:
FontPath "/usr/local/share/fonts/font-awesome/"
I did it, but still no success
What I tried is to get the special chars from LibreOffice and not from the Internet, because it could be even completely other chars (can't see them, because of glyths).
So in LibreOffice I can find all 3 awesome fonts by adding them with
Insert -> Special Character
and choose from all 3 one and even from other fonts like Twitter Color Emoji (I don't even now how this came to my system) and some asian fonts, just to get any special chars there.
I have chosen those: 恤兀
In LibreOffice they look like I've chosen them, after copying it to the config file (in urxvt with vim) they are all squares in the console (except of the 2 asian signs) and after reloading i3, only the asian signs and the twitter dog look good in i3blocks. And the other signs, which were squares in urxvt/vim are completely other signs.
EDIT: I tried another terminal emulator (sakura) and it shows the same weird signs like i3locks do (but at least no squares), but it still doesn't solve the problem.
Is it possible that everything works just fine, but only font-awesome is broken?
I really thank all of you for your help. It might took the whole day and it still doesn't work and I hope some of you still have some motivation helping me