LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Console Terminus Font Size? (https://www.linuxquestions.org/questions/slackware-14/console-terminus-font-size-4175489795/)

haziz 01-01-2014 10:43 AM

Console Terminus Font Size?
 
I am running Slackware 14.1 mostly from the command line on a 1366x768 monitor (using a vesa mode appropriate for the resolution, 0x34c if it matters, giving me a screen resolution of 1366x768x32 in the CLI) and find the font size of the terminus font I have selected "lat2 terminus16" to be just a little too small to read comfortably. I like the font but would like to use a larger size e.g. 18 or 20.

setconsolefont displays only that size of the terminus font.

How do I install, or if it is already installed, set a larger size for use?

Didier Spaier 01-01-2014 11:03 AM

If you've got Slackware 14.1, all Terminus fonts are in /usr/share/kbd/consolefonts, sizes ranging from 12 through 32.

If you're running an older Slackware either upgrade it or do this:
Code:

bash-4.2$ lftp -c "mirror ftp://ftp.slackware.com/pub/slackware/slackware-14.1/source/ap/terminus-font/"
bash-4.2$ cd terminus-font/                                                                     
bash-4.2$ su # type root's password when asked
bash-4.2# ./terminus-font.SlackBuild # Then after the script says Slackware package has been created:
bash-4.2# installpkg /tmp/terminus-font-4.38-noarch-1.txz

You will get the same fonts.

EDIT: Sorry, I overlooked you wrote that you're running Slackware 14.1 I hope this can help others though.

EDIT 2: Just run the "setfont" command to try and when you're satisfied with the result edit /etc/rc.d/rc.font accordingly.

flokofcgulls 01-01-2014 11:07 AM

I added the following line to my rc.S file just before the '#Enable swapping' section that sets my font at boot time.
Code:

setfont -v ter-232b.psf.gz
The Terminus font files are located in /usr/share/kbd/consolefonts/ in Slackware 14.1. They all begin with ter-, and after the size number there's a letter 'b' for bold and 'n' for normal.

I had to experiment a little bit to find the one that I liked just right, which for me was the 232b file, but you can just play around with that command until you find the one you want and then change the setfont command accordingly.

Hope that helps!

*Edit: wrong font path*

TSquaredF 01-01-2014 11:21 AM

There is a file, rc.font, in /etc/rc.d that is called by rc.M during bootup. This one is modified if you "Select a special console font" during setup & it makes an excellent place to set your special console font. The command is identical to the one flockofcgulls listed above. Also, make sure to chmod rc.font so that it is executable.
Regards,
Bill

GNU/Linux 01-03-2014 03:44 PM

Just to point out 'setconsolefont' doesn't include all the fonts included in Slackware 14.1 so you should look inside '/usr/share/kbd/consolefonts' as suggested by previous posts and this.


All times are GMT -5. The time now is 03:06 PM.