old-www/HOWTO/TT-XFree86-2.html

79 lines
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>TrueType Fonts with XFree86 4.x mini-HOWTO: Procedure</TITLE>
<LINK HREF="TT-XFree86-1.html" REL=previous>
<LINK HREF="TT-XFree86.html#toc2" REL=contents>
</HEAD>
<BODY>
Next
<A HREF="TT-XFree86-1.html">Previous</A>
<A HREF="TT-XFree86.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2. Procedure</A></H2>
<P>Since my last update a lot has happened but the procedure is still
the same even for X.org. Just adjust the filename if necessary.
<P>Get a set of TrueType fonts (for example from one of the many sites
making fonts availiable for download) and do the following as
root at the command line:
<P>
<UL>
<LI><CODE>mkdir /usr/X11R6/lib/X11/fonts/Truetype</CODE></LI>
<LI><CODE>cp /home/joeuser/your-download-directory/*.ttf /usr/X11R6/lib/X11/fonts/Truetype</CODE></LI>
<LI><CODE>cd /usr/X11R6/lib/X11/fonts/Truetype</CODE></LI>
<LI><CODE>ttmkfdir &gt; fonts.scale</CODE></LI>
<LI><CODE>mkfontdir</CODE></LI>
</UL>
<P>
<P>Now if you have a working installation of Windows on one of your partitions,
you must use the fonts directly from there, copying them to a directory of
your Linux partition is considered *illegal*. First read up on how to get
your windows partition detected and working in Linux (most distributions do
that at installation time, and by default), then as root do the following:
<P>
<UL>
<LI><CODE>cd /etc/X11</CODE>
</LI>
<LI><CODE>your-favourite-editor XF86Config</CODE> In some X
distributions this file is used with a number added to it (for
example: <CODE>XF86Config.4</CODE>)]. You will have to find out which file
your X11R6 uses. You can do this by typing: <CODE>cat /var/log/XFree* | grep "Using config file:"</CODE>
and then instead edit the file stated in the log.
<LI>Now, in the editor find the section <CODE>Files</CODE> and the lines
with <CODE>FontPath</CODE>, just add
<CODE>FontPath &quot;/yourwinpartition/windows/fonts/&quot;</CODE>
at the bottom of this list.
(<CODE>yourwinpartition</CODE> must be replaced with the mount point of
your windows partition)
<LI><CODE>cd /winpartition/windows/fonts</CODE>
<LI><CODE>ttmkfdir &gt; fonts.scale</CODE>
<LI><CODE>mkfontdir</CODE></LI>
</LI>
</LI>
</LI>
</LI>
</UL>
<P>This will make all the fonts on your Windows partition work correctly in X.
<P>
<P>There you go. You will now have all of your TrueType fonts working. If
you want to add fonts, just move/copy those [*.ttf files] into the
aforementioned directory, and repeat the process.
<P>Netscape has problems with these fonts, you have to check the "Allow
Scaling" setting in the Fonts dialog, don't feel distracted by the fact
that it only shows font sizes 0 and 12. Mozilla has no such problems.
Opera neither.
<P>The <CODE>mkfontdir</CODE> executable should be included with your
XFree 4.x distribution.
<P>If you are missing <CODE>ttmkfdir</CODE>, you can obtain it here:
<A HREF="http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz">http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz</A><P>The latest version of XFree86 (currently 4.4.0) can be found at:
<A HREF="http://www.xfree86.org">http://www.xfree86.org</A><P>The latest version of X.org can be found here:
<A HREF="http://freedesktop.org/XOrg">http://freedesktop.org/XOrg</A><P>
<HR>
Next
<A HREF="TT-XFree86-1.html">Previous</A>
<A HREF="TT-XFree86.html#toc2">Contents</A>
</BODY>
</HTML>