PDA

View Full Version : HOWTO: Install true type fonts in Knoppix



aay
11-16-2002, 03:25 AM
I submitted this howto over at the linuxtag site perhaps some in this forum will benifit from it as well. I've had a lot of trouble with fonts and linux in the past but getting nice true type fonts is no problem in Knoppix thanks to the KDE font installer. Here's what you do:

Open the KDE Control Center

Go to "System"

Go to "Font Installer"

On the "Install From" side of the screen locate the directory which contains the fonts you want to install and select said fonts.

Click "Install"

Click "Yes" to the popup which asks if you want to copy fonts to X11 fonts folder (/home/knoppix/.kde/share/fonts)

Click "Apply" on the "Install To" side of the window.

Click "Yes" to the "Apply system changes now?" popup.

You're done.

For some reason the Control Center locks up on my system after this so you might want to use xkill to get rid of it.

If you save your changes to a floppy (taskbar /KNOPPIX/Configure/Save KNOPPIX configuration), you will have access to these fonts when you reboot as long as you type "knoppix floppyconfig" at bootup.

I've done this proceedure both from the cdrom and from a hd install and it works great. If you want to do this this on a version of Knoppix on your HD and make the fonts availavle system wide just run the Control Center (kcontrol) as root and do the same thing.

vedran
11-16-2002, 03:41 PM
Yes, but fonts are still very ugly (have you tried Microsoft Arial font?)

I'm customizing Knoppix on my PC and would like to improve the way fonts look. Any hints?

aay
11-16-2002, 09:10 PM
Yes, but fonts are still very ugly (have you tried Microsoft Arial font?)

I'm customizing Knoppix on my PC and would like to improve the way fonts look. Any hints?

Although I'm a native English speaker, I needed to install some Greek and Hebrew fonts. They actually appeard to be nicely anti-aliased using the method above. I haven't tried this with any other fonts yet (i.e. Arial).

One thing to note: if you use the method outlined above, KDE is going to install the fonts for the local user (knoppix) at /home/knoppix/.kde/share/fonts. This works well if you want to boot from the Knoppix CD. If you save your changes to a floppy (see floppy customization above), then you won't have to go through the whole process again when you reboot from the CD. You may want to try installing Arial using this method. Since it installs locally, it should override the way Arial is otherwise rendered and so you may get nicer anti-aliasing.

If you have Knoppix installed on your hard drive, just run kcontrol as root or use and you should be able to try this out on a system wide basis. You might want to try uninstalling and reinstalling the fonts this way to see what sort of anti-aliasing you can get. The fonts I've installed so far look terriffic in KDE and in some WINE applications I'm running.

Rember to enable anti-aliasing in the KDE control center under Look & Feel/Fonts. Before you install the fonts with the Font Installer, you may also want to click on the anti-aliasing tab at the top and enable sub-pixel hinting.

I'm tied up this weekend so probably won't have a chance to mess with this untill later, but post your success/failures and wheter or not anti-aliasing is working for you.

vedran
11-17-2002, 07:29 PM
Ok, I run Knoppix from CD. I've installed Arial using the procedure you described, from my Win98SE partition. Here is a screenshot from KWord comparing the built-in font Helvetica and Arial, no anti-aliasing:
http://members.smartnet.ba/vedran/snapshot1.png
Here is the same file, with anti-aliasing:
http://members.smartnet.ba/vedran/snapshot2.png

This is a shot of this same file opened with my Red Hat 7.3, no anti-aliasing:
http://members.smartnet.ba/vedran/snimak1.png
For some unknown reason, I can't get aa to work in RH 7.3. Now, as you can see, in RH Arial is actually much prettier than Helvetica, which is good since Helvetica is a bitmap font and it's not available in some sizes (10, 13, etc.) While in Knoppix it's the other way. AA helps a bit, but it makes everything fuzzy and blurred and gives me a headache. Also it doesn't really solve some key issues, such as: in size 9 r is about as tall as the horizontal line in A, while with size 11 it's much taller; size 11 appears to be taller than size 12; there's a small pit on top of O and Q; size 11 A appears to be bold; etc. etc.
This is rather surprising, since people claim that font rendering has improved in RH 8.0?

Some people say that this is the trick:
http://www.cs.mcgill.ca/~dchest/xfthack/
Maybe someone should add this to Knoppix?

aay
11-19-2002, 05:57 AM
To me, Arial in the seconc pic certainly is improved in terms of anti-ailising. I can't speak to the fuzziness/headache factor. Regarding the XFT hack, it would be nice if it was included in Knoppix. To me it looks like this makes a dramatic improvement in the appearance of the fonts.

UnderScore
11-19-2002, 08:31 PM
- edited -
see my post in this Topic