2001-02-21 01:07:01 +00:00
|
|
|
<!doctype linuxdoc system>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
Changelog:
|
2001-02-21 16:33:20 +00:00
|
|
|
210201: Some Corrections
|
2001-02-21 01:07:01 +00:00
|
|
|
130201: First release.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<article>
|
|
|
|
|
|
|
|
<title>TrueType Fonts with XFree86 4.0.x mini-HOWTO
|
|
|
|
<author>Bartek Kostrzewa, <tt/bartek@pt.lu/
|
2001-02-21 16:33:20 +00:00
|
|
|
<date>0.02, 2001-02-21
|
2001-02-21 01:07:01 +00:00
|
|
|
|
|
|
|
<abstract>
|
|
|
|
This mini-HOWTO describes how to use TrueType (*.ttf) fonts with
|
|
|
|
XFree86 4.0.x.
|
|
|
|
</abstract>
|
|
|
|
|
|
|
|
<toc>
|
|
|
|
|
|
|
|
<!-- Begin the document -->
|
|
|
|
|
|
|
|
<sect>Introduction
|
|
|
|
|
|
|
|
<sect1>Copyright
|
|
|
|
|
|
|
|
<p>
|
2001-02-21 16:33:20 +00:00
|
|
|
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.
|
2001-02-21 01:07:01 +00:00
|
|
|
|
|
|
|
Copyright (c) 2001 by Bartek Kostrzewa
|
|
|
|
|
|
|
|
<sect1>Disclaimer
|
|
|
|
<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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Naming of particular products or brands should not be seen as endorsements.
|
|
|
|
|
|
|
|
You are strongly recommended to take a backup of your system before
|
|
|
|
major installation and backups at regular intervals.
|
|
|
|
|
2001-02-21 16:33:20 +00:00
|
|
|
<sect1>News
|
|
|
|
<p>
|
|
|
|
This release cleans up some errors I wrote about Netscape font scaling.
|
|
|
|
This document can be found at:
|
|
|
|
<url url="http://www.linuxdoc.org/HOWTO/mini/TT-XFree86.html">
|
|
|
|
|
2001-02-21 01:07:01 +00:00
|
|
|
<sect1>Credits
|
|
|
|
<p>
|
2001-02-21 16:33:20 +00:00
|
|
|
I'd like to thank Bear Giles for his Debian TTF howto which brought
|
|
|
|
me on the right path :o).
|
|
|
|
|
|
|
|
Of course, credit should also go to the XFree86 crew, and Joerg
|
|
|
|
Pommnitz for writing <tt>ttmkfdir</tt>.
|
|
|
|
|
|
|
|
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.
|
2001-02-21 01:07:01 +00:00
|
|
|
|
|
|
|
<sect1>Translations
|
|
|
|
<p>
|
|
|
|
I currently don't know of any translations of this mini-HOWTO, if you want
|
|
|
|
to make one, just do it and either submit it yourself, or send it to me and
|
|
|
|
I will credit you and publish it.
|
|
|
|
|
|
|
|
Any comments or suggestions can be mailed to my mail address on Nyx:
|
|
|
|
<htmlurl url="mailto:bartek@pt.lu/"
|
|
|
|
name="bartek@pt.lu">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
-->
|
|
|
|
|
|
|
|
<sect>Procedure
|
|
|
|
<p>
|
|
|
|
Get a set of ttf fonts from M$, or some fonts of your own, or
|
|
|
|
just use your windows partition if you have one and do the
|
|
|
|
following as root at the command line:
|
|
|
|
|
|
|
|
<em>
|
|
|
|
<bf>IF</bf> you are using something else than the windows partition method,
|
2001-02-21 16:33:20 +00:00
|
|
|
line 2 will (of course) differ.
|
2001-02-21 01:07:01 +00:00
|
|
|
</em>
|
|
|
|
|
|
|
|
<itemize>
|
|
|
|
<item><tt>mkdir /usr/X11R6/lib/X11/fonts/Truetype</tt>
|
|
|
|
<item><tt>cp /winpartition/windows/fonts/*.ttf /usr/X11R6/lib/X11/fonts/Truetype</tt>
|
|
|
|
<item><tt>cd /usr/X11R6/lib/X11/fonts/Truetype</tt>
|
|
|
|
<item><tt>ttmkfdir > fonts.scale</tt>
|
|
|
|
<item><tt>mkfontdir</tt>
|
|
|
|
</itemize>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
There you go. You will now have all TrueType fonts working. If you want
|
|
|
|
to add fonts, just move/copy those [*.ttf files] into the aforementioned
|
|
|
|
directory, and repeat the process starting from line 3.
|
|
|
|
|
2001-02-21 16:33:20 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
The <tt>mkfontdir</tt> executable should be included with your
|
|
|
|
XFree 4.0.x distribution.
|
|
|
|
|
|
|
|
If you are missing <tt>ttmkfdir</tt>, you can obtain it here:
|
|
|
|
<url url="http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz">
|
2001-02-21 01:07:01 +00:00
|
|
|
|
2001-02-21 16:33:20 +00:00
|
|
|
The latest verion of XFree86 (currently 4.0.2) can be found at:
|
|
|
|
<url url="http://www.xfree86.org">
|
2001-02-21 01:07:01 +00:00
|
|
|
|
|
|
|
</article>
|
|
|
|
|