mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 12:32:13 +08:00
187faa24b1
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8269 af4574ff-66df-0310-9fd7-8a98e5e911e0
175 lines
6.0 KiB
XML
175 lines
6.0 KiB
XML
<?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 freetype2-download-http "&sourceforge-repo;/freetype/freetype-&freetype2-version;.tar.bz2">
|
|
<!ENTITY freetype2-download-ftp "&gentoo-ftp-repo;/freetype-&freetype2-version;.tar.bz2">
|
|
<!ENTITY freetype2-md5sum "e974a82e5939be8e05ee65f07275d7c5">
|
|
<!ENTITY freetype2-size "1.4 MB">
|
|
<!ENTITY freetype2-buildsize "32 MB (includes installing additional documentation)">
|
|
<!ENTITY freetype2-time "0.4 SBU">
|
|
|
|
<!ENTITY freetype2-doc-download-http "&sourceforge-repo;/freetype/freetype-doc-&freetype2-version;.tar.bz2">
|
|
<!ENTITY freetype2-doc-download-ftp "&gentoo-ftp-repo;/freetype-doc-&freetype2-version;.tar.bz2">
|
|
<!ENTITY freetype2-doc-md5sum "2788beb4e1ee01bad8ed9978c0630e86">
|
|
<!ENTITY freetype2-doc-size "104 KB">
|
|
]>
|
|
|
|
<sect1 id="freetype2" xreflabel="FreeType-&freetype2-version;">
|
|
<?dbhtml filename="freetype2.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>FreeType-&freetype2-version;</title>
|
|
|
|
<indexterm zone="freetype2">
|
|
<primary sortas="a-FreeType">FreeType</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to FreeType2</title>
|
|
|
|
<para>The <application>FreeType2</application> package
|
|
contains a library to allow applications to properly render
|
|
<application>TrueType</application> fonts.</para>
|
|
|
|
&lfs65_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&freetype2-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&freetype2-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &freetype2-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &freetype2-size;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated disk space required: &freetype2-buildsize;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Estimated build time: &freetype2-time;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<title>Additional Documentation</title>
|
|
<listitem>
|
|
<para>Download (HTTP): <ulink url="&freetype2-doc-download-http;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download (FTP): <ulink url="&freetype2-doc-download-ftp;"/></para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download MD5 sum: &freetype2-doc-md5sum;</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>Download size: &freetype2-doc-size;</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/freetype2"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of FreeType2</title>
|
|
|
|
<para>If you downloaded the additional documentation, unpack it into the
|
|
source tree using the following command:</para>
|
|
|
|
<screen><userinput>tar -xf ../freetype-doc-&freetype2-version;.tar.bz2 \
|
|
--strip-components=2 -C docs</userinput></screen>
|
|
|
|
<para>Install <application>FreeType2</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>sed -i -r -e 's:.*(#.*BYTE.*) .*:\1:' \
|
|
-e 's:.*(#.*SUBPIX.*) .*:\1:' \
|
|
include/freetype/config/ftoption.h &&
|
|
./configure --prefix=/usr &&
|
|
make</userinput></screen>
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
install -v -m755 -d /usr/share/doc/freetype-&freetype2-version; &&
|
|
cp -v -R docs/* /usr/share/doc/freetype-&freetype2-version;</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><command>sed -i ... 's:.*(#.*BYTE.*) .*:\1:' ...
|
|
's:.*(#.*SUBPIX.*) .*:\1:' include/freetype/config/ftoption.h</command>:
|
|
This command enables the TrueType native bytecode interpreter and LCD
|
|
optimized rendering features. These options result in improved rendering
|
|
of fonts, but may have patent restrictions. Be sure to read
|
|
<ulink url="http://www.freetype.org/patents.html"/> before enabling these
|
|
options.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Program</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>freetype-config</seg>
|
|
<seg>libfreetype.{so,a}</seg>
|
|
<seg>/usr/include/freetype2 and /usr/share/doc/freetype-&freetype2-version;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="freetype-config">
|
|
<term><command>freetype-config</command></term>
|
|
<listitem>
|
|
<para>is used to get <application>FreeType</application> compilation
|
|
and linking information.</para>
|
|
<indexterm zone="freetype2 freetype-config">
|
|
<primary sortas="b-freetype-config">freetype-config</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libfreetype">
|
|
<term><filename class='libraryfile'>libfreetype.{so,a}</filename></term>
|
|
<listitem>
|
|
<para>contains functions for rendering various font types, such
|
|
as TrueType and Type1.</para>
|
|
<indexterm zone="freetype2 libfreetype">
|
|
<primary sortas="c-libfreetype">libfreetype.{so,a}</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|