Tiny Core Extensions > TCE Tips & Tricks

RXVT terminal install in 3 steps

(1/2) > >>

PDP-8:
I wanted to replace aterm with a terminal that supported TTF font scaling, even though I'm running the bare Xvesa / XFbdev and not a full xorg.

Since aterm does not support TTF fonts, don't bang your head against the wall.  RXVT, it's successor, does.  And, the Tinycore images already have the Luxi true-type font baked in.

Installation and configuration was super easy on TC 8.2.1

1) Install the rxvt.tcz from your favorite repo.

2) Edit your ~/.Xdefaults file with the following additions:


--- Code: ---URxvt*font: xft:Luxi Mono: size 16
URxvt*foreground: white
URxvt*background: black

--- End code ---

3) Take care with the font line, and change the size to whatever you need.

This is not a full treatise on every rxvt option, but should be enough to whet your appetite. :)

Interestingly enough, if you do

--- Code: ---xset q
--- End code ---

you'll see the font paths, but doesn't point to the TTF font directory.  The Luxi font is baked in (/usr/local/lib/X11/fonts/TTF/), and merely installing rxvt seems to pick up on the built-in Luxi fonts automatically.

On my low end box, the TTF fonts are obviously a GREAT improvement over the standard X11 fonts, but I'm not doing anything special like using xorg or going bananas with font hinting, lcd filtering etc.  Changing foreground and background colors to less contrasty combinations tends to hide small imperfections, such as a black foreground on a gray background.  Not pretty, but gets the job done!

andyj:
I tried a bunch of different fonts while I was building and testing rxvt. Did you try the Hack font yet? The differences between fonts aren't too significant at small sizes, but in the range you're using it really makes a difference.

patrikg:
When font speaking, i like the Terminus a lot.
Sorry for take this thread. And sorry it not the ttf one, it is fixed one.

http://terminus-font.sourceforge.net/

PDP-8:
UGH!  Remember how I said to take it easy with the font line?  Heh, if you leave out the "=" sign when choosing a size, you won't get any errors, but you'll just get the default size.

Let's try this again, but this time with the = sign:

--- Code: ---URxvt*font: xft:Luxi Mono: size=16
--- End code ---

want it bold?

--- Code: ---URxvt*font: xft:Luxi Mono:style=Bold:size=16
--- End code ---

The point of this for me was to be minimal, and use the fonts already shipped in the image.  Sure I could add more to my liking assuming online connectivity.  Since Luxi TTF already comes with the TC image, I'd like to make the request to change the default from Aterm to Rxvt to make use of it "out of the box" without assuming online capabilities. Not so with Picore.

It's been a fun learning experience knowing when to use xset +fp, mkfontdir, mkfontscale and when it's not needed with built-ins.  And when to use Terminus even IF you have ttf fonts available.

The differences between Tc and Picore in regards to fonts is not insurmountable.  It's been fun whipping them both into shape. :)


PDP-8:
Kind of related:

While doing a lot of vi-foo with my .Xdefaults file changing and testing things, an invisible character crept in.  Rxvt suddenly couldn't resolve the color "black" and changed it to pink!!

What?  The .Xdefaults file *looks* perfect.  What's going on?

Learned this back in my Slackware days - go back through each line, and edit with a true carriage return on each one.

Bingo - now I have black fonts again, even though the heavily edited .Xdefaults file looked perfect to my eyes.  Something crept in or got left out invisibly.

Navigation

[0] Message Index

[#] Next page

Go to full version