help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: ttf can't work on GNU Emacs(X-window)?


From: Peter Dyballa
Subject: Re: ttf can't work on GNU Emacs(X-window)?
Date: Thu, 8 Sep 2005 10:54:32 +0200


Am 08.09.2005 um 07:46 schrieb Richie:

From some web, I
know emacs(xwindow) can only use the fonts which the "xlsfonts" command
shows. So my question now is how to let xlsfonts accept the ttf fonts.

Put the font into, for example, /usr/X11R6/lib/X11/fonts/TTF.

Invoke (sudo) ttfmkfontdir in this directory to create the fonts.dir and fonts.scale files.

Add /usr/X11R6/lib/X11/fonts/TTF/ to the X server's search path for fonts, by

either invoking 'xset +fp /usr/X11R6/lib/X11/fonts/TTF/ ; xset fp rehash' (check with xlsfonts)

or putting /usr/X11R6/lib/X11/fonts/TTF/ into your .xinitrc file where xset is used to adapt the search path for fonts (valid with X11's next launch).


Andale Mono is a Unicode encoded font, so there shouldn't be any problem with missing encodings. OTOH there are versions of ttfmkfontdir and mkfontdir (for PostScript Type 1 and bitmapped fonts) that can create many font encodings for X from one font file:

-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-adobe-standard
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-ibm-cp437
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso10646-1
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-1
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-10
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-13
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-15
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-2
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-3
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-4
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-5
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-iso8859-9
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-koi8-e
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-koi8-r
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-koi8-u
-monotype-andale mono-medium-r-normal--0-0-0-0-c-0-microsoft-cp1252
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-ascii-0
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-fcd8859-15
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso10646-1
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-1
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-10
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-15
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-2
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-3
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-4
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-5
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-7
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-9
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-koi8-r
-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-koi8-ru


If you have GTK2+ enabled X clients be aware that they'll launch quite late: GTK2 first produces fonts.cache files ...


--
Mit friedvollen Grüßen

  Pete

"Eternity is a terrible thought. I mean, where's it going to end?"
                                                   - Tom Stoppard





reply via email to

[Prev in Thread] Current Thread [Next in Thread]