You are not logged in.

#1 2018-10-21 17:43:38

VanillaLandlord
Member
Registered: 2018-10-18
Posts: 13

[SOLVED]Installed fonts not being listed in gnome terminal preferences

Hey, just installed the nerd fonts layout through the AUR package nerd-fonts-complete. I found this relevant Font Configuration wiki page and this one on manually installing Fonts.
As I understood, I need to move the font files to either the already specified font paths both for Font Config and Xserver or add the custom paths myself. Which I did.

/etc/X11/xorg.conf content:

Section "Module"
	Load "modesetting"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "1:0:0"
	Option "AllowEmptyInitialConfiguration"
EndSection

Section "Files"
	FontPath "/usr/share/fonts/nerd-fonts-complete/ttf/"
EndSection

Output of grep /fonts /var/log/Xorg.0.log:

[     4.914] (WW) The directory "/usr/share/fonts/misc" does not exist.
[     4.916] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     4.916] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     4.916] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
	/usr/share/fonts/nerd-fonts-complete/ttf/,
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF

Output of fc-list | grep -i hack:

 rodrigo  ~  fc-list | grep -i hack        
/usr/share/fonts/nerd-fonts-complete/ttf/Hack Italic Nerd Font Complete Mono.ttf: Hack Nerd Font Mono:style=Italic
/usr/share/fonts/nerd-fonts-complete/ttf/Hack Bold Nerd Font Complete.ttf: Hack Nerd Font:style=Bold
/usr/share/fonts/nerd-fonts-complete/ttf/Hack Bold Italic Nerd Font Complete Mono.ttf: Hack Nerd Font Mono:style=Bold Italic
/usr/share/fonts/nerd-fonts-complete/ttf/Hack Regular Nerd Font Complete.ttf: Hack Nerd Font:style=Regular
/usr/share/fonts/nerd-fonts-complete/ttf/Hack Italic Nerd Font Complete.ttf: Hack Nerd Font:style=Italic
/usr/share/fonts/nerd-fonts-complete/ttf/Hack Regular Nerd Font Complete Mono.ttf: Hack Nerd Font Mono:style=Regular
/usr/share/fonts/nerd-fonts-complete/ttf/Hack Bold Italic Nerd Font Complete.ttf: Hack Nerd Font:style=Bold Italic
/usr/share/fonts/nerd-fonts-complete/ttf/Hack Bold Nerd Font Complete Mono.ttf: Hack Nerd Font Mono:style=Bold

Should I just move everything to the default paths?

Last edited by VanillaLandlord (2018-11-16 13:10:12)

Offline

#2 2018-10-21 18:17:47

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

VanillaLandlord wrote:

Should I just move everything to the default paths?

What do you mean by default paths and what would you aim to achieve by that move?
Edit:
Oh and welcome to the arch linux forums VanillaLandlord.

Last edited by loqs (2018-10-21 18:18:10)

Online

#3 2018-10-21 18:27:33

VanillaLandlord
Member
Registered: 2018-10-18
Posts: 13

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

loqs wrote:
VanillaLandlord wrote:

Should I just move everything to the default paths?

What do you mean by default paths and what would you aim to achieve by that move?
Edit:
Oh and welcome to the arch linux forums VanillaLandlord.

The paths specified by default as the "fonts paths", which apparently are:

/usr/share/fonts/TTF,
/usr/share/fonts/OTF

And by moving to said defalt paths, I was hoping the Xserver would be able to identify the new fonts.
Thank you! smile

Last edited by VanillaLandlord (2018-10-21 18:29:54)

Offline

#4 2018-10-21 18:35:16

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

Which application is unable to find the fonts using the X?
In /usr/share/fonts/nerd-fonts-complete/ttf/ did you run?

$ mkfontscale
$ mkfontdir

Online

#5 2018-10-21 18:48:50

VanillaLandlord
Member
Registered: 2018-10-18
Posts: 13

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

loqs wrote:

Which application is unable to find the fonts using the X?
In /usr/share/fonts/nerd-fonts-complete/ttf/ did you run?

$ mkfontscale
$ mkfontdir

I did now, still didn't work. I didn't before because I assumed it wasn't needed in more recent versions.

Edit: the application is the gnome-terminal.

Last edited by VanillaLandlord (2018-10-21 18:52:52)

Offline

#6 2018-10-21 19:05:47

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

gnome-terminal uses font-config and the output you posted shows font-config already listing fonts in /usr/share/fonts/nerd-fonts-complete/ttf.
How have you configured gnome-terminal to use those fonts?

Online

#7 2018-10-21 19:11:45

VanillaLandlord
Member
Registered: 2018-10-18
Posts: 13

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

loqs wrote:

gnome-terminal uses font-config and the output you posted shows font-config already listing fonts in /usr/share/fonts/nerd-fonts-complete/ttf.
How have you configured gnome-terminal to use those fonts?

The fonts are not listed in the preferences menu. Am I supposed to configure the font paths for gnome-terminal?

Edit: I found this workaround. But it really isn't the optimal solution since it forces me have the same font (including size) on all applications.

Last edited by VanillaLandlord (2018-10-21 19:12:35)

Offline

#8 2018-10-21 19:27:33

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

Online

#9 2018-10-21 19:34:22

VanillaLandlord
Member
Registered: 2018-10-18
Posts: 13

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

Ha! So gnome terminal filters out all non-monospace fonts... Thanks for your help!

Offline

#10 2018-10-21 19:45:00

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

See https://github.com/ryanoasis/nerd-fonts and the available single-width options

Online

#11 2018-10-21 19:56:08

VanillaLandlord
Member
Registered: 2018-10-18
Posts: 13

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

loqs wrote:

See https://github.com/ryanoasis/nerd-fonts and the available single-width options

I certainly will, thank you again smile

Offline

#12 2018-10-23 16:47:03

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 291

Re: [SOLVED]Installed fonts not being listed in gnome terminal preferences

VanillaLandlord wrote:
loqs wrote:

See https://github.com/ryanoasis/nerd-fonts and the available single-width options

I certainly will, thank you again smile

Assuming its solved, can you please mark this as solved by editing your first post?

Offline

Board footer

Powered by FluxBB