Suse 7.0 - truetype installation problems
I've successfully upgraded from Suse 6.3 to Suse 7.0 and want to start using some of the truetype fonts I was using with XFree 3 with the new XFree 4. However, I can't seem to get them installed. The installation is a pristine Suse 7 system straight out of the box. The command XFree86 - showconfig gives the following: adrian@laotzu:/etc/X11 > XFree86 -showconfig XFree86 Version 4.0 / X Window System (protocol Version 11, revision 0, vendor release 6400) Release Date: 8 March 2000 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (see http://www.XFree86.Org/FAQ) Operating System: SuSE Linux [ELF] SuSE Module Loader present and the relevant sections of the XF86Config are Section "Files" FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/local" FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/Type1" FontPath "/usr/X11R6/lib/X11/fonts/URW" FontPath "/usr/X11R6/lib/X11/fonts/Speedo" FontPath "/usr/X11R6/lib/X11/fonts/misc" FontPath "/usr/X11R6/lib/X11/fonts/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/PEX" FontPath "/usr/X11R6/lib/X11/fonts/cyrillic" FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc" FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1" FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/kwintv" FontPath "/usr/X11R6/lib/X11/fonts/truetype" FontPath "/usr/X11R6/lib/X11/fonts/uni" FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc" FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc" FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi" FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1" FontPath "/usr/X11R6/lib/X11/fonts/xtest" ModulePath "/usr/X11R6/lib/modules" RgbPath "/usr/X11R6/lib/X11/rgb" EndSection Section "Module" Load "speedo" Load "extmod" Load "type1" Load "dbe" Load "freetype" EndSection So as far as I can see everything is set up to use the freetype engine and truetype fonts. I successfully installed the freefonts and sharefonts collections and they work fine. To install a truetype font I did the following: 1) Put the font into /usr/X11R6/lib/X11/fonts/truetype 2) made sure that the filename was all lower case (e.g. peigno.ttf) 3) Ran ttmkfdir -o fonts.scale 4) Ran mkfontdir 5) Now I have a fonts.dir file which looks fine, i.e. 2 peigno.ttf -2Rebels-Peignot-medium-r-normal--0-0-0-0-p-0-ascii-0 peigno.ttf -2Rebels-Peignot-medium-r-normal--0-0-0-0-p-0-iso8859-1 6) If I try to run xset fp+ /usr/X11R6/lib/X11/fonts/truetype then I get the following error: adrian@laotzu:~ > xset fp+ /usr/X11R6/lib/X11/fonts/truetype xset: bad font path element (#37), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax 7) xset q returns the following for the font path: Font Path: /usr/X11R6/lib/X11/fonts/75dpi:unscaled,/usr/X11R6/lib/X11/fonts/local,/usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/URW,/usr/X11R6/lib/X11/fonts/Speedo,/usr/X11R6/lib/X11/fonts/misc,/usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi,/usr/X11R6/lib/X11/fonts/latin2/75dpi,/usr/X11R6/lib/X11/fonts/latin2/100dpi,/usr/X11R6/lib/X11/fonts/uni,/usr/X11R6/lib/X11/fonts/freefont,/usr/X11R6/lib/X11/fonts/sharefont which does NOT have the truetype directory in it, even though it is in the XF86Config file. So where am I screwing up? Any suggestions from those who have truetype working with Suse 7 would be much appreciated since I've been banging my head on this for a couple of days now. Many thanks, Adrian Adrian Burd, Dpt. Oceanography, Texas A&M University http://www-ocean.tamu.edu/~ecomodel
Adrian Burd wrote:
I've successfully upgraded from Suse 6.3 to Suse 7.0 and want to start using some of the truetype fonts I was using with XFree 3 with the new XFree 4. However, I can't seem to get them installed. The installation is a pristine Suse 7 system straight out of the box.
Seems you miss a fonts.alias file. This is a previous message on the subject; I followed the advice (including cheationg on the fonts.alias file, and it worked for me... Credit goes to previous poster, Naurgrim <naurgrim@karn.org>, not to me. fx On Mon, 18 Sep 2000, fx wrote:
How do you uses TTF in Xfree 4?
I have just upgraded from a SuSE 6.3 installation with xfstt. I have read this was not needed anymore since Xfree 4 included a ttf server. But how do you configure it?
This one's still fresh in my mind, as I went to 7.0 and XFree86 4 over the weekend. Here's a compressed, and somewhat incomplete, version: dump your *.ttf's into /usr/X11R6/lib/X11/fonts/truetype, or make a new directory. I did /usr/local/fonts. Whatever. Make sure that your /etcX11/XF86Config has a FontPath line for this directory. Goto this directory, and run "ttmkfdir > fonts.scale" and "mkfontdir". These will create your fonts.scale and fonts.dir files. Get a useable fonts.alias file together. I cheated, I grabbed one from: http://www.hazalthorn.freeserve.co.uk/TrueType.html - which is where I puzzled this out. His page is geared towards 6.4, so you don't have to worry about building ttmkfdir and mkfontdir from source, as 7.0 has 'em, or using xfsft, as Xfree86 4 takes care of it. He also has good tips on making Netscape (sweeeet) and SO use TrueTypes. -- Finagle's Creed: Science is true. Don't be misled by facts. -- ______________________ Courtesy of SuSE Linux Kernel 2.2.18 (who Kares?)
participants (2)
-
Adrian Burd
-
fx Fraipont