Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Help install and use Nerd-Fonts (rxvt-unicode,
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
NotAmused
n00b
n00b


Joined: 05 Oct 2018
Posts: 4

PostPosted: Thu Oct 11, 2018 4:50 pm    Post subject: [SOLVED] Help install and use Nerd-Fonts (rxvt-unicode, Reply with quote

First of all I have a .Xdefaults file that works in arch linux using Nerd-Fonts... I copied that .Xdefaults configuration file
over to gentoo installation. (I'm saying this to show that my font configuration file actually works so the problem is probably installing the fonts)

I try to run urxvt and it gives me error:
Code:
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.



These lines are in my .Xdefaults
Code:

           URxvt.font:xft:Bitstream Vera Sans Mono Nerd Font:pixelsize=14, \
           xft:Fura Mono Nerd Font:pixelsize=14, \
           xft:Go Mono Nerd Font:pixelsize=16, \
           xft:Cousine Nerd Font:pixelsize=16, \
           xft:Roboto Mono:pixelsize=16, \
           xft:Space Mono Nerd Edit:pixelsize=16, \
           xft:Sauce Code Nerd Font:pixelsize=16, \
           xft:3270 Nerd Font:pixelsize=16


If I comment the lines above urxvt runs fine but it doesn't look good.

I downloaded the repository of Nerd Fonts from here https://github.com/ryanoasis/nerd-fonts#option-1-download-and-install-manually

Ran the install script as root and using the -S parameter which tells it to install the fonts system wide.

Tried to run urxvt with the above configuration (I did a restart just in case) and urxvt still refuses to run.

Nerd-Fonts script installs the fonts at
Code:
 /usr/local/share/fonts

So I thought I should try to move the fonts to
Code:
/usr/share/fonts

That still didn't do the job...

I ran cf-list to see if it finds the fonts and i get
Code:

/usr/share/fonts/NerdFonts/Bitstream Vera Sans Mono Nerd Font Complete Mono.ttf: BitstreamVeraSansMono Nerd Font Mono:style=Roman


In the list... too many fonts to list here. So the fonts is there but I can't use them in urxvt. I'm rly confused.
If someone could help me out with this I would really appreciate it.

I guess the real question here is how do you install fonts in gentoo or linux in general.

EDIT

As it says in this reddit thread https://www.reddit.com/r/unixporn/comments/8blcz1/having_trouble_setting_urxvt_font/
I had to compile urxvt with xft use flag.

Guess this is the suffering of new gentoo users.
_________________
Together we stand, divided we fall.
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