Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Add new fonts to GLTerm Apps
GLTerm is a very nice Terminal replacement, the only one which runs mc flawlessly. Unfortunately, the choice of fonts is quite limited. To use custom fonts in GLTerm you need:
  1. Installed X11 from Apple or through fink
  2. The getbdf utility (click here to download)
Choose a font visible to X11 (the fontname should look like '-adobe-utopia-bold-i-normal-'. These names may be found in the fonts.dir and fonts.alias files under /usr -> X11R6 -> lib -> X11 -> fonts). You may try 'fixed' or 'lucidasanstypewriter-12' aliases to get the default X console font or Lucida, as well.

Start X11, go to the xterm window. You can see if your font name is correct by executing /usr/xterm -fn [fontname]. If you see no error message and you like the font in the new xterm window, you may proceed. Execute getbdf -font [fontname] > [newfontname].bdf in xterm.

Note the redirection (>), getbdf outputs to stdout by default. Copy the resulting .bdf file to /Applications -> GLterm.app -> Contents -> fonts (if your GLterm is in /Applications), either in the console or through Control-Click and Show Package Contents in the Finder. Restart GLterm, go to Preferences -> Appearance, and your custom font should be available in the list.

[Editor's note: I tested this hint, and it works as expected, although it's a bit more complex than expected. The one thing that threw me at first is that there are subdirectories in the "fonts" folder, and it's those subdirectories that hold the fonts.dir and fonts.alias files. To find all the files easily, just type:
 % cd /usr/X11R6/lib/X11/fonts
% find . -name "fonts.*"
This will list all the fonts.dir and fonts.alias files in the various subdirectories. When you're looking in those files, the names of the font is quite long. For example, in the fonts.dir file in the "misc" subdirectory, a random font name is:
-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
You need to use that entire string as the name of your font in order for this to work. When you use the redirect, give it a nice short name!]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[2,796 views]  

Add new fonts to GLTerm | 1 comments | Create New Account
Click here to return to the 'Add new fonts to GLTerm' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Duh!!!
Authored by: m1tk4 on Jan 17, '03 11:34:49PM

The easiest way to get the available fonts list is

xlsfonts

of course...



[ Reply to This | # ]