You are not logged in.
Pages: 1
Hello folks,
I am trying to install a custom terminal font on my system but it is showing up all squished up (UbuntuMono-B works just fine but monofur bold Nerd Font Complete Mono is not working correctly). I downloaded the font from here Followed this guide.I downloaded the ttf file and placed them in /usr/local/share/fonts/nerd-fonts/monofur-bold as this directory was not there by default, I created it first before moving the font file over. After that I checked for sufficient file permissions. The next step is confusing for me, i.e. adding the newly created directory to FontPath entry in the xorg.conf file. There is no such file in /etc/X11/xorg.conf or /etc/xorg.conf. So I went here and ran the following command:
Xorg :2 -configureThat created xorg.conf.new in /root/
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/local/share/fonts/nerd-fonts"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "kmsdev" # <str>
#Option "ShadowFB" # [<bool>]
#Option "AccelMethod" # <str>
#Option "PageFlip" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "DoubleShadow" # [<bool>]
#Option "Atomic" # [<bool>]
#Option "VariableRefresh" # [<bool>]
#Option "UseGammaLUT" # [<bool>]
#Option "AsyncFlipSecondaries" # [<bool>]
Identifier "Card1"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSectionI added the FilePath entry and logged back in but that did not work. What am I doing wrong here? Apologies for the bad english here it is not my first language.
an4rki
Last edited by an4rki_ (2022-09-21 05:03:55)
"A computer is like air conditioning - it becomes useless when you open Windows." - Linus Torvalds
Arch + DWM
Offline
Xorg :2 -configure
don't do that - it has nothing t odo w/ your font problems and static server configurations are not advisable.
That created xorg.conf.new in /root/
don't run X11 as root either.
it is showing up all squished up
This is a good moment to link a screenshot (don't embed it)
Also post the output of
fc-list | grep -i monofurOffline
Appreciate the quick reply @seth
Here's the screenshot and the output of fc-list:
$ fc-list | grep -i monofur
/usr/local/share/fonts/nerd-fonts/monofur-bold/monofur bold Nerd Font Complete Mono.ttf: Monofurbold Nerd Font Mono:style=boldan4rki
"A computer is like air conditioning - it becomes useless when you open Windows." - Linus Torvalds
Arch + DWM
Offline
What you're seeing in the terminal is not a monospace font (and the result "normal")
The only variant installed seems to be the bold one, so make sure to have the regular and italic ones as well. That should do unless your st config is also wrong.
Offline
Thank you @seth. Installing the regular and italic variants solved the problem.
"A computer is like air conditioning - it becomes useless when you open Windows." - Linus Torvalds
Arch + DWM
Offline
Pages: 1