You are not logged in.

#1 2018-08-01 18:11:22

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,594

Nerd fonts, how to install?

I'am trying to install this
https://github.com/ryanoasis/nerd-fonts … nsMono.zip
to be used as my urxvt font, but no luck so far. Any clues? (So far droping stuff to ~/.fonts was magical enough).

Offline

#2 2018-08-01 20:23:09

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,228

Re: Nerd fonts, how to install?

Not sure why you'd want to use the PostScript name, I'm just using the regular font family name like so (my actual config):

URxvt.font:                         xft:Fantasque Sans Mono:style=Regular:size=15,\
                                    xft:IPAGothic:antialias=true,\
                                    xft:DejaVu Serif
URxvt.boldFont:                     xft:Fantasque Sans Mono:style=Bold,\
                                    xft:IPAGothic:style=bold:antialias=true,\
                                    xft:DejaVu Sans Mono:style=bold,\
                                    xft:DejaVu Serif:style=bold
! letterSpace size=14 -> -2
URxvt.letterSpace:                  -1
URxvt.italicFont:                   xft:Fira Sans:style=Italic
URxvt.boldItalicFont:               xft:Fira Sans:style=Medium Italic

Does a plain/less sophisticated `fc-list` query list Fantasque (or whatever this patched version does)?

Do not forget to xrdb ~/.Xdefaults or so after changing the URXVT font  but I'm assuming you already know that.

I have installed the font just in another standard location

$ pacman -Ql ttf-fantasque-sans
ttf-fantasque-sans /usr/
ttf-fantasque-sans /usr/share/
ttf-fantasque-sans /usr/share/fonts/
ttf-fantasque-sans /usr/share/fonts/TTF/
ttf-fantasque-sans /usr/share/fonts/TTF/FantasqueSansMono-Bold.ttf
ttf-fantasque-sans /usr/share/fonts/TTF/FantasqueSansMono-BoldItalic.ttf
ttf-fantasque-sans /usr/share/fonts/TTF/FantasqueSansMono-Italic.ttf
ttf-fantasque-sans /usr/share/fonts/TTF/FantasqueSansMono-Regular.ttf

fc-cache -f could fix your issues, but it shouldn't.


Im grünen Wald, dort wo die Drossel singt…

Offline

#3 2018-08-01 21:40:41

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,594

Re: Nerd fonts, how to install?

twoion wrote:

Does a plain/less sophisticated `fc-list` query list Fantasque (or whatever this patched version does)?

Do not forget to xrdb ~/.Xdefaults or so after changing the URXVT font  but I'm assuming you already know that.

fc-list does show the font and I know about xrdb, will try some other location perhaps. Besides postscript name I have tried the other name as well, but no luck so far.
p.s. Other fonts (like Monaco), that are also in ~/.fonts are working well with urxvt, for example

URxvt.font: xft:Monaco:size=10

or

URxvt.font: xft:OCRA:size=10

Last edited by brontosaurusrex (2018-08-01 21:48:19)

Offline

Board footer

Powered by FluxBB