[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: X Crash after installing msttcorefonts, cabextract, x-ttcidfont-conf



1) Find where msttcorefonts installed them.  Probably
in /usr/share/fonts/truetype, but that's only a guess.

2) Deregister the MS truetype fonts in defoma.

3) Run this script in that directory.  It will change
the file names from upper to lower.

#!/bin/sh
ls * | while read f
 do
   if [ -f $f ]; then
      if [ "$f" != "`echo \"$f\" | tr A-Z a-z`" ];
then
      #Note that 'This' will overwrite 'this'!
      mv -iv "$f" "`echo \"$f\" | tr A-Z a-z`"
      fi
   fi
 done
## eof

Note!!!!! This script will probably mess up your
defoma settings for these files.  So you'll have to
change those.

4) Make the necesary X server files in the directory
the fonts were installed in: fonts.dir, fonts.scale

a) fonts.dir can be produced for truetype fonts using
a program called mkttfdir.
b) fonts.scale can be made my copying fonts.dir and
renaming it fonts.scale

5) Add the proper path to the XF86Config-4 file in
/etc/X11:
Section "Files"
        FontPath        "unix/:7100"                  
 # local font server
        # if the local font server has problems, we
can fall back on these
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath       
"/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath       
"/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/75dpi"
        FontPath        "/usr/lib/X11/fonts/100dpi"
       FontPath       
"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
       FontPath       
"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
        FontPath        "/usr/share/fonts/truetype"
EndSection

6) Make sure the freetype module is loaded.

Section "Module"
        Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "pex5"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
        Load    "xie"
EndSection

7) Kill your Xserver by exiting to a console.

8) Restart your X font server:
/etc/init.d/./xfs restart

9) Restart X: startx and cross fingers and hope it
works.

These above steps I have given you are from memory, so
I might have made a mistake.  Go to the Linux
Documentation project -- tldp.org -- and find the Font
Deuglification (FDU) Howto for perhaps the correct
instructions about creating the fonts.dir files. 
Defoma instructions for debian can be found in the man
pages.  Additionally, there is no guarantee that my
method will work for your newer X server.  The simply
worked for Woody's X-server 4.1.0.1.

William.

--- Wolfgang Pfeiffer <pfei@gmx.net> wrote:
> Thanks for your answer.
> 
> On Wed, 20 Aug 2003, William Crowshaw wrote:
> 
> > I installed these fonts by hand (because ttcidfont
> IMO
> > is a piece of crap) with woody's default X server
>                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ... How ?
> 
> Thanks in anticipation.
> 
> Regards,
> Wolfgang
> 
> 
> > (4.1.0.1?) and it worked.  I think you may need to
> > change the case of your font filenames to lower.
> >
> > --- Wolfgang Pfeiffer <pfei@gmx.net> wrote:
> > > Hi all,
> > >
> > > This is what I have:
> > >
> > > Titanium IV
> > >
> > > ii  x-window-syste 4.2.1-6        X Window
> System
> > > core components
> > > ii  x-window-syste 4.2.1-6        X Window
> System
> > > ii  drm-trunk-modu 2003.05.04-1   Source for the
> DRI
> > > CVS trunk DRM modules
> > > ii  xserver-xfree8 2002.12.05-4   The DRI CVS
> trunk
> > > XFree86 X server
> > > ii  xlibmesa3-dri- 2002.12.05-4   DRI CVS trunk
> > > version of Mesa 3D graphics li
> > > ii  msttcorefonts  1.1.2          Installer for
> > > Microsoft TrueType core fonts
> > > ii  cabextract     0.5-1          a program to
> > > extract Microsoft Cabinet files
> > > ii  x-ttcidfont-co 13             Configure
> TrueType
> > > and CID fonts for X.
> > >
> > >
> > > After installing msttcorefonts, cabextract and
> > > x-ttcidfont-conf yesterday,
> > > the X server is crashing after running xfontsel.
> > >
> > > And it seems it doesn't matter whether I choose
> > > "xtt" or "freetype" when
> > > configuring x-ttcidfont-conf: the X server is
> either
> > > crashing in both
> > > cases. Or, if the server does not crash,
> xfontsel
> > > crashes, rendering it
> > > unusable.
> > >
> > > Lines similar to the following ones in
> > > /var/log/XFree86.0.log seem to be
> > > typical when trying to run xfontsel and choosing
> > > microsoft fonts:
> > >
> > > FreeType: couldn't open face
> > >
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/ai
> > > =0.4:Trebuchet_MS_Bold.ttf: 1
> > > FreeType: couldn't open face
> > >
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/ai
> > > =0.4:Arial_Bold_Italic.ttf: 1
> > > FreeType: couldn't open face
> > >
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/ai
> > > =0.4:Arial_Bold_Italic.ttf: 1
> > > FreeType: couldn't open face
> > >
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/ai
> > > =0.4:Arial_Bold_Italic.ttf: 1
> > >
> > >
> > > My last /var/log/XFree86.0.log:
> > >
> 
>    [ ... ]
> 
> -- 
> Profile, Links:
> http://profiles.yahoo.com/wolfgangpfeiffer
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> debian-powerpc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



Reply to: