[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">
|
---|
[69d725d4] | 9 | <!ENTITY freetype2-md5sum "2413ac3eaf508ada019c63959ea81a92">
|
---|
| 10 | <!ENTITY freetype2-size "1.8 MB">
|
---|
[f98c985] | 11 | <!ENTITY freetype2-buildsize "26 MB (with additional documentation)">
|
---|
[b09ed46a] | 12 | <!ENTITY freetype2-time "0.2 SBU (with additional documentation)">
|
---|
[98f3c4f7] | 13 |
|
---|
[b09ed46a] | 14 | <!ENTITY freetype2-doc-version "&freetype2-version;">
|
---|
[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">
|
---|
[69d725d4] | 17 | <!ENTITY freetype2-doc-md5sum "961d5802bb6085ad91e0ab9fa99fbf39">
|
---|
[fcd1100] | 18 | <!ENTITY freetype2-doc-size "2.1 MB">
|
---|
[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 |
|
---|
[8b0eef4] | 44 | &lfs80_checked;
|
---|
[69d725d4] | 45 | &gcc7_checked;
|
---|
[95e6446] | 46 |
|
---|
[09da197] | 47 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 48 | <itemizedlist spacing="compact">
|
---|
| 49 | <listitem>
|
---|
[70c0ef4] | 50 | <para>
|
---|
| 51 | Download (HTTP): <ulink url="&freetype2-download-http;"/>
|
---|
| 52 | </para>
|
---|
[09da197] | 53 | </listitem>
|
---|
[f0dfc28] | 54 | <!-- <listitem>
|
---|
[70c0ef4] | 55 | <para>
|
---|
| 56 | Download (FTP): <ulink url="&freetype2-download-ftp;"/>
|
---|
| 57 | </para>
|
---|
[f0dfc28] | 58 | </listitem> -->
|
---|
[09da197] | 59 | <listitem>
|
---|
[70c0ef4] | 60 | <para>
|
---|
| 61 | Download MD5 sum: &freetype2-md5sum;
|
---|
| 62 | </para>
|
---|
[09da197] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[70c0ef4] | 65 | <para>
|
---|
| 66 | Download size: &freetype2-size;
|
---|
| 67 | </para>
|
---|
[09da197] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[70c0ef4] | 70 | <para>
|
---|
| 71 | Estimated disk space required: &freetype2-buildsize;
|
---|
| 72 | </para>
|
---|
[09da197] | 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
[70c0ef4] | 75 | <para>
|
---|
| 76 | Estimated build time: &freetype2-time;
|
---|
| 77 | </para>
|
---|
[09da197] | 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
[9d3c5f1] | 81 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 82 | <itemizedlist spacing="compact">
|
---|
[c6e8734] | 83 | <title>Additional Documentation</title>
|
---|
| 84 | <listitem>
|
---|
[70c0ef4] | 85 | <para>
|
---|
| 86 | Download (HTTP): <ulink url="&freetype2-doc-download-http;"/>
|
---|
| 87 | </para>
|
---|
[c6e8734] | 88 | </listitem>
|
---|
| 89 | <listitem>
|
---|
[70c0ef4] | 90 | <para>
|
---|
| 91 | Download MD5 sum: &freetype2-doc-md5sum;
|
---|
| 92 | </para>
|
---|
[c6e8734] | 93 | </listitem>
|
---|
[bccbdaea] | 94 | <listitem>
|
---|
[70c0ef4] | 95 | <para>
|
---|
| 96 | Download size: &freetype2-doc-size;
|
---|
| 97 | </para>
|
---|
[9d3c5f1] | 98 | </listitem>
|
---|
| 99 | </itemizedlist>
|
---|
| 100 |
|
---|
[5edcd4b] | 101 | <bridgehead renderas="sect3">FreeType2 Dependencies</bridgehead>
|
---|
[a9ae025] | 102 |
|
---|
[5edcd4b] | 103 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 104 | <para role="recommended">
|
---|
[a40b6988] | 105 | <xref linkend="harfbuzz"/>
|
---|
[d8377ddb] | 106 | (first, install without it, after it is installed, reinstall
|
---|
[a40b6988] | 107 | <xref linkend="freetype2"/>),
|
---|
| 108 | <xref linkend="libpng"/>, and
|
---|
| 109 | <xref linkend="which"/>
|
---|
[5edcd4b] | 110 | </para>
|
---|
| 111 |
|
---|
[1039de3] | 112 | <para condition="html" role="usernotes">User Notes:
|
---|
[70c0ef4] | 113 | <ulink url="&blfs-wiki;/freetype2"/>
|
---|
| 114 | </para>
|
---|
[09da197] | 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="installation">
|
---|
| 118 | <title>Installation of FreeType2</title>
|
---|
| 119 |
|
---|
[70c0ef4] | 120 | <para>
|
---|
| 121 | If you downloaded the additional documentation, unpack it into the
|
---|
| 122 | source tree using the following command:
|
---|
| 123 | </para>
|
---|
[9d3c5f1] | 124 |
|
---|
[5edcd4b] | 125 | <screen><userinput>tar -xf ../freetype-doc-&freetype2-doc-version;.tar.bz2 --strip-components=2 -C docs</userinput></screen>
|
---|
[9d3c5f1] | 126 |
|
---|
[70c0ef4] | 127 | <para>
|
---|
| 128 | Install <application>FreeType2</application> by running the following
|
---|
| 129 | commands:
|
---|
| 130 | </para>
|
---|
[09da197] | 131 |
|
---|
[df343952] | 132 | <screen><userinput>sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &&
|
---|
[98f3c4f7] | 133 |
|
---|
[fcd1100] | 134 | sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
|
---|
[a9ae025] | 135 | -i include/freetype/config/ftoption.h &&
|
---|
[98f3c4f7] | 136 |
|
---|
[127da0c] | 137 | ./configure --prefix=/usr --disable-static &&
|
---|
[09da197] | 138 | make</userinput></screen>
|
---|
| 139 |
|
---|
[70c0ef4] | 140 | <para>
|
---|
| 141 | This package does not come with a test suite.
|
---|
| 142 | </para>
|
---|
[09da197] | 143 |
|
---|
[70c0ef4] | 144 | <para>
|
---|
| 145 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 146 | </para>
|
---|
[09da197] | 147 |
|
---|
[9d3c5f1] | 148 | <screen role="root"><userinput>make install &&
|
---|
| 149 | install -v -m755 -d /usr/share/doc/freetype-&freetype2-version; &&
|
---|
[90ba9f5] | 150 | cp -v -R docs/* /usr/share/doc/freetype-&freetype2-version;</userinput></screen>
|
---|
[09da197] | 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
[2ecf9558] | 154 | <sect2 role="commands">
|
---|
| 155 | <title>Command Explanations</title>
|
---|
| 156 |
|
---|
[fcd1100] | 157 | <para>
|
---|
[3fdc9b0] | 158 | <command>sed -ri ...</command>: First command enables GX/AAT and OpenType
|
---|
[fcd1100] | 159 | table validation and second command enables Subpixel Rendering. Note that
|
---|
| 160 | Subpixel Rendering may have patent issues. Be sure to read the
|
---|
| 161 | <literal>'Other patent issues'</literal> part of <ulink
|
---|
| 162 | url="http://www.freetype.org/patents.html"/> before enabling this option.
|
---|
[70c0ef4] | 163 | </para>
|
---|
| 164 |
|
---|
[2ec7beca] | 165 | <para>
|
---|
| 166 | <parameter>--without-harfbuzz</parameter>: If
|
---|
| 167 | <application>harfbuzz</application> is installed prior to
|
---|
| 168 | <application>freetype</application> without
|
---|
| 169 | <application>freetype</application> support, use this switch to avoid a
|
---|
| 170 | build failure.
|
---|
| 171 | </para>
|
---|
| 172 |
|
---|
[70c0ef4] | 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>
|
---|