154 lines
6.1 KiB
HTML
154 lines
6.1 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
|
|
<TITLE>
|
|
TrueType Fonts with XFree86 4.x mini-HOWTO
|
|
</TITLE>
|
|
</HEAD>
|
|
<BODY BGCOLOR=white>
|
|
|
|
<HR>
|
|
<H1>TrueType Fonts with XFree86 4.x mini-HOWTO</H1>
|
|
|
|
<H2>Bartek Kostrzewa, <CODE>bartek_at_spillkescht.lu</CODE></H2>1.5, 2004-06-28
|
|
<P><HR>
|
|
<EM>This mini-HOWTO describes how to use TrueType (*.ttf) fonts with
|
|
XFree86 4.x.</EM>
|
|
<HR>
|
|
<P>
|
|
<H2><A NAME="toc1">1.</A> <A HREF="#s1">Introduction</A></H2>
|
|
|
|
<UL>
|
|
<LI><A HREF="#ss1.1">1.1 Copyright</A>
|
|
<LI><A HREF="#ss1.2">1.2 Disclaimer</A>
|
|
<LI><A HREF="#ss1.3">1.3 News</A>
|
|
<LI><A HREF="#ss1.4">1.4 Credits</A>
|
|
<LI><A HREF="#ss1.5">1.5 Translations</A>
|
|
</UL>
|
|
<P>
|
|
<H2><A NAME="toc2">2.</A> <A HREF="#s2">Procedure</A></H2>
|
|
|
|
<HR>
|
|
<H2><A NAME="s1">1.</A> <A HREF="#toc1">Introduction</A></H2>
|
|
|
|
<H2><A NAME="ss1.1">1.1 Copyright</A>
|
|
</H2>
|
|
|
|
<P>Download, copy and redistribute this text freely. If you do any
|
|
changes, please submit them to me, and I will pass them to the LDP,
|
|
of course, credit will be given.
|
|
<P>Copyright (c) 2001 by Bartek Kostrzewa
|
|
<P>
|
|
<H2><A NAME="ss1.2">1.2 Disclaimer</A>
|
|
</H2>
|
|
|
|
<P>Use the information in this document at your own risk. I disavow any
|
|
potential liability for the contents of this document. Use of the
|
|
concepts, examples, and/or other content of this document is entirely
|
|
at your own risk.
|
|
<P>All copyrights are owned by their owners, unless specifically noted
|
|
otherwise. Use of a term in this document should not be regarded as
|
|
affecting the validity of any trademark or service mark.
|
|
<P>Naming of particular products or brands should not be seen as endorsements.
|
|
<P>You are strongly recommended to take a backup of your system before
|
|
major installation and backups at regular intervals.
|
|
<P>
|
|
<H2><A NAME="ss1.3">1.3 News</A>
|
|
</H2>
|
|
|
|
<P>
|
|
<UL>
|
|
<LI>1.5: Change my e-mail adress and modified some X-Free versioning numbers.</LI>
|
|
<LI>0.0.4: Some content added, explaining how to add fontpath's to the XF86Config.</LI>
|
|
<LI>0.0.3: Due to possible legal problems some modifications were done.</LI>
|
|
<LI>0.0.2: This release cleans up some errors I wrote about Netscape font scaling.</LI>
|
|
<LI>0.0.1: Initial release.</LI>
|
|
</UL>
|
|
<P>This document can be found at:
|
|
<A HREF="http://www.linuxdoc.org/HOWTO/mini/TT-XFree86.html">http://www.linuxdoc.org/HOWTO/mini/TT-XFree86.html</A><P>
|
|
<H2><A NAME="ss1.4">1.4 Credits</A>
|
|
</H2>
|
|
|
|
<P>I'd like to thank Bear Giles for his Debian TTF howto which brought
|
|
me on the right path :o).
|
|
<P>Of course, credit should also go to the XFree86 crew for the enormous
|
|
effort of maintaining XFree86, and Joerg Pommnitz for writing <CODE>ttmkfdir</CODE>.
|
|
<P>Also I'd like to pass a BIG big thank you to the LDP for building and
|
|
maintaining a network of helping hands which already guided many
|
|
people through the hard to overcome the learning curve Linux has.
|
|
<P>Thanks to Joe Meadows for notifying me that this howto probably described
|
|
an illegal act in version 0.0.2 and earlier.
|
|
<P>
|
|
<H2><A NAME="ss1.5">1.5 Translations</A>
|
|
</H2>
|
|
|
|
<P>Apparently some translations of this document have been written but
|
|
I don't know where to find them since the authors did not contact me,
|
|
(no wonder, I did not update since 2001). Please do continue to translate.
|
|
<P>Any comments or suggestions can be mailed to my mail address:
|
|
<A HREF="mailto:bartek_at_spillkescht.lu/">bartek_at_spillkescht.lu</A><P>
|
|
<P>
|
|
<HR>
|
|
<H2><A NAME="s2">2.</A> <A HREF="#toc2">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 > 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 "/yourwinpartition/windows/fonts/"</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 > 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>
|
|
</BODY>
|
|
</HTML>
|