7

Is there a terminal command which allows me to see which font is used in a Linux terminal window?

7
  • 1
    That depends on what terminal you use and maybe on the distro, too. Could you please give us more information about that?
    – wullxz
    Jan 5, 2013 at 23:52
  • Sure: at the moment I am using the default terminal on Arch Linux. I thought that maybe there was a standard, distro-independent command for that Jan 5, 2013 at 23:59
  • @user1301428 There is no such thing as "default terminal" on Arch Linux (unless you mean the Linux console). Which desktop environment are you using? Jan 6, 2013 at 0:05
  • If you're using a graphical terminal, you can surely find a menu entry called Help -> About where you can possibly find the name of your terminal application. Or do you mean the terminals that are accessable using STRG + ALT + 1-6?
    – wullxz
    Jan 6, 2013 at 0:12
  • 1
    @AluísioA.S.G. yes, sorry, I was tired :D I mean the Linux console. I am currently not using a desktop environment or a window manager. Jan 6, 2013 at 11:00

2 Answers 2

2

In GNOME I can print list of my gnome-terminal profiles with following command:

$ gconftool-2 --get /apps/gnome-terminal/global/profile_list
[Default,Profile0]

Then I can print font settings with:

$ gconftool-2 --get /apps/gnome-terminal/profiles/Default/font
Monospace 12
$ gconftool-2 --get /apps/gnome-terminal/profiles/Profile0/font
TakaoMincho Bold 36
3
  • 4
    Is there a DE-independent command? Jan 13, 2013 at 13:47
  • he is asking about the Linux console, not about the GNOME terminal!
    – Maxim
    Jun 1, 2020 at 15:54
  • @user1301428 -- yes, of course! it works for the Gnome terminal only. Moreover, the original question was about the Linux console, which does not even need an X (or Wayland) system on the computer whatsoever
    – Maxim
    Jun 3, 2020 at 0:26
2

If you are asking about the Linux console, (or "teletype"), and not about an X terminal emulator (see below for the X.org answer):

Unless you changed anything your Unix console is using the "default" font on your system. To learn what it is, type

setfont -v

For me, it gives

Loading 256-char 8x16 font from file /lib/kbd/consolefonts/default8x16.psfu.gz
Loading Unicode mapping table...

Now, if you are in the X11/ X.org terminal, check the contents of your

$ view /etc/default/console-setup

I get

FONTFACE="Fixed"
FONTSIZE="8x16"

-- that, is, the fixed-width 8x16 UTF-8 font

5
  • Just prints "Couldn't get a file descriptor referring to the console." on cpe:/o:opensuse:tumbleweed:20231022 Oct 28 at 18:41
  • @RokeJulianLockhart : this means that you are in X or on Wayland, and not in the console. If you are in X, use the second answer, with /etc/default/console-setup
    – Maxim
    Oct 30 at 5:39
  • Do you mean TTY rather than merely console? If so, that's worth specifying in the answer. I was using a console, but indeed through a display server. Thanks for the advice. Oct 30 at 18:14
  • 1
    @RokeJulianLockhart -- I meant /dev/tty* as opposite to the /dev/pts/*
    – Maxim
    Nov 2 at 5:32
  • 1
    @RokeJulianLockhart -- I have edited my answer a little bit, home it is less confusing by now, thank you
    – Maxim
    Nov 2 at 5:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .