[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fce275e] | 7 | <!ENTITY freetype2-download-http "&sourceforge-repo;/freetype/freetype-&freetype2-version;.tar.bz2">
|
---|
[fb2e525] | 8 | <!ENTITY freetype2-download-ftp "&gentoo-ftp-repo;/freetype-&freetype2-version;.tar.bz2">
|
---|
[c9dcd62] | 9 | <!ENTITY freetype2-md5sum "2a7a314927011d5030903179cf183be0">
|
---|
[127da0c] | 10 | <!ENTITY freetype2-size "1.7 MB">
|
---|
[ff7487e1] | 11 | <!ENTITY freetype2-buildsize "27 MB (includes installing additional documentation)">
|
---|
[c9dcd62] | 12 | <!ENTITY freetype2-time "0.2 SBU">
|
---|
[98f3c4f7] | 13 |
|
---|
[c9dcd62] | 14 | <!ENTITY freetype2-doc-version "2.5.5">
|
---|
[98f3c4f7] | 15 | <!ENTITY freetype2-doc-download-http "&sourceforge-repo;/freetype/freetype-doc-&freetype2-doc-version;.tar.bz2">
|
---|
| 16 | <!ENTITY freetype2-doc-download-ftp "&gentoo-ftp-repo;/freetype-doc-&freetype2-doc-version;.tar.bz2">
|
---|
[c9dcd62] | 17 | <!ENTITY freetype2-doc-md5sum "6ffe7865943b3dfd6d04546ab7776a8f">
|
---|
[127da0c] | 18 | <!ENTITY freetype2-doc-size "108 KB">
|
---|
[52d29f7] | 19 | ]>
|
---|
| 20 |
|
---|
[419dd50] | 21 | <sect1 id="freetype2" xreflabel="FreeType-&freetype2-version;">
|
---|
[09da197] | 22 | <?dbhtml filename="freetype2.html"?>
|
---|
| 23 |
|
---|
| 24 | <sect1info>
|
---|
| 25 | <othername>$LastChangedBy$</othername>
|
---|
| 26 | <date>$Date$</date>
|
---|
| 27 | </sect1info>
|
---|
| 28 |
|
---|
| 29 | <title>FreeType-&freetype2-version;</title>
|
---|
| 30 |
|
---|
| 31 | <indexterm zone="freetype2">
|
---|
| 32 | <primary sortas="a-FreeType">FreeType</primary>
|
---|
| 33 | </indexterm>
|
---|
| 34 |
|
---|
| 35 | <sect2 role="package">
|
---|
| 36 | <title>Introduction to FreeType2</title>
|
---|
| 37 |
|
---|
[70c0ef4] | 38 | <para>
|
---|
| 39 | The <application>FreeType2</application> package contains
|
---|
| 40 | a library which allows applications to properly render
|
---|
| 41 | <application>TrueType</application> fonts.
|
---|
| 42 | </para>
|
---|
[09da197] | 43 |
|
---|
[57945e0] | 44 | &lfs77_checked; &gcc5_checked;
|
---|
[95e6446] | 45 |
|
---|
[09da197] | 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
[70c0ef4] | 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&freetype2-download-http;"/>
|
---|
| 51 | </para>
|
---|
[09da197] | 52 | </listitem>
|
---|
[f0dfc28] | 53 | <!-- <listitem>
|
---|
[70c0ef4] | 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&freetype2-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
[f0dfc28] | 57 | </listitem> -->
|
---|
[09da197] | 58 | <listitem>
|
---|
[70c0ef4] | 59 | <para>
|
---|
| 60 | Download MD5 sum: &freetype2-md5sum;
|
---|
| 61 | </para>
|
---|
[09da197] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[70c0ef4] | 64 | <para>
|
---|
| 65 | Download size: &freetype2-size;
|
---|
| 66 | </para>
|
---|
[09da197] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[70c0ef4] | 69 | <para>
|
---|
| 70 | Estimated disk space required: &freetype2-buildsize;
|
---|
| 71 | </para>
|
---|
[09da197] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[70c0ef4] | 74 | <para>
|
---|
| 75 | Estimated build time: &freetype2-time;
|
---|
| 76 | </para>
|
---|
[09da197] | 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
[9d3c5f1] | 80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
[c6e8734] | 82 | <title>Additional Documentation</title>
|
---|
| 83 | <listitem>
|
---|
[70c0ef4] | 84 | <para>
|
---|
| 85 | Download (HTTP): <ulink url="&freetype2-doc-download-http;"/>
|
---|
| 86 | </para>
|
---|
[c6e8734] | 87 | </listitem>
|
---|
[f0dfc28] | 88 | <!-- <listitem>
|
---|
[70c0ef4] | 89 | <para>
|
---|
| 90 | Download (FTP): <ulink url="&freetype2-doc-download-ftp;"/>
|
---|
| 91 | </para>
|
---|
[f0dfc28] | 92 | </listitem> -->
|
---|
[c6e8734] | 93 | <listitem>
|
---|
[70c0ef4] | 94 | <para>
|
---|
| 95 | Download MD5 sum: &freetype2-doc-md5sum;
|
---|
| 96 | </para>
|
---|
[c6e8734] | 97 | </listitem>
|
---|
[bccbdaea] | 98 | <listitem>
|
---|
[70c0ef4] | 99 | <para>
|
---|
| 100 | Download size: &freetype2-doc-size;
|
---|
| 101 | </para>
|
---|
[9d3c5f1] | 102 | </listitem>
|
---|
| 103 | </itemizedlist>
|
---|
| 104 |
|
---|
[5edcd4b] | 105 | <bridgehead renderas="sect3">FreeType2 Dependencies</bridgehead>
|
---|
| 106 |
|
---|
| 107 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 108 | <para role="recommended">
|
---|
[d8377ddb] | 109 | <xref linkend="which"/>,
|
---|
| 110 | <xref linkend="harfbuzz"/>,
|
---|
| 111 | (first, install without it, after it is installed, reinstall
|
---|
| 112 | <xref linkend="freetype2"/>), and
|
---|
[5edcd4b] | 113 | <xref linkend="libpng"/>
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
[1039de3] | 116 | <para condition="html" role="usernotes">User Notes:
|
---|
[70c0ef4] | 117 | <ulink url="&blfs-wiki;/freetype2"/>
|
---|
| 118 | </para>
|
---|
[09da197] | 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="installation">
|
---|
| 122 | <title>Installation of FreeType2</title>
|
---|
| 123 |
|
---|
[70c0ef4] | 124 | <para>
|
---|
| 125 | If you downloaded the additional documentation, unpack it into the
|
---|
| 126 | source tree using the following command:
|
---|
| 127 | </para>
|
---|
[9d3c5f1] | 128 |
|
---|
[5edcd4b] | 129 | <screen><userinput>tar -xf ../freetype-doc-&freetype2-doc-version;.tar.bz2 --strip-components=2 -C docs</userinput></screen>
|
---|
[9d3c5f1] | 130 |
|
---|
[70c0ef4] | 131 | <para>
|
---|
| 132 | Install <application>FreeType2</application> by running the following
|
---|
| 133 | commands:
|
---|
| 134 | </para>
|
---|
[09da197] | 135 |
|
---|
[5edcd4b] | 136 | <screen><userinput>sed -i -e "/AUX.*.gxvalid/s@^# @@" \
|
---|
| 137 | -e "/AUX.*.otvalid/s@^# @@" \
|
---|
[127da0c] | 138 | modules.cfg &&
|
---|
[98f3c4f7] | 139 |
|
---|
[5edcd4b] | 140 | sed -ri -e 's:.*(#.*SUBPIXEL.*) .*:\1:' \
|
---|
[127da0c] | 141 | include/config/ftoption.h &&
|
---|
[98f3c4f7] | 142 |
|
---|
[127da0c] | 143 | ./configure --prefix=/usr --disable-static &&
|
---|
[09da197] | 144 | make</userinput></screen>
|
---|
| 145 |
|
---|
[70c0ef4] | 146 | <para>
|
---|
| 147 | This package does not come with a test suite.
|
---|
| 148 | </para>
|
---|
[09da197] | 149 |
|
---|
[70c0ef4] | 150 | <para>
|
---|
| 151 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 152 | </para>
|
---|
[09da197] | 153 |
|
---|
[9d3c5f1] | 154 | <screen role="root"><userinput>make install &&
|
---|
| 155 | install -v -m755 -d /usr/share/doc/freetype-&freetype2-version; &&
|
---|
[90ba9f5] | 156 | cp -v -R docs/* /usr/share/doc/freetype-&freetype2-version;</userinput></screen>
|
---|
[09da197] | 157 |
|
---|
| 158 | </sect2>
|
---|
| 159 |
|
---|
[2ecf9558] | 160 | <sect2 role="commands">
|
---|
| 161 | <title>Command Explanations</title>
|
---|
| 162 |
|
---|
[70c0ef4] | 163 | <para>
|
---|
[98f3c4f7] | 164 | <command>sed -e ...</command>:
|
---|
| 165 | First command enables GX/AAT and OpenType table validation and second
|
---|
[caa347d] | 166 | command enables Subpixel Rendering and Subpixel Hinting in order to
|
---|
[98f3c4f7] | 167 | improve font rendering. Note that Subpixel Rendering may have patent issues.
|
---|
[caa347d] | 168 | Be sure to read the <literal>'Other patent issues'</literal> part of
|
---|
[70c0ef4] | 169 | <ulink url="http://www.freetype.org/patents.html"/> before enabling this
|
---|
| 170 | option.
|
---|
| 171 | </para>
|
---|
| 172 |
|
---|
| 173 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 174 | href="../../xincludes/static-libraries.xml"/>
|
---|
[2ecf9558] | 175 |
|
---|
| 176 | </sect2>
|
---|
| 177 |
|
---|
[09da197] | 178 | <sect2 role="content">
|
---|
| 179 | <title>Contents</title>
|
---|
| 180 |
|
---|
| 181 | <segmentedlist>
|
---|
[9bd60d4] | 182 | <segtitle>Installed Program</segtitle>
|
---|
| 183 | <segtitle>Installed Library</segtitle>
|
---|
[90ba9f5] | 184 | <segtitle>Installed Directories</segtitle>
|
---|
[9bd60d4] | 185 |
|
---|
| 186 | <seglistitem>
|
---|
[70c0ef4] | 187 | <seg>
|
---|
| 188 | freetype-config
|
---|
| 189 | </seg>
|
---|
| 190 | <seg>
|
---|
| 191 | libfreetype.so
|
---|
| 192 | </seg>
|
---|
| 193 | <seg>
|
---|
| 194 | /usr/include/freetype2 and
|
---|
| 195 | /usr/share/doc/freetype-&freetype2-version;
|
---|
| 196 | </seg>
|
---|
[9bd60d4] | 197 | </seglistitem>
|
---|
[09da197] | 198 | </segmentedlist>
|
---|
| 199 |
|
---|
| 200 | <variablelist>
|
---|
| 201 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 202 | <?dbfo list-presentation="list"?>
|
---|
| 203 | <?dbhtml list-presentation="table"?>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="freetype-config">
|
---|
| 206 | <term><command>freetype-config</command></term>
|
---|
| 207 | <listitem>
|
---|
[70c0ef4] | 208 | <para>
|
---|
| 209 | is used to get <application>FreeType</application> compilation
|
---|
| 210 | and linking information.
|
---|
| 211 | </para>
|
---|
[09da197] | 212 | <indexterm zone="freetype2 freetype-config">
|
---|
| 213 | <primary sortas="b-freetype-config">freetype-config</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
| 218 | <varlistentry id="libfreetype">
|
---|
[efdbb27] | 219 | <term><filename class="libraryfile">libfreetype.so</filename></term>
|
---|
[09da197] | 220 | <listitem>
|
---|
[70c0ef4] | 221 | <para>
|
---|
| 222 | contains functions for rendering various font types, such
|
---|
| 223 | as TrueType and Type1.
|
---|
| 224 | </para>
|
---|
[09da197] | 225 | <indexterm zone="freetype2 libfreetype">
|
---|
[70c0ef4] | 226 | <primary sortas="c-libfreetype">libfreetype.so</primary>
|
---|
[09da197] | 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
| 231 | </variablelist>
|
---|
| 232 |
|
---|
| 233 | </sect2>
|
---|
[19e9cee] | 234 |
|
---|
| 235 | </sect1>
|
---|