View Full Version : Using True Type fonts

06-08-2003, 03:45 PM
There must be some specific Debian way of doing this, but I suspect that the TrueType Fonts in Debian mini-HOWTO is out of date (last updated in January 2000), for the life of me I can't understand the defoma man pages (and I don't think Gimp or OOo can use defoma anyway).

Using dfontmgr seems to just result in fonts not being loaded into Abiword properly (or abiword crashing on selecting some ttf fonts).

Am I alone in feeling despirited that fonts in Linux are still such a pain?

Any help, ideas, pointers to up to date documentation, etc., welcome! I see someone on the Debian list says to use the Anti Aliasing HOWTO........

06-08-2003, 04:39 PM
Go here (http://feenix.burgiss.net/ldp/fdu/)

06-08-2003, 06:27 PM
Thanks: I'll give it a go!

06-08-2003, 06:32 PM
Hello !

There is a simple way to install windows truetype fonts in knoppix ...
1. create a directory /usr/share/fonts/truetype/win
2. copy your windows truetype fonts into this directory.
3. install ttmkfdir (apt-get install ttmkfdir)
4. go to /usr/share/fonts/truetype/win (being root)
5. type the following line : ttmkfdir > fonts.dir
6. then type : ttmkfdir > fonts.scale
7. Add in your XF86config-4 :
FontPath "/usr/share/fonts/truetype/win"
8. Restart X
9. et Voila !

06-09-2003, 01:07 AM
Well, that's been partially sucessful: I now have all my ttfs in Open Office org, but I can't get them in Gimp :-(.

Is there anything peculiar about the way XF86 - 4 serves fonts to Gimp? Or Debian? I ask because in the past, just doing xset fp+ [path_to_fonts] and xset fp rehash worked just fine. Also because my /etc/X11/XF86Config-4 contains a cryptic reference to Gimp which I've never seen before (all the fonts stuff here just in case I've messed up elsewhere):

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/ttf/western"
FontPath "/usr/share/fonts/ttf/decoratives"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "unix/:7100"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
#FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
#FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
# Additional fonts: Locale, Gimp, TTF...
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
# FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
# FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/ttf/western"
FontPath "/usr/share/fonts/ttf/decoratives"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/truetype/openoffice"
FontPath "/usr/X11R6/lib/X11/fonts/defoma/CID"
FontPath "/usr/X11R6/lib/X11/fonts/defoma/TrueType"

I'd add that the ttfs I want in Gimp are stuff like Harquil, not the plain Jane M$ stuff (I have the "free" "net" ttfs anyway).

06-09-2003, 05:24 AM

got it

ttmkfdir [path]

update-fonts-dir [path] (complains about absolute path, but WTH)

xset fp+ [path]

xset fp rehash

That only took about 6 hours!

Dontcha love ttf in Linux? :roll:

06-09-2003, 08:50 AM
Try this next time.

Go to the KDE Control Center, System Administration, Font Installer, Administrator Mode.

You should then be able to simply select your fonts and they will be autmatically configured and installed.

06-09-2003, 04:25 PM
I might try that later! But doesn't it only work for Kde applications?

BTW, your penguin looks much wiser than mine! :wink:

06-09-2003, 05:43 PM
No it should install system wide. I've used it before and I did a test again last night and installed a new font. I was then sucessfully able to bring it up in Abiword and Open Office. I've got Gome 2.2 installed and fonts FINALLY look good in the Gnome abiword. The key to systemwide instalation is making sure you install it in "adminstrator mode". BTW, the control center always seems to crash at the end of this process, but it doesn't seem to affect the font instalation - it still works despite the crash.

For those new to linux this seems to be a much easier way to install fonts than via the command line. The only problem is that the Font Installer is kind of tucked away in the KDE control center and not many people seem to be aware of it. The only reason I found it is cause some wise penguin told me :-)

06-09-2003, 07:38 PM
Wow! Works fine for me (and the control centre -- I logged in as root and used it from there -- didn't crash) :D