LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-14-2006, 06:25 AM   #1
IceChant
Member
 
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Blog Entries: 3

Rep: Reputation: 30
Font setting file ?


I couldn't find it in any search I did, which file control the console font settings ?
I'm not asking how to change/choose font I know it's possible to do it throw pkgtool or by running the script but where I can find what's the console font I'm on right now.
 
Old 04-14-2006, 06:54 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
They're located in /usr/share/kbd/consolefonts/ but atm I can't remember what sets them...
 
Old 04-15-2006, 01:28 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Maybe setfont ???
 
Old 04-15-2006, 03:29 AM   #4
IceChant
Member
 
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316

Original Poster
Blog Entries: 3

Rep: Reputation: 30
I emailed info@slackware.com I hope to get reply weird that it can't be found, I'll post the reply when/if I'll get it.
 
Old 04-15-2006, 04:11 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Did you issue and read "man setfont"?
 
Old 04-15-2006, 04:28 AM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
If you are asking me, no I didn't (you see, I was scratching head). I just found it mentioned somewhere. Here is the shortened man output:
Code:
NAME

       setfont - load EGA/VGA console screen font



SYNOPSIS

       setfont   [-O  font+umap.orig]  [-o  font.orig]  [-om  cmap.orig]  [-ou
       umap.orig] [-N] [font.new ...]  [-m cmap] [-u umap] [-C console]  [-hH]
       [-v] [-V]



DESCRIPTION

       The  setfont  command  reads a font from the file font.new and loads it
       into the EGA/VGA character generator, and optionally outputs the previ-
       ous  font.  It can also load various mapping tables and output the pre-
       vious versions.

       If no args are given (or only the option -N for some number N), then  a
       default  (8xN)  font is loaded (see below).  One may give several small
       fonts, all containing a Unicode table, and setfont  will  combine  them
       and load the union.  Typical use:

       setfont
              Load a default font.

       setfont drdos8x16
              Load a given font (here the 448-glyph drdos font).

       setfont cybercafe -u cybercafe
              Load  a  given font that does not have a Unicode map and provide
              one explicitly.

       setfont LatArCyrHeb-19 -m 8859-2
              Load a given font (here a 512-glyph font combining several char-
              acter  sets)  and indicate that one’s local character set is ISO
              8859-2.

       Note: if a font has more than 256 glyphs, only 8 out of 16  colors  can
       be  used  simultaneously. It can make console perception worse (loss of
       intensity and even some colors).

Offtopic: Chinaman, I hope that you got my mail, because it was rejected at first time. If not, thanks for the script again. It's rather useful, even I can't get lm_sensors to show temperature.
 
Old 04-15-2006, 04:32 AM   #7
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
do you have /etc/rc.d/rc.font ?

mine looks like this

#!/bin/sh
#
# This selects your default screen font from among the ones in
# /usr/share/kbd/consolefonts.
#
setfont -v 161.cp.gz -16


it is called from /etc/rc.d/rc.M

# Load a custom screen font if the user has an rc.font script.
if [ -x /etc/rc.d/rc.font ]; then
. /etc/rc.d/rc.font
fi

tobyl

Last edited by tobyl; 04-15-2006 at 04:33 AM.
 
Old 04-15-2006, 04:42 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Alien_Hominid,

The question was to the OP, sorry. And I don't guess I got your mail. I thought I got it and replied, but I don't see it. Please send again.
 
Old 04-15-2006, 04:49 AM   #9
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Oh. It wasn't an important letter. I just expressed gratitude for your friendliness.
I've got a responce from your server, that i couldn't be authorised to send these letters into your server (you know, I'm using dyndns), so I registered and resent it. That's all.

Oh, great, i was right about setfont.
 
Old 04-15-2006, 04:59 AM   #10
IceChant
Member
 
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316

Original Poster
Blog Entries: 3

Rep: Reputation: 30
I read the setfont info but missed few things :-/
My rc.font:
Code:
#!/bin/sh
#
# This selects your default screen font from among the ones in
# /usr/share/kbd/consolefonts.
#
setfont -v
Yes very clear on which command to use but still I don't understand where the setting is saved.
 
Old 04-18-2006, 01:57 AM   #11
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
So did you get the responce?
 
Old 04-28-2006, 04:06 AM   #12
IceChant
Member
 
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316

Original Poster
Blog Entries: 3

Rep: Reputation: 30
Nope, I didn't.
 
Old 04-28-2006, 04:39 AM   #13
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
From reading "man setfont" I learned:
Code:
FILES
       /usr/share/kbd/consolefonts is the default font  directory.   /usr/share/kbd/unimaps  is
       the  default  directory  for  Unicode  maps.  /usr/share/kbd/consoletrans is the default
       directory for screen mappings.  The default font is a file default (or default8xN if the
       -N option was given for some number N) perhaps with suitable extension (like .psf).
Post #7 is quite clear, also.
 
Old 04-28-2006, 05:00 AM   #14
IceChant
Member
 
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316

Original Poster
Blog Entries: 3

Rep: Reputation: 30
I wasn't asking how to set font, I know how to do that.
I was asking on which file the font selection is saved.
 
Old 04-28-2006, 05:04 AM   #15
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Is it not saved in the file indicated by us and the manual page?
 
  


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
Setting font for gVim daihard Linux - Software 15 11-24-2005 05:10 AM
gtk font setting egag Slackware 3 06-24-2005 08:35 AM
setting up font size kozelnik Linux - Newbie 0 02-17-2005 06:41 PM
How is X setting font path? rsamurti Slackware 3 08-25-2004 03:03 AM
OpenOffice font setting unixfreak Linux - Software 0 07-23-2004 01:03 PM

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

All times are GMT -5. The time now is 01:52 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