<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ <!ENTITY % general-entities SYSTEM "../../general.ent"> %general-entities; <!ENTITY x7fonts-download-http "&xorg-download-http;/font/"> <!ENTITY x7fonts-download-ftp "&xorg-download-ftp;/font/"> <!ENTITY x7fonts-size "3.0 MB"> <!ENTITY x7fonts-buildsize "8.8 MB"> <!ENTITY x7fonts-time "0.1 SBU"> <!ENTITY encodings-version "1.0.5"> <!ENTITY encodings-md5sum "bbae4f247b88ccde0e85ed6a403da22a"> <!ENTITY font-adobe-utopia-type1-version "1.0.4"> <!ENTITY font-adobe-utopia-type1-md5sum "fcf24554c348df3c689b91596d7f9971"> <!ENTITY font-alias-version "1.0.4"> <!ENTITY font-alias-md5sum "0497de0176a0dfa5fac2b0552a4cf380"> <!ENTITY font-bh-ttf-version "1.0.3"> <!ENTITY font-bh-ttf-md5sum "e8ca58ea0d3726b94fe9f2c17344be60"> <!ENTITY font-bh-type1-version "1.0.3"> <!ENTITY font-bh-type1-md5sum "53ed9a42388b7ebb689bdfc374f96a22"> <!ENTITY font-ibm-type1-version "1.0.3"> <!ENTITY font-ibm-type1-md5sum "bfb2593d2102585f45daa960f43cb3c4"> <!ENTITY font-misc-ethiopic-version "1.0.4"> <!ENTITY font-misc-ethiopic-md5sum "4ee18ab6c1edf636b8e75b73e6037371"> <!ENTITY font-util-version "1.3.2"> <!ENTITY font-util-md5sum "3d6adb76fdd072db8c8fae41b40855e8"> <!ENTITY font-xfree86-type1-version "1.0.4"> <!ENTITY font-xfree86-type1-md5sum "3eeb3fb44690b477d510bbd8f86cf5aa"> ]> <sect1 id="xorg7-font" xreflabel="Xorg Fonts"> <?dbhtml filename="x7font.html"?> <sect1info> <date>$Date$</date> </sect1info> <title>Xorg Fonts</title> <indexterm zone="xorg7-font"> <primary sortas="a-xorg7-font">Xorg Fonts</primary> </indexterm> <sect2 role="package"> <title>Introduction to Xorg Fonts</title> <para> The <application>Xorg</application> font packages provide some scalable fonts and supporting packages for <application>Xorg</application> applications. Many people will want to install other TTF or OTF fonts in addition to, or instead of, these. Some are listed at <xref linkend="TTF-and-OTF-fonts"/>. </para> &lfs101_checked; <bridgehead renderas="sect3">Package Information</bridgehead> <itemizedlist spacing="compact"> <listitem> <para> Download (HTTP): <ulink url="&x7fonts-download-http;"/> </para> </listitem> <listitem> <para> Download (FTP): <ulink url="&x7fonts-download-ftp;"/> </para> </listitem> <listitem> <para> Download size: &x7fonts-size; </para> </listitem> <listitem> <para> Estimated disk space required: &x7fonts-buildsize; </para> </listitem> <listitem> <para> Estimated build time: &x7fonts-time; </para> </listitem> </itemizedlist> <bridgehead renderas="sect3">Xorg Fonts Dependencies</bridgehead> <bridgehead renderas="sect4">Required</bridgehead> <para role="required"> <xref linkend="xcursor-themes"/> </para> <para condition="html" role="usernotes">User Notes: <ulink url='&blfs-wiki;/Xorg7Fonts'/></para> </sect2> <sect2> <title>Downloading Xorg Fonts</title> <para> First, create a list of files to be downloaded. This file will also be used to verify the integrity of the downloads when complete: </para> <screen><userinput>cat > font-&xorg-version;.md5 << "EOF" <literal>&font-util-md5sum; font-util-&font-util-version;.tar.bz2 &encodings-md5sum; encodings-&encodings-version;.tar.bz2 &font-alias-md5sum; font-alias-&font-alias-version;.tar.bz2 &font-adobe-utopia-type1-md5sum; font-adobe-utopia-type1-&font-adobe-utopia-type1-version;.tar.bz2 &font-bh-ttf-md5sum; font-bh-ttf-&font-bh-ttf-version;.tar.bz2 &font-bh-type1-md5sum; font-bh-type1-&font-bh-type1-version;.tar.bz2 &font-ibm-type1-md5sum; font-ibm-type1-&font-ibm-type1-version;.tar.bz2 &font-misc-ethiopic-md5sum; font-misc-ethiopic-&font-misc-ethiopic-version;.tar.bz2 &font-xfree86-type1-md5sum; font-xfree86-type1-&font-xfree86-type1-version;.tar.bz2</literal> EOF</userinput></screen> <para> To download the needed files using <application>wget</application>, use the following commands: </para> <screen><userinput>mkdir font && cd font && grep -v '^#' ../font-&xorg-version;.md5 | awk '{print $2}' | wget -i- -c \ -B &xorg-download-http;/font/ && md5sum -c ../font-&xorg-version;.md5</userinput></screen> </sect2> <sect2 role="installation"> <title>Installation of Xorg Fonts</title> &as_root; <para> First, start a subshell that will exit on error: </para> <screen><userinput>bash -e</userinput></screen> <para> Install all of the packages by running the following commands: </para> <screen><userinput>for package in $(grep -v '^#' ../font-&xorg-version;.md5 | awk '{print $2}') do packagedir=${package%.tar.bz2} tar -xf $package pushd $packagedir ./configure $XORG_CONFIG make as_root make install popd as_root rm -rf $packagedir done</userinput></screen> <para> Finally, exit the shell that was started earlier: </para> <screen><userinput>exit</userinput></screen> <para> When all of the fonts have been installed, the system must be configured so that <application>Fontconfig</application> can find the TrueType fonts since they are outside of the default search path of <filename class="directory">/usr/share/fonts</filename>. Make symlinks to the <application>Xorg</application> TrueType font directories by running the following commands as the <systemitem class="username">root</systemitem> user: </para> <screen role="root"><userinput>install -v -d -m755 /usr/share/fonts && ln -svfn $XORG_PREFIX/share/fonts/X11/OTF /usr/share/fonts/X11-OTF && ln -svfn $XORG_PREFIX/share/fonts/X11/TTF /usr/share/fonts/X11-TTF</userinput></screen> </sect2> <sect2 role="content"> <title>Contents</title> <segmentedlist> <segtitle>Installed Programs</segtitle> <segtitle>Installed Libraries</segtitle> <segtitle>Installed Directories</segtitle> <seglistitem> <seg>bdftruncate and ucs2any</seg> <seg>None</seg> <seg><envar>$XORG_PREFIX</envar>/share/fonts</seg> </seglistitem> </segmentedlist> <variablelist> <bridgehead renderas="sect3">Short Descriptions</bridgehead> <?dbfo list-presentation="list"?> <?dbhtml list-presentation="table"?> <varlistentry id="bdftruncate-x7"> <term><command>bdftruncate</command></term> <listitem> <para> generates a truncated BDF font from an ISO 10646-1 encoded BDF font </para> <indexterm zone="xorg7-font bdftruncate-x7"> <primary sortas="b-bdftruncate">bdftruncate</primary> </indexterm> </listitem> </varlistentry> <varlistentry id="ucs2any-x7"> <term><command>ucs2any</command></term> <listitem> <para> generates BDF fonts in any encoding from an ISO 10646-1 encoded BDF font </para> <indexterm zone="xorg7-font ucs2any-x7"> <primary sortas="b-ucs2any">ucs2any</primary> </indexterm> </listitem> </varlistentry> </variablelist> </sect2> </sect1>