You are not logged in.
Hello, I am trying to change font in urxvt but I get error mentioned in title. When I am trying to set font from file /usr/share/fonts/misc/fonts.alias everything works fine. Using xtf results in same font. no matter which one I choose.
.xinitrc:
xrdb -merge ~/.Xresources
exec i3.Xresources:
URxvt*background: #BBBBBBCommands I've used and output:
in:
fc-list -v | grep -i "fullname: \"dejavu sans\"" -B 5 -A 10out:
Pattern has 23 elts (size 32)
family: "DejaVu Sans"(s)
familylang: "en"(s)
style: "Book"(s)
stylelang: "en"(s)
fullname: "DejaVu Sans"(s)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(i)(s)
width: 100(i)(s)
foundry: "PfEd"(s)
file: "/usr/share/fonts/TTF/DejaVuSans.ttf"(s)
index: 0(i)(s)
outline: True(s)
scalable: True(s)
charset: in:
urxvt -fn "DejaVu Sans"out:
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.in:
fc-match "DejaVu Sans"out:
DejaVuSans.ttf: "DejaVu Sans" "Book"in:
pacman -Qs dejavuout:
local/ttf-dejavu 2.37-1
Font family based on the Bitstream Vera Fonts with a wider range of charactersLast edited by lukasz1996 (2018-01-11 00:01:03)
Offline
man urxvt | less -p fontlisturxvt -fn "xft:DejaVu Sans Mono"Also, your .xinitrc is broken: read the wiki page.
Offline
Please also post the output of `pacman -Qi rxvt-unicode`.
Edit: That is if the above doesn't work. I first tested here, and indeed I got the same error. Then I added the "xft:" and fontsize bits which seemed to be obvious errors. But I still got the same error ... because I have a recompiled urxvt without xft. So I just assumed the OP might to without going back to the far more parsimonious explanation that they just need "xft:"
Last edited by Trilby (2018-01-10 22:36:41)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Font works now, but I don't fully understand what is wrong with my xinitrc file, I guess it should look something like that:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec i3Am I right?
Offline
Yes.
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
Thanks for help.
Offline