diff options
Diffstat (limited to 'en_US.ISO8859-1/articles/fonts/article.xml')
-rw-r--r-- | en_US.ISO8859-1/articles/fonts/article.xml | 97 |
1 files changed, 39 insertions, 58 deletions
diff --git a/en_US.ISO8859-1/articles/fonts/article.xml b/en_US.ISO8859-1/articles/fonts/article.xml index 8715ce7311..e2fbf32499 100644 --- a/en_US.ISO8859-1/articles/fonts/article.xml +++ b/en_US.ISO8859-1/articles/fonts/article.xml @@ -1,10 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook XML V4.5-Based Extension//EN" - "../../../share/xml/freebsd45.dtd"> - +<!DOCTYPE article PUBLIC "-//FreeBSD//DTD DocBook XML V5.0-Based Extension//EN" + "../../../share/xml/freebsd50.dtd"> <!-- $FreeBSD$ --> <!-- The FreeBSD Documentation Project --> - <!-- Recently, I wanted to figure out how to use some additional fonts that I had accumulated. I finally figured out *how to do it* from the various manual pages and documentation. Since it might be of use to other users, @@ -21,37 +19,29 @@ it is pretty raw. There are probably better ways to do some of this stuff, and I would welcome being corrected. --> - <!-- The section "Setting a virtual console to 80x60 line mode" was updated to reflect changes in FreeBSD system configuration files by Mark Ovens <mark@ukug.uk.FreeBSD.org> 27/5/00 --> +<article xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en"> + <info><title>Fonts and FreeBSD</title><subtitle>A Tutorial</subtitle> + -<article lang='en'> - <articleinfo> - <title>Fonts and FreeBSD</title> - - <subtitle>A Tutorial</subtitle> + <authorgroup> - <author> - <firstname>Dave</firstname> - - <surname>Bodenstab</surname> - - <affiliation> + <author><personname><firstname>Dave</firstname><surname>Bodenstab</surname></personname><affiliation> <address> <email>imdave@synet.net</email> </address> - </affiliation> - </author> + </affiliation></author> </authorgroup> <pubdate>Wed Aug 7, 1996</pubdate> <releaseinfo>$FreeBSD$</releaseinfo> - <legalnotice id="trademarks" role="trademarks"> + <legalnotice xml:id="trademarks" role="trademarks"> &tm-attrib.freebsd; &tm-attrib.adobe; &tm-attrib.apple; @@ -69,9 +59,9 @@ for switching the syscons display to 80x60 mode, and for using type 1 fonts with the above application programs.</para> </abstract> - </articleinfo> + </info> - <sect1 id="intro"> + <sect1 xml:id="intro"> <title>Introduction</title> <para>There are many sources of fonts available, and one might ask @@ -82,7 +72,7 @@ might be interested.</para> </sect1> - <sect1 id="terminology"> + <sect1 xml:id="terminology"> <title>Basic terminology</title> <para>There are many different font formats and associated font @@ -151,7 +141,7 @@ this font format with FreeBSD.</para> </sect1> - <sect1 id="font-formats"> + <sect1 xml:id="font-formats"> <title>What font formats can I use?</title> <para>Which font file format is useful depends on the application @@ -234,7 +224,7 @@ other than those provided with FreeBSD.</para> </sect1> - <sect1 id="virtual-console"> + <sect1 xml:id="virtual-console"> <title>Setting a virtual console to 80x60 line mode</title> <para>First, an 8x8 font must be loaded. To do this, @@ -272,7 +262,7 @@ <para>References: &man.rc.conf.5;, &man.vidcontrol.1;.</para> </sect1> - <sect1 id="type1-fonts-x11"> + <sect1 xml:id="type1-fonts-x11"> <title>Using type 1 fonts with <application>X11</application></title> <para><application>X11</application> can use either the <filename>.pfa</filename> or the @@ -398,9 +388,7 @@ end readonly def <term>Slant</term> <listitem> - <para><emphasis remap="bf">r</emphasis>oman, <emphasis - remap="bf">i</emphasis>talic, <emphasis - remap="bf">o</emphasis>blique, etc. Since the + <para><emphasis remap="bf">r</emphasis>oman, <emphasis remap="bf">i</emphasis>talic, <emphasis remap="bf">o</emphasis>blique, etc. Since the <emphasis>ItalicAngle</emphasis> is zero, <emphasis>roman</emphasis> will be used.</para> </listitem> @@ -472,7 +460,7 @@ showboat.pfb -type1-showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1 . :wq</userinput> -<lineannotation><filename>fonts.scale</filename> seems to be identical to <filename>fonts.dir</filename>…</lineannotation> +<lineannotation>fonts.scale seems to be identical to fonts.dir…</lineannotation> &prompt.user; <userinput>cp fonts.dir fonts.scale</userinput> <lineannotation>Tell X11 that things have changed</lineannotation> @@ -483,12 +471,11 @@ showboat.pfb -type1-showboat-medium-r-normal-decorative-0-0-0-0-p-0-iso8859-1 </informalexample> <para>References: &man.xfontsel.1;, &man.xset.1;, <citetitle>The X - Windows System in a Nutshell</citetitle>, <ulink - url="http://www.ora.com/">O'Reilly & - Associates</ulink>.</para> + Windows System in a Nutshell</citetitle>, <link xlink:href="http://www.ora.com/">O'Reilly & + Associates</link>.</para> </sect1> - <sect1 id="type1-fonts-ghostscript"> + <sect1 xml:id="type1-fonts-ghostscript"> <title>Using type 1 fonts with Ghostscript</title> <para><application>Ghostscript</application> references a font via its <filename>Fontmap</filename> @@ -532,7 +519,7 @@ GS><userinput>quit</userinput></screen> <application>Ghostscript 4.01</application> distribution</para> </sect1> - <sect1 id="type1-fonts-groff"> + <sect1 xml:id="type1-fonts-groff"> <title>Using type 1 fonts with Groff</title> <para>Now that the new font can be used by both <application>X11</application> and @@ -566,7 +553,7 @@ GS><userinput>quit</userinput></screen> example:</para> <informalexample> - <screen><lineannotation>Many <filename>.afm</filename> files are in Mac format… ^M delimited lines + <screen><lineannotation>Many .afm files are in Mac format… ^M delimited lines We need to convert them to &unix; style ^J delimited lines</lineannotation> &prompt.user; <userinput>cd /tmp</userinput> &prompt.user; <userinput>cat /usr/local/share/fonts/type1/showboat.afm | @@ -594,7 +581,7 @@ We need to convert them to &unix; style ^J delimited lines</lineannotation> the groff font file as illustrated:</para> <informalexample> - <screen><lineannotation>Create the <filename>.pfa</filename> font file</lineannotation> + <screen><lineannotation>Create the .pfa font file</lineannotation> &prompt.user; <userinput>pfbtops /usr/local/share/fonts/type1/showboat.pfb >showboat.pfa</userinput></screen> </informalexample> @@ -658,7 +645,7 @@ EOF</userinput> &man.groff.font.5;, &man.groff.char.7;, &man.pfbtops.1;.</para> </sect1> - <sect1 id="convert-truetype"> + <sect1 xml:id="convert-truetype"> <title>Converting TrueType fonts to a groff/PostScript format for groff</title> @@ -675,8 +662,7 @@ EOF</userinput> allows conversion of a TrueType font to an ascii font metric (<filename>.afm</filename>) file.</para> - <para>Currently available at <ulink - url="http://sunsite.icm.edu.pl/pub/GUST/contrib/BachoTeX98/ttf2pf/"></ulink>. + <para>Currently available at <uri xlink:href="http://sunsite.icm.edu.pl/pub/GUST/contrib/BachoTeX98/ttf2pf/">http://sunsite.icm.edu.pl/pub/GUST/contrib/BachoTeX98/ttf2pf/</uri>. Note: These files are PostScript programs and must be downloaded to disk by holding down the <keycap>Shift</keycap> key when clicking on the link. @@ -752,7 +738,7 @@ EOF</userinput> <para>Create the <filename>.afm</filename> file by typing:</para> - <screen><prompt>%</prompt> <userinput>gs <optional>-dNODISPLAY</optional> <optional>-q</optional> -- ttf2pf.ps <replaceable>TTF_name</replaceable> <optional><replaceable>PS_font_name</replaceable> <optional><replaceable>AFM_name</replaceable></optional></optional></userinput> + <screen><prompt>%</prompt> <userinput>gs -dNODISPLAY -q -- ttf2pf.ps TTF_name PS_font_name AFM_name</userinput> </screen> <para>Where, <replaceable>TTF_name</replaceable> is your @@ -806,7 +792,7 @@ Converting 3of9.ttf to A.pfa and B.afm. directory.)</para> <screen><prompt>%</prompt> <userinput>afmtodit -d DESC -e text.enc file.afm \ - generate/textmap <replaceable>PS_font_name</replaceable></userinput> + generate/textmap PS_font_name</userinput> </screen> <para>Where, <filename>file.afm</filename> is the @@ -841,7 +827,7 @@ Converting 3of9.ttf to A.pfa and B.afm. </orderedlist> </sect1> - <sect1 id="truetype-for-other-programs"> + <sect1 xml:id="truetype-for-other-programs"> <title>Can TrueType fonts be used with other programs?</title> <para>The TrueType font format is used by Windows, Windows 95, and @@ -857,8 +843,7 @@ Converting 3of9.ttf to A.pfa and B.afm. fonts, but I rather doubt many people will be creating documents as a series of raytraced pages :-).</para> - <para>This rather dismal situation may soon change. The <ulink - url="http://www.freetype.org/">FreeType Project</ulink> is + <para>This rather dismal situation may soon change. The <link xlink:href="http://www.freetype.org/">FreeType Project</link> is currently developing a useful set of FreeType tools:</para> <itemizedlist> @@ -867,26 +852,22 @@ Converting 3of9.ttf to A.pfa and B.afm. <para>The <command>xfsft</command> font server for <application>X11</application> can serve TrueType fonts in addition to regular fonts. Though currently in beta, it is said to be quite usable. See - <ulink - url="http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/">Juliusz - Chroboczek's page</ulink> for further information. - Porting instructions for FreeBSD can be found at <ulink - url="http://math.missouri.edu/~stephen/software/">Stephen - Montgomery's software page</ulink>.</para> + <link xlink:href="http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/">Juliusz + Chroboczek's page</link> for further information. + Porting instructions for FreeBSD can be found at <link xlink:href="http://math.missouri.edu/~stephen/software/">Stephen + Montgomery's software page</link>.</para> </listitem> <listitem> <para><application>xfstt</application> is another font server for <application>X11</application>, - available under <ulink url=" - ftp://sunsite.unc.edu/pub/Linux/X11/fonts/"></ulink>.</para> + available under <uri xlink:href=" ftp://sunsite.unc.edu/pub/Linux/X11/fonts/"> ftp://sunsite.unc.edu/pub/Linux/X11/fonts/</uri>.</para> </listitem> <listitem> <para>A program called <command>ttf2bdf</command> can produce BDF files suitable for use in an X environment from TrueType - files. Linux binaries are said to be available from <ulink - url="ftp://crl.nmsu.edu/CLR/multiling/General/"></ulink>.</para> + files. Linux binaries are said to be available from <uri xlink:href="ftp://crl.nmsu.edu/CLR/multiling/General/">ftp://crl.nmsu.edu/CLR/multiling/General/</uri>.</para> </listitem> <listitem> @@ -895,7 +876,7 @@ Converting 3of9.ttf to A.pfa and B.afm. </itemizedlist> </sect1> - <sect1 id="obtaining-additional-fonts"> + <sect1 xml:id="obtaining-additional-fonts"> <title>Where can additional fonts be obtained?</title> <para>Many fonts are available on the Internet. They are either @@ -905,11 +886,11 @@ Converting 3of9.ttf to A.pfa and B.afm. <itemizedlist> <listitem> - <para><ulink url="http://www.simtel.net/"></ulink></para> + <para><uri xlink:href="http://www.simtel.net/">http://www.simtel.net/</uri></para> </listitem> <listitem> - <para><ulink url="http://www.freshmeat.net/"></ulink></para> + <para><uri xlink:href="http://www.freshmeat.net/">http://www.freshmeat.net/</uri></para> </listitem> <listitem> @@ -919,7 +900,7 @@ Converting 3of9.ttf to A.pfa and B.afm. </itemizedlist> </sect1> - <sect1 id="additional-questions"> + <sect1 xml:id="additional-questions"> <title>Additional questions</title> <itemizedlist> |