Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-14-2006, 07:25 AM
|
#1
|
Member
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Rep:
|
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.
|
|
|
04-14-2006, 07:54 AM
|
#2
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
They're located in /usr/share/kbd/consolefonts/ but atm I can't remember what sets them...
|
|
|
04-15-2006, 02:28 AM
|
#3
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Maybe setfont ???
|
|
|
04-15-2006, 04:29 AM
|
#4
|
Member
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Original Poster
Rep:
|
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.
|
|
|
04-15-2006, 05:11 AM
|
#5
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
Did you issue and read "man setfont"?
|
|
|
04-15-2006, 05:28 AM
|
#6
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
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.
|
|
|
04-15-2006, 05:32 AM
|
#7
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 769
Rep:
|
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 05:33 AM.
|
|
|
04-15-2006, 05:42 AM
|
#8
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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.
|
|
|
04-15-2006, 05:49 AM
|
#9
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
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.
|
|
|
04-15-2006, 05:59 AM
|
#10
|
Member
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Original Poster
Rep:
|
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.
|
|
|
04-18-2006, 02:57 AM
|
#11
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
So did you get the responce?
|
|
|
04-28-2006, 05:06 AM
|
#12
|
Member
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Original Poster
Rep:
|
Nope, I didn't.
|
|
|
04-28-2006, 05:39 AM
|
#13
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
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.
|
|
|
04-28-2006, 06:00 AM
|
#14
|
Member
Registered: Jan 2006
Location: Israel
Distribution: Windows Xp, Slackware
Posts: 316
Original Poster
Rep:
|
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.
|
|
|
04-28-2006, 06:04 AM
|
#15
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
Is it not saved in the file indicated by us and the manual page?
|
|
|
All times are GMT -5. The time now is 01:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|