You are not logged in.

#1 2019-06-05 15:10:07

unInstance
Member
Registered: 2018-03-08
Posts: 17

Font applying issue

My set up: i3, rxvt-unicode-pixbuf, lxappearance, firefox
My issue: As I install ttf-roboto (or some other) font from repository, it immediately becomes my system-wide font. When I open a new terminal window after install I immediately see the new font applied.

$ cat .Xresources | grep font
URxvt.font:		xft:monaco:size=11
URxvt.perl-ext-common:	resize-font
!! resize-font
URxvt.resize-font.smaller:	C-Down
URxvt.resize-font.bigger:	C-Up
$ cat .config/gtk-3.0/settings.ini | grep font
gtk-font-name=Cantarell 11

How can I just install a new font without it being my main system one?

Last edited by unInstance (2019-06-05 15:11:22)

Offline

#2 2019-06-05 17:31:06

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Font applying issue

Leave that poor cat alone!

grep font ~/.gtkrc-2.0

Are you merging the .Xresources file in your desktop startup script?

I always set all the fonts to the sans-serif & monospace aliases and use ~/.config/fontconfig/fonts.conf to define which font to use for the alias.

For example:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <alias>
    <family>monospace</family>
    <prefer><family>Inconsolata</family></prefer>
  </alias>
  <alias>
    <family>serif</family>
    <prefer><family>Times New Roman</family></prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer><family>Microsoft Sans Serif</family></prefer>
  </alias>
</fontconfig>

Jin, Jîyan, Azadî

Offline

#3 2019-06-05 17:55:16

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: Font applying issue

I do merge

[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

I created this fontconfig but it didn't help.

Offline

#4 2019-06-05 18:08:52

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Font applying issue

unInstance wrote:

I do merge

[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

Why are you using the -I option?

And why bother checking for ~/.Xresources? You know it exists.

You should probably post the entire file and describe how exactly you are starting your desktop in as much detail as possible.

unInstance wrote:

I created this fontconfig but it didn't help.

That was just an example, it won't work for you unless you have the Windows 10 fonts on your system.


Jin, Jîyan, Azadî

Offline

#5 2019-06-05 18:32:12

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: Font applying issue

[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap

[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

compton &

dunst &

unclutter &

~/.fehbg &

exec i3

Offline

#6 2019-06-05 20:01:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,504

Re: Font applying issue

fc-match monospace
fc-match monaco
xrdb -query | grep -i urxvt

Online

#7 2019-06-05 20:21:48

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,688
Website

Re: Font applying issue

unInstance wrote:
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap

[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

compton &

dunst &

unclutter &

~/.fehbg &

exec i3

No idea if it's related to the issue at hand, but if that is your xinitrc, it is missing some important parts.

https://wiki.archlinux.org/index.php/Xinit#xinitrc


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2019-06-06 13:11:14

unInstance
Member
Registered: 2018-03-08
Posts: 17

Re: Font applying issue

The font was changing because of URxvt.font option in ~/.Xresources
The problem is solved by creating a valid font config which explains to the system what "monospace" is.

If you, just like me, don't understand much from some archwiki pages then you can read gentoo wiki instead. Fonts issue is the case.

Offline

Board footer

Powered by FluxBB