[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 |
|
---|
[7d3cd746] | 7 | <!ENTITY freetype2-download-http "&sourceforge-dl;/freetype/freetype-&freetype2-version;.tar.xz">
|
---|
| 8 | <!ENTITY freetype2-download-ftp "&gentoo-ftp-repo;/freetype-&freetype2-version;.tar.xz">
|
---|
[df577fc] | 9 | <!ENTITY freetype2-md5sum "7c0d5a39f232d7eb9f9d7da76bf08074">
|
---|
| 10 | <!ENTITY freetype2-size "2.2 MB">
|
---|
[7d3cd746] | 11 | <!ENTITY freetype2-buildsize "30 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;">
|
---|
[7d3cd746] | 15 | <!ENTITY freetype2-doc-download-http "&sourceforge-dl;/freetype/freetype-doc-&freetype2-doc-version;.tar.xz">
|
---|
| 16 | <!ENTITY freetype2-doc-download-ftp "&gentoo-ftp-repo;/freetype-doc-&freetype2-doc-version;.tar.xz">
|
---|
[df577fc] | 17 | <!ENTITY freetype2-doc-md5sum "836b03f8741d9af50d24d3cdaea6f1e9">
|
---|
| 18 | <!ENTITY freetype2-doc-size "1.9 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 |
|
---|
[1f6d0c13] | 44 | &lfs10_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>
|
---|
| 88 | <listitem>
|
---|
[70c0ef4] | 89 | <para>
|
---|
| 90 | Download MD5 sum: &freetype2-doc-md5sum;
|
---|
| 91 | </para>
|
---|
[c6e8734] | 92 | </listitem>
|
---|
[bccbdaea] | 93 | <listitem>
|
---|
[70c0ef4] | 94 | <para>
|
---|
| 95 | Download size: &freetype2-doc-size;
|
---|
| 96 | </para>
|
---|
[9d3c5f1] | 97 | </listitem>
|
---|
| 98 | </itemizedlist>
|
---|
| 99 |
|
---|
[5edcd4b] | 100 | <bridgehead renderas="sect3">FreeType2 Dependencies</bridgehead>
|
---|
[a9ae025] | 101 |
|
---|
[5edcd4b] | 102 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 103 | <para role="recommended">
|
---|
[a40b6988] | 104 | <xref linkend="harfbuzz"/>
|
---|
[d8377ddb] | 105 | (first, install without it, after it is installed, reinstall
|
---|
[a40b6988] | 106 | <xref linkend="freetype2"/>),
|
---|
| 107 | <xref linkend="libpng"/>, and
|
---|
| 108 | <xref linkend="which"/>
|
---|
[5edcd4b] | 109 | </para>
|
---|
| 110 |
|
---|
[545518f] | 111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 112 | <para role="optional">
|
---|
| 113 | <xref linkend="brotli"/>
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
[dff3a285] | 116 | <bridgehead renderas="sect4">Optional (for documentation)</bridgehead>
|
---|
| 117 | <para role="optional">
|
---|
| 118 | <ulink url="https://pypi.org/project/docwriter/">docwriter</ulink>
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
[1039de3] | 121 | <para condition="html" role="usernotes">User Notes:
|
---|
[70c0ef4] | 122 | <ulink url="&blfs-wiki;/freetype2"/>
|
---|
| 123 | </para>
|
---|
[09da197] | 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2 role="installation">
|
---|
| 127 | <title>Installation of FreeType2</title>
|
---|
| 128 |
|
---|
[70c0ef4] | 129 | <para>
|
---|
| 130 | If you downloaded the additional documentation, unpack it into the
|
---|
| 131 | source tree using the following command:
|
---|
| 132 | </para>
|
---|
[9d3c5f1] | 133 |
|
---|
[842348b0] | 134 | <screen><userinput>tar -xf ../freetype-doc-&freetype2-doc-version;.tar.xz --strip-components=2 -C docs</userinput></screen>
|
---|
[9d3c5f1] | 135 |
|
---|
[70c0ef4] | 136 | <para>
|
---|
| 137 | Install <application>FreeType2</application> by running the following
|
---|
| 138 | commands:
|
---|
| 139 | </para>
|
---|
[09da197] | 140 |
|
---|
[df343952] | 141 | <screen><userinput>sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &&
|
---|
[98f3c4f7] | 142 |
|
---|
[fcd1100] | 143 | sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
|
---|
[a9ae025] | 144 | -i include/freetype/config/ftoption.h &&
|
---|
[98f3c4f7] | 145 |
|
---|
[b037ef4] | 146 | ./configure --prefix=/usr --enable-freetype-config --disable-static &&
|
---|
[09da197] | 147 | make</userinput></screen>
|
---|
| 148 |
|
---|
[70c0ef4] | 149 | <para>
|
---|
| 150 | This package does not come with a test suite.
|
---|
| 151 | </para>
|
---|
[09da197] | 152 |
|
---|
[70c0ef4] | 153 | <para>
|
---|
| 154 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 155 | </para>
|
---|
[09da197] | 156 |
|
---|
[4c69301c] | 157 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[ed9b0761] | 158 |
|
---|
[09f0998] | 159 | <para>
|
---|
| 160 | If you downloaded the optional documentation, install it as the
|
---|
| 161 | <systemitem class="username">root</systemitem> user:
|
---|
| 162 | </para>
|
---|
[ed9b0761] | 163 |
|
---|
| 164 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/freetype-&freetype2-version; &&
|
---|
[4c69301c] | 165 | cp -v -R docs/* /usr/share/doc/freetype-&freetype2-version; &&
|
---|
| 166 | rm -v /usr/share/doc/freetype-&freetype2-version;/freetype-config.1</userinput></screen>
|
---|
[09da197] | 167 |
|
---|
| 168 | </sect2>
|
---|
| 169 |
|
---|
[2ecf9558] | 170 | <sect2 role="commands">
|
---|
| 171 | <title>Command Explanations</title>
|
---|
| 172 |
|
---|
[09f0998] | 173 | <para>
|
---|
[3fdc9b0] | 174 | <command>sed -ri ...</command>: First command enables GX/AAT and OpenType
|
---|
[fcd1100] | 175 | table validation and second command enables Subpixel Rendering. Note that
|
---|
| 176 | Subpixel Rendering may have patent issues. Be sure to read the
|
---|
| 177 | <literal>'Other patent issues'</literal> part of <ulink
|
---|
| 178 | url="http://www.freetype.org/patents.html"/> before enabling this option.
|
---|
[70c0ef4] | 179 | </para>
|
---|
| 180 |
|
---|
[b037ef4] | 181 | <para>
|
---|
| 182 | <parameter>--enable-freetype-config</parameter>: This switch
|
---|
| 183 | ensure that the man page for freetype-config is installed.
|
---|
| 184 | </para>
|
---|
| 185 |
|
---|
[2ec7beca] | 186 | <para>
|
---|
[aa41434] | 187 | <option>--without-harfbuzz</option>: If
|
---|
[2ec7beca] | 188 | <application>harfbuzz</application> is installed prior to
|
---|
| 189 | <application>freetype</application> without
|
---|
| 190 | <application>freetype</application> support, use this switch to avoid a
|
---|
| 191 | build failure.
|
---|
| 192 | </para>
|
---|
| 193 |
|
---|
[70c0ef4] | 194 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 195 | href="../../xincludes/static-libraries.xml"/>
|
---|
[ba718791] | 196 | <!-- No longer valid with 2.10.1, /usr/bin/freetype-config is installed
|
---|
| 197 | by the 'make install' command.
|
---|
[1c71552] | 198 | <para>
|
---|
| 199 | <command>cp builds/unix/freetype-config /usr/bin</command>: Manually
|
---|
| 200 | place the freetype configureation program needed by other programs when
|
---|
| 201 | using the freetype library.
|
---|
| 202 | </para>
|
---|
[ba718791] | 203 | -->
|
---|
[1c71552] | 204 |
|
---|
[2ecf9558] | 205 | </sect2>
|
---|
| 206 |
|
---|
[09da197] | 207 | <sect2 role="content">
|
---|
| 208 | <title>Contents</title>
|
---|
| 209 |
|
---|
| 210 | <segmentedlist>
|
---|
[9bd60d4] | 211 | <segtitle>Installed Program</segtitle>
|
---|
| 212 | <segtitle>Installed Library</segtitle>
|
---|
[90ba9f5] | 213 | <segtitle>Installed Directories</segtitle>
|
---|
[9bd60d4] | 214 |
|
---|
| 215 | <seglistitem>
|
---|
[70c0ef4] | 216 | <seg>
|
---|
| 217 | freetype-config
|
---|
| 218 | </seg>
|
---|
| 219 | <seg>
|
---|
| 220 | libfreetype.so
|
---|
| 221 | </seg>
|
---|
| 222 | <seg>
|
---|
| 223 | /usr/include/freetype2 and
|
---|
| 224 | /usr/share/doc/freetype-&freetype2-version;
|
---|
| 225 | </seg>
|
---|
[9bd60d4] | 226 | </seglistitem>
|
---|
[09da197] | 227 | </segmentedlist>
|
---|
| 228 |
|
---|
| 229 | <variablelist>
|
---|
| 230 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 231 | <?dbfo list-presentation="list"?>
|
---|
| 232 | <?dbhtml list-presentation="table"?>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="freetype-config">
|
---|
[6121fe5] | 235 | <term><command>freetype-config</command></term>
|
---|
[09da197] | 236 | <listitem>
|
---|
[70c0ef4] | 237 | <para>
|
---|
| 238 | is used to get <application>FreeType</application> compilation
|
---|
| 239 | and linking information.
|
---|
| 240 | </para>
|
---|
[09da197] | 241 | <indexterm zone="freetype2 freetype-config">
|
---|
[b037ef4] | 242 | <primary sortas="b-freetype-config">freetype2-config</primary>
|
---|
[09da197] | 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | <varlistentry id="libfreetype">
|
---|
[efdbb27] | 248 | <term><filename class="libraryfile">libfreetype.so</filename></term>
|
---|
[09da197] | 249 | <listitem>
|
---|
[70c0ef4] | 250 | <para>
|
---|
| 251 | contains functions for rendering various font types, such
|
---|
| 252 | as TrueType and Type1.
|
---|
| 253 | </para>
|
---|
[09da197] | 254 | <indexterm zone="freetype2 libfreetype">
|
---|
[70c0ef4] | 255 | <primary sortas="c-libfreetype">libfreetype.so</primary>
|
---|
[09da197] | 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
| 260 | </variablelist>
|
---|
| 261 |
|
---|
| 262 | </sect2>
|
---|
[19e9cee] | 263 |
|
---|
| 264 | </sect1>
|
---|