WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ratpoison font size  (Read 3059 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
ratpoison font size
« on: July 04, 2021, 04:47:38 PM »
Anyone is able to change to font of ratpoison?  :o
There is two ways:
1) put a line like this in ~/.ratpoisonrc: set font 12x24
2) run a command like this: ratpoison -c "set font 12x24"
and after restart ratposon: ratpoison -c "restart"

But my font remains the same.
I tried to use a font that I already use with aterm (you can find it with the command xlsfonts) but I see that on the net many people use normal fonts, I read something about xft font support but I don't know anything about it.
Anyway I can't change the font in any way, can someone help me?

examples:
set font "Droid Sans Mono-11"
set font -xos4-terminus-medium-r-normal-*-*-140-*-*-c-*-iso8859-1
« Last Edit: July 04, 2021, 05:00:48 PM by vinnie »

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: ratpoison font size
« Reply #1 on: July 04, 2021, 05:29:03 PM »
Hi vinnie,

Did You try to play with
Code: [Select]
Xft.dpi: 130.0
in Your ~/.Xdefaults?

I don't see Droid fonts extension in 12.x  repos. I usually load dejavu-fonts-ttf.tcz for X.
For terminal emulators my favorite is terminus-fonts.tcz.
« Last Edit: July 04, 2021, 05:38:46 PM by jazzbiker »

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: ratpoison font size
« Reply #2 on: July 04, 2021, 09:20:22 PM »
I had come back to say that I finally managed to randomly find a syntax that worked by doing a lot of testing, this works in ~/.ratpoisonrc:
Code: [Select]
set font -22I don't know why this kind of formatting work... I did not find it on the internet

but I also tried your solution with xft.dpi and it works too!

For terminus, I want to try to install the minimum amount of essential packages and no more, it's more or less like a challenge  :P

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: ratpoison font size
« Reply #3 on: July 05, 2021, 02:06:43 AM »
Nice font for terminal is essential :) How You can survive without it?

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: ratpoison font size
« Reply #4 on: July 05, 2021, 02:40:34 AM »
you are right, surely there is better but fonts for the terminal, but even with the basic fonts is not so bad
(Sorry for the image quality but there is a low size limit for attachments.)

for aterm I have 12x24 (I think it's the sony font) and for ratpoison (yellow writing in the center) -22 (I don't know what font it refers to, maybe monospace).
Just to add I put on the background also cpanel to show the different proportion (among the three fonts the one that for me has the right size is that of the yellow writing, the others are both small)
« Last Edit: July 05, 2021, 02:48:14 AM by vinnie »

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: ratpoison font size
« Reply #5 on: July 05, 2021, 04:59:13 AM »
Terminus includes sizes up to 32...
I think ratpoison found "Luxi Mono", Luxi ttf fonts family included in Xlibs.tcz.
aterm can not use ttf fonts, if You will load rxvt, You will be able to use ttf for the terminal.
« Last Edit: July 05, 2021, 05:15:53 AM by jazzbiker »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: ratpoison font size
« Reply #6 on: July 05, 2021, 07:37:22 AM »
Hi vinnie
... (Sorry for the image quality but there is a low size limit for attachments.) ...
Then don't try pasting an entire 1920x1080 screen shot. Crop it to show just the area of interest.

By the way, I see you are using scrot. If you want to try a simple lightweight GUI based screen shot program, try the
grabber  program I wrote:
http://tinycorelinux.net/12.x/x86/tcz/grabber.tcz.info
It's only 12K and available in 64 bit too. The link above gives a full description.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: ratpoison font size
« Reply #7 on: July 05, 2021, 07:19:37 PM »
I made the screenshot a bit hastily, partly because trying ratpoison I can't drag things on the screen (the overlap in the shot is just a side effect) and partly because I should have installed gimp.

Anyway I realized later that I could avoid using scrot because tinycore has already screenshot.sh, I noticed that even if it creates png instead of jpg, they are smaller.
I think the compression algorithm works differently because it I noticed in the past that png even being lossy perform better than jpg with flat images. but I think that gifs from this point of view are better than both formats.
I think there was still another format that compresses even more, I think I used it for digitizing an ebook years ago.

Next I'll try your program for curiosity, what language did you write it in?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: ratpoison font size
« Reply #8 on: July 05, 2021, 08:04:11 PM »
Hi vinnie
... I noticed in the past that png even being lossy perform better than jpg ...
png compression is lossless, not lossy. jpg compression tends to be lossy. I think jpg has various levels of compression,
some more lossy than others.

Quote
... Next I'll try your program for curiosity, what language did you write it in?
I wrote it in C. Its only dependencies are imlib2 and libXfixes. There's a good chance you already have them installed.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: ratpoison font size
« Reply #9 on: July 06, 2021, 03:55:29 PM »
I made a mistake, I meant lossless but I wrote lossy, I make many mistakes in Englishm, yes, to get that ugly screenshoot I had compressed scrot with parameter at 30