A big *THANK YOU* to
bmarkus for providing the mkfontdir.tcz available for picore!
I needed a way to get a slightly larger aterm font but no amount of editing the ~.Xdefaults file would produce any results like they would on X86.
All I needed was to make a new fontdir with my desired font and make X11 aware of it. Here's how I did it. I'm only going to demo just using one font - not the entire store.
Download and install the
mkfontdir.tcz extension in your favorite manner.
We'll start with our home directory, and do operations there:
cd
mkdir fonts
cd fonts
Copy a font that you like into this new fonts directory:
cp /usr/lib/X11/fonts/misc/10x20-ISO8859-1.pcf.gz ~/fonts
Now run mkfontdir (from within your new fonts directory) AND inform X11 all about it with xset:
mkfontdir
xset fp+ $HOME/fonts
xset fp rehash
If you want this to be persistent across reboots (I'm sure you do!), then be sure to edit your
~/.xsession file and add those two xset lines above to it.
Let's use it!
If you cat your ~/fonts/fonts.dir , you'll see the long names associated with the font. Let's use that to edit our ~.Xdefaults file so that Aterm can use it. Change your font assocated with Aterm: (this is for my 10x20 sized font)
Beware: note the double-dashes in the middle of this string between "normal--20" and we edit like so...
Aterm*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1
Exit out of the editor, and when you call up aterm again, I've got my grandpa-sized font!
BUT, what if you want to change fonts back and forth on the fly, by using an *alias* on the command line so you don't have to type out that error-prone long name?
Inside your fonts directory, create a fonts.alias file. (~/fonts/fonts.alias)
Put in your own desired alias, separated by a space, and the actual long name given when you cat the font.dir file. I chose to use the common alias of 10x20 already in place:
fonts.alias (don't forget the double-dash in the middle!)
10x20 -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1
Or, I could have gotten silly with something like this:
owleyes -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1
Want to try it out immediately? Just rehash
xset fp rehash
NOW, if you call up aterm, you can jump back and forth on the commandline between the smaller fixed font and the big 10x20 aliases using either of:
aterm -fn fixed
aterm -fn 10x20
Jumping ahead - I can imagine some might want to do this with the entire existing font structure, but that might be pretty wasteful having fonts being backed up that you'll never use.
Ah, this was one of those blow-my-mind, lean back in my chair and stare moments for me. Finally got that itch scratched! Again, thanks bmarkus for providing the mkfontdir.tcz to make it all possible.