I spent alot of time trying to figure this out, and just wanted to put it here for any newcomers to slack.
background: slackware and most gnu/linuci's use 75dpi x 75 dpi fonts. windows uses 96 dpi x 96dpi by default. gnu/linux fonts never looked right to me and as I am new didnt have time to get into the fonts thing. obviously most webpages, etc are built with 96x96 in mind, so to render your webpages better and cleaner, you might find this helpfull.
I found that many people recommend 96x96. Now I got 96x96 to work just fine by my how to below, but found that console fonts were a little wierd looking on my eyes. Knowing that Pat gives you the "100 dpi package" in "X" section when you install slack 10.2 I decided to try out 100 dpi x 100 dpi and so now my KDE, fluxbox look really nice as do my terminals.
Basically be sure you have the x11-fonts-100dpi-6.8.2-noarch-3.tgz package installed off of the cd number 1 of slackware 10.2 If not install them, then in pkgtool -> setup->fontconfig to update your system fonts. Then the following:
Now for math:
25.4 is the conversion factor of inches to millimeters. Apparently X follows the metric system, darn Euro's, LOL
, Oh well .
Example: 1200 x 900 desktop resolution to get 100 dpi by 100 dpi . (edit: you should substitute your x-servers "width x height" into where I show "1200" and "900" respectively if you are not using my desktop resolution that I use of 1200 x 900)
25.4 divided by 100 = 0.254 x 1200 = 304.8 (that's my milimeters for my width)
25.4 divided by 100 = 0.254 x 900 = 228.6 (that's my millimeters for my height)
Now edit your /etc/X11/xorg.conf file (as root you must edit it).
Under "Section "Monitor" you simply add the following then:
also confirm that under section "Files" you have the following line un-commented (e.g. no "#" before this line):
Now save the file.
Restart the X server, and you will notice much nicer fonts.
to verify that you are using 100dpi x 100 dpi you can issue the following command in console:
xdpyinfo | grep "resolution"
And the resulting output will be :
Edit: add current browser tweaks.
fogie@pooter:$ xdpyinfo | grep "resolution"
resolution: 100x100 dots per inch
To force mozilla to render your new fonts (from here):
: config in address bar for regular mozilla works in firefox too, when you get in just search in field for "resolution" and change accordingly.
To tweak opera as root edit your /etc/opera6rc for your new dpi you want.
EDIT: 7/11 ADD QUICK TWEAK GUIDE EXAMPLE FLUXBOX
The wiki for fluxbox for fonts is located at:
However, the long and short of my effort to tweak fonts for fluxbox is as follows, mileage may vary
Now in a file titled:
on line Number 168
I found the following:
and changed it to
I then hit save.
Now when I right click my fluxbox menu I go to "user styles" now I have an entry for BlueFlux, which is the modified one I just edited. Selecting that now utilizes the "Andale-8" font and not size Andale-10.
I also went in later and changed it to some fancy fonts as found in my
folder that KDE utilizes and it worked sweet for the same theme.
You can change the font path in fluxbox by editing line 28 where it says
xset +fp /home/your-username/custom-font-directory
where "custom-font-directory" is a folder with your fonts you have on your pc. I suppose the overall line could go anywhere that you have read access too. tho i haven't tried it.
Important to note:
- if you DO
have anti-aliasing turned on then you WILL get the fancy fonts of size and type that you dictated in the theme.cfg file you have to appear in flux menu's, program borders, etc.
- if you do NOT
have anti-aliasing turned on, then ONLY the size adjustment as described above is the only thing that will change.
- remember doing this tweak only adusts the fonts used in the borders of fluxbox, it's "right-click" menu and the bottom toolbar. it will not change the fonts of programs that you run.
-EDIT: 08/14/2006 Once you are done with the above guide, you may find that your fonts are much larger than they were prior to starting this guide. This is normal and to be expected. In KDE use the Fonts section in KDE control center to change your font sizes to your liking. In fluxbox, you edit the font size as I indicated before where you input your font 'type' in the "theme.cfg" I don't know how you change font sizes in XFCE, as I do not use XFCE.