After loading DeLi Linux I was a little disappointed with the way things looked. Fonts were WAY too small. So I started poking around to find a way to rectify the situation. I saw this nifty little app in the IceWM Start menu called Font Selector (xfontsel
). Unfortunately, the program is cursed with a name that makes you think it does more than it actually can. The Font Selector simply previews fonts based on a series of properties you select. Initially, it didn’t seem to be all that useful, until I figured out how that font selection syntax was used.
The default GUI fonts are a combination of Helvetica and Courier. The default GUI fonts can be overridden, not surprisingly, by the currently selected theme. Those font settings can then be overridden by a prefoverride
file. NOTE: If you are not using DeLi Linux, your particular installation of IceWM may differ, and as a result, file locations may differ.
cp /usr/share/icewm/preferences ~/.icewm/prefoverride
FYI the ~/.icewm folder contains user-specific settings for IceWM.
Open the file using one of the installed editors (vi, X File Write, Beaver Text Editor, or XElvis). Delete everything before line 753.
Let’s work through an example. On line 106 (previously line 858), you will find a setting for TitleFontName. See anything familiar with the value? It’s the same kind of string value used in the Font Selector.
Start Font Selector and set the fndry to “adobe”, fmly to “helvetica”, wght to “medium”, slant to “r”, and ptSz to “120”. If you happen to be using a theme that uses the default fonts then the font will match the font in the window title.
Let’s say you’d rather have a serif font instead of a sans serif font. Let’s also say that you’d rather make the font larger. So change fmly to “new century schoolbook” and ptSz to “140”. Does it look good?
Now that you’re happy with the font, let’s apply it to the GUI. Switch back to the text editor and change line 106 from:
# TitleFontName="-adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-*-*"
to
TitleFontName="-adobe-new century schoolbook-medium-r-*-*-*-140-*-*-*-*-*-*-*"
Notice that the line is no longer commented out. Save the file.
To see the change, go to the Start menu and select Logout…–>Restart IceWM. You’ll have to click the arrow next to Logout in order to see the submenu. If all goes well, you’ll see the window title font change after IceWM reloads.
If you look through the rest of the file you’ll find many settings that you can override. Repeat the above steps to adjust any GUI font you don’t like. It’s fairly obvious which setting you will need to change by reading the setting’s name. To make things easier you can apply the same change by globally finding and replacing text. Just remember to uncomment any changed settings before restarting IceWM.