[SOLVED] Change font size of Ratmenu and bash?

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
rrttdd
Posts: 26
Joined: 28. Nov 2012, 18:49

[SOLVED] Change font size of Ratmenu and bash?

Post by rrttdd »

Hi forum,
recently I've installed Salix Ratpoison edition on my laptop, a Lenovo Thinkpad X60.

This computer has a 12" display with a screen resolution of 1400 x 1050, about 144 dpi.

So the fonts of Ratmenu and the Bash are very tiny. :(


The menu bar fonts of programs like gvim could also be bigger...

I've already tried the following:

1) I created a .Xdefaults file in my home directory

Code: Select all

Xft.dpi:        144
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight
Now xdpyinfo reports the correct dpi resolution, but the fonts are still way to small.

2) I tried to change main.sh of ratmenu

Code: Select all

ratmenu -font \
-xos4-terminus-medium-r-normal--36-360-72-72-c-60-iso8859-1 \
As a result, the menu font got bigger indeed, but it's almost unreadable...

ttp://imageshack.us/photo/my-images/546/201212091414031400x1050.png/

How can I get a readable font size of about 24 to 36 in the bash and in ratmenu?? :?:
Last edited by rrttdd on 30. Dec 2012, 19:41, edited 1 time in total.
User avatar
gapan
Salix Wizard
Posts: 6365
Joined: 6. Jun 2009, 17:40

Re: Change font size of Ratmenu and bash?

Post by gapan »

For bash, edit ~/.Xresources and change the size in this line:

Code: Select all

XTerm*faceName: Terminus:antialias=False:pixelsize=14
For ratmenu try

Code: Select all

-xos4-terminus-medium-r-normal--32-320-72-72-c-60-iso8859-1
Image
Image
rrttdd
Posts: 26
Joined: 28. Nov 2012, 18:49

Re: Change font size of Ratmenu and bash?

Post by rrttdd »

Hi,
thanks for the answer!
gapan wrote:For bash, edit ~/.Xresources and change the size in this line:

Code: Select all

XTerm*faceName: Terminus:antialias=False:pixelsize=14
This worked for me. Font size is now readable. :) In the Xresources-file there's another DPI configuration line I adapted to 144.

But I ran into another problem with Music on Console. It starts correctly, but then it cannot be put into background, expose'ed and restored correctly. Sometimes it crashes, sometimes I get a message "Terminal too small"... :?:
For ratmenu try

Code: Select all

-xos4-terminus-medium-r-normal--32-320-72-72-c-60-iso8859-1
This didn't work. But meanwhile I've found out that the last parameter, the "60" in this case, has to be scaled as well.
This is my current line in the config file, which works fine:

Code: Select all

-xos4-terminus-medium-r-normal--36-360-72-72-c-180-iso8859-1
From the default file, I tripled the 12, the 120 and the 60. ;)
Post Reply