You are not logged in.

#1 2017-11-29 11:30:53

loadlover
Member
Registered: 2017-05-10
Posts: 103

How to find current console font name? And default font name

Hi all,

Is there a way to find the name of the currently used console font?

Also, what is the default console font's name (as used during installation)?

Surprisingly, I couldn't find this information in the ArchWiki.

Thanks,

Loady

Offline

#2 2017-11-29 11:58:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to find current console font name? And default font name

Wiki wrote:

By default, the virtual console uses the kernel built-in font with a CP437 character set

I've had a quick search but I couldn't find out what this is, diving into Arch's kernel config may help but I'm not sure what I'm looking for. The following seems to suggest that no fonts are set...

slithery@red:~$ zgrep FONT /proc/config.gz 
CONFIG_FONT_SUPPORT=y
CONFIG_FONTS=y
# CONFIG_FONT_8x8 is not set
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_6x10 is not set
# CONFIG_FONT_10x18 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
CONFIG_FONT_AUTOSELECT=y

I don't think it's possible to find out what the currently used font is, see the first answer here...
https://superuser.com/questions/452366/ … n-in-linux

Edit - It may be possible to use setfont to dump the current font to a file, and then compare with the available fonts in /usr/share/kbd/consolefonts/.

Last edited by Slithery (2017-11-29 12:03:48)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-11-29 18:37:51

loadlover
Member
Registered: 2017-05-10
Posts: 103

Re: How to find current console font name? And default font name

slithery wrote:
Wiki wrote:

By default, the virtual console uses the kernel built-in font with a CP437 character set

I've had a quick search but I couldn't find out what this is, diving into Arch's kernel config may help but I'm not sure what I'm looking for. The following seems to suggest that no fonts are set...

slithery@red:~$ zgrep FONT /proc/config.gz 
CONFIG_FONT_SUPPORT=y
CONFIG_FONTS=y
# CONFIG_FONT_8x8 is not set
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_6x10 is not set
# CONFIG_FONT_10x18 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
CONFIG_FONT_AUTOSELECT=y

CONFIG_FONT_8x16=y <--- surely it is set?

Thanks for your reply, slithery. Yes, it's odd that I can setfont to change to another font, but there's no obvious way back. Curious..

And yeah, dumping the font's glyphs and doing a manual comparison.. golly. Work wink

- Loady

Offline

#4 2017-11-29 18:41:46

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: How to find current console font name? And default font name

loadlover wrote:

And yeah, dumping the font's glyphs and doing a manual comparison.. golly. Work wink

I didn't mean to compare them manually, I was thinking more along the lines of diff.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2024-01-24 05:51:46

look997
Member
Registered: 2017-03-18
Posts: 9

Re: How to find current console font name? And default font name

@loadlover Tell me if you solved the problem?  big_smile
Write what the default font is on Arch Linux.  I need this name.

Offline

#6 2024-01-24 07:12:51

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

Re: How to find current console font name? And default font name

I think the stock "8x16" console font is the one provided by the video card itself, also known as the "VGA" font.

https://unix.stackexchange.com/question … onsole-tty


Jin, Jîyan, Azadî

Offline

#7 2024-01-24 09:12:22

look997
Member
Registered: 2017-03-18
Posts: 9

Re: How to find current console font name? And default font name

@Head_on_a_Stick And now a dream to come true:

The same font, but with Polish characters?
With character map iso-8859-2?

Offline

#8 2024-01-24 09:37:11

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

Re: How to find current console font name? And default font name

https://adeverteuil.github.io/linux-con … reenshots/
Some lat2 variant.

Also please don't necrobump.

Offline

#9 2024-01-24 20:55:11

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

Re: How to find current console font name? And default font name

To complete this old thread:

loadlover wrote:

it's odd that I can setfont to change to another font, but there's no obvious way back

To load the default video card font use

setfont default8x16

The clue is in the name wink


Jin, Jîyan, Azadî

Offline

#10 2024-05-25 22:16:46

stars-hiker
Member
Registered: 2024-05-25
Posts: 1

Re: How to find current console font name? And default font name

To find out what settings are in effect, use:

fc-match --verbose

family: "DejaVu Sans"(s)
hintstyle: 3(i)(s)
hinting: True(s)
...
more info here :
https://wiki.archlinux.org/title/font_configuration
2.13 Query the current settings

Offline

#11 2024-05-25 22:29:25

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

Re: How to find current console font name? And default font name

This thread from 2017 was about the console font, not what fontconfig would ultimately fall back to.

Offline

Board footer

Powered by FluxBB