Is there a way to check which font your shell/terminal emulator is using from the commandline?
I am willing to settle reading part of a config file, if a direct command is not readily available.
Is there a way to check which font your shell/terminal emulator is using from the commandline?
I am willing to settle reading part of a config file, if a direct command is not readily available.
The option Use the system fixed width font is usually equal and set by
org.gnome.desktop.interface
.To get current font setting run following command:
To set/change setting run following command (here example of increase size) :
As I run above command, I found font of your terminal changed (increased size)! So,
gnome-terminal
using that font setting.DE-independent way of getting system's preferred monospace font:
Ref: ArchWiki Font configuration
Check terminal font:
There are many answers on console emulators here already, so I'll focus on tty virtual console only. You can do cat
/etc/default/console-setup
and find the line saying FONTFACE. Alternatively you couldgrep -n FONTFACE /etc/default/console-setup
For instance, here's my console-setup file
To change it, you can execute
sudo dpkg-reconfigure console-setup
in tty. This will update the kernel settings, by the way.You can check your gnome terminal font using following command
For example it am using this command for gnome-terminal
If you want to change the font using command line you can use following command
Where 12 is the size of font.
For XFCE terminal You can grep the configuration file: