LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2023, 10:47 AM   #1
bryan1024
LQ Newbie
 
Registered: Feb 2014
Location: USA
Distribution: Slackware
Posts: 19

Rep: Reputation: Disabled
15.0 text mode oversight: console font doesn't match locale


In the move from 14.2 to 15.0, the default locale changed from en_US to en_US.UTF-8. Unfortunately, the default text-mode font doesn't quite match that locale. For example, 'man' renders some hyphens and quotation marks as nonsense characters.

I think I will solve this for myself by setting LANG back to en_US, as I don't need Unicode on the console, but I would welcome others' solutions or comments.

(Hopefully, this thread will be of use to someone who notices the same issue in the future.)
 
Old 03-31-2023, 12:28 PM   #2
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
My solution was to specify ter-v16b in /etc/rc.d/rc.font and make the file executable.
 
1 members found this post helpful.
Old 03-31-2023, 02:30 PM   #3
bryan1024
LQ Newbie
 
Registered: Feb 2014
Location: USA
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: Disabled
Ah, from /usr/share/kbd/consolefonts/README.terminus, I see that ter-v16b is a bold 8x16 Terminus font that combines many character sets.

I also see that the default console font is one called "default" (though there are two of those...).

There's a setfont command, but I don't see a getfont command, or other way of knowing which font is currently loaded. (The showconsolefont command outputs the font itself, but not its name.) Does anyone know how to get this info?

Last edited by bryan1024; 03-31-2023 at 02:41 PM.
 
Old 03-31-2023, 02:49 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Why ship in 2023 console fonts without an UTF-8 mapping is beyond me. But Slackware is not alone, even Arch does that...
 
Old 04-01-2023, 01:05 PM   #5
j12i
Member
 
Registered: Nov 2013
Location: UTC+1
Distribution: Slackware64 15.0
Posts: 160

Rep: Reputation: Disabled
Edit: Sorry, I didn't read your post so well.
Quote:
Didier, a console font can only have 512 glyphs. You can't get a lot of Unicode coverage with that.
(c.f. https://slackware.uk/~urchlay/repos/...e-fonts/about/)

Last edited by j12i; 04-01-2023 at 01:06 PM.
 
Old 04-01-2023, 02:40 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
In Unicode version 15.0 from 13 September 2022 149,186 characters are listed, so indeed we need more than one console font to provide glyphs for all of them.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot lock locale archive "/usr/lib64/locale/locale-archive": Permission denied when building Multilib Cross Linux from Scratch Gunnersky2002 Linux - Software 2 06-13-2018 09:28 AM
How to capture 1000 lines before a string match and 1000 line a string match including line of string match ? sysmicuser Linux - Newbie 12 11-14-2017 05:21 AM
Set console locale, font, and font size? penyuan Debian 3 12-09-2011 07:54 PM
iptables.. Bit of guidance/oversight with my SNAT and DNAT stuff please? GrapefruiTgirl Linux - Security 15 04-02-2009 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration