2024-01-20 05:35:53 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2019-07-05 00:34:40 +08:00
|
|
|
<!ENTITY freetype2-download-http "&sourceforge-dl;/freetype/freetype-&freetype2-version;.tar.xz">
|
2023-10-16 03:43:08 +08:00
|
|
|
<!ENTITY freetype2-download-ftp " ">
|
2023-09-05 05:52:18 +08:00
|
|
|
<!ENTITY freetype2-md5sum "1f625f0a913c449551b1e3790a1817d7">
|
2022-05-03 00:23:42 +08:00
|
|
|
<!ENTITY freetype2-size "2.4 MB">
|
2023-09-05 05:52:18 +08:00
|
|
|
<!ENTITY freetype2-buildsize "33 MB (with additional documentation)">
|
2016-02-10 03:28:27 +08:00
|
|
|
<!ENTITY freetype2-time "0.2 SBU (with additional documentation)">
|
2013-06-28 09:09:49 +08:00
|
|
|
|
2016-02-10 03:28:27 +08:00
|
|
|
<!ENTITY freetype2-doc-version "&freetype2-version;">
|
2019-07-05 00:34:40 +08:00
|
|
|
<!ENTITY freetype2-doc-download-http "&sourceforge-dl;/freetype/freetype-doc-&freetype2-doc-version;.tar.xz">
|
2023-10-16 03:43:08 +08:00
|
|
|
<!ENTITY freetype2-doc-download-ftp " ">
|
2023-09-05 05:52:18 +08:00
|
|
|
<!ENTITY freetype2-doc-md5sum "e6466f08934ebf2d7f711b0464d7a6cf">
|
2023-06-27 00:45:44 +08:00
|
|
|
<!ENTITY freetype2-doc-size "2.1 MB">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2003-09-27 10:37:14 +08:00
|
|
|
<sect1 id="freetype2" xreflabel="FreeType-&freetype2-version;">
|
2005-05-04 02:21:39 +08:00
|
|
|
<?dbhtml filename="freetype2.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>FreeType-&freetype2-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="freetype2">
|
|
|
|
<primary sortas="a-FreeType">FreeType</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to FreeType2</title>
|
|
|
|
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
The <application>FreeType2</application> package contains
|
|
|
|
a library which allows applications to properly render
|
|
|
|
<application>TrueType</application> fonts.
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
|
2024-02-16 09:26:48 +08:00
|
|
|
&lfs121_checked;
|
2009-10-21 23:07:08 +08:00
|
|
|
|
2005-05-04 02:21:39 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&freetype2-download-http;"/>
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
</listitem>
|
2023-10-16 03:43:08 +08:00
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&freetype2-download-ftp;"/>
|
|
|
|
</para>
|
2023-10-16 03:43:08 +08:00
|
|
|
</listitem>
|
2005-05-04 02:21:39 +08:00
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &freetype2-md5sum;
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Download size: &freetype2-size;
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &freetype2-buildsize;
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &freetype2-time;
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-11-27 10:03:33 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
2007-04-27 23:01:17 +08:00
|
|
|
<title>Additional Documentation</title>
|
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&freetype2-doc-download-http;"/>
|
|
|
|
</para>
|
2007-04-27 23:01:17 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &freetype2-doc-md5sum;
|
|
|
|
</para>
|
2007-04-27 23:01:17 +08:00
|
|
|
</listitem>
|
2005-11-30 03:07:13 +08:00
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Download size: &freetype2-doc-size;
|
|
|
|
</para>
|
2005-11-27 10:03:33 +08:00
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2013-06-29 10:09:52 +08:00
|
|
|
<bridgehead renderas="sect3">FreeType2 Dependencies</bridgehead>
|
2015-10-18 05:34:18 +08:00
|
|
|
|
2013-06-29 10:09:52 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2015-06-10 02:12:21 +08:00
|
|
|
<xref linkend="harfbuzz"/>
|
2014-03-09 07:28:14 +08:00
|
|
|
(first, install without it, after it is installed, reinstall
|
2015-06-10 02:12:21 +08:00
|
|
|
<xref linkend="freetype2"/>),
|
|
|
|
<xref linkend="libpng"/>, and
|
|
|
|
<xref linkend="which"/>
|
2013-06-29 10:09:52 +08:00
|
|
|
</para>
|
|
|
|
|
2020-08-08 15:12:05 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
2023-02-16 23:28:13 +08:00
|
|
|
<xref linkend="brotli"/> and
|
|
|
|
<xref linkend="librsvg"/>
|
2020-08-08 15:12:05 +08:00
|
|
|
</para>
|
|
|
|
|
2019-10-23 02:24:54 +08:00
|
|
|
<bridgehead renderas="sect4">Optional (for documentation)</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<ulink url="https://pypi.org/project/docwriter/">docwriter</ulink>
|
|
|
|
</para>
|
|
|
|
|
2005-05-04 02:21:39 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of FreeType2</title>
|
|
|
|
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
If you downloaded the additional documentation, unpack it into the
|
|
|
|
source tree using the following command:
|
|
|
|
</para>
|
2005-11-27 10:03:33 +08:00
|
|
|
|
2019-07-10 04:36:46 +08:00
|
|
|
<screen><userinput>tar -xf ../freetype-doc-&freetype2-doc-version;.tar.xz --strip-components=2 -C docs</userinput></screen>
|
2005-11-27 10:03:33 +08:00
|
|
|
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Install <application>FreeType2</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
|
2016-07-17 06:39:16 +08:00
|
|
|
<screen><userinput>sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &&
|
2013-06-28 09:09:49 +08:00
|
|
|
|
2017-01-02 02:04:37 +08:00
|
|
|
sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
|
2015-10-18 05:34:18 +08:00
|
|
|
-i include/freetype/config/ftoption.h &&
|
2013-06-28 09:09:49 +08:00
|
|
|
|
2018-05-27 05:05:49 +08:00
|
|
|
./configure --prefix=/usr --enable-freetype-config --disable-static &&
|
2005-05-04 02:21:39 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
|
2019-02-27 02:10:19 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2017-10-22 15:05:55 +08:00
|
|
|
|
2020-03-19 14:44:08 +08:00
|
|
|
<para>
|
|
|
|
If you downloaded the optional documentation, install it as the
|
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2017-10-22 15:05:55 +08:00
|
|
|
|
2023-07-03 00:52:34 +08:00
|
|
|
<screen role="root"><userinput>cp -v -R docs -T /usr/share/doc/freetype-&freetype2-version; &&
|
2019-02-27 02:10:19 +08:00
|
|
|
rm -v /usr/share/doc/freetype-&freetype2-version;/freetype-config.1</userinput></screen>
|
2005-05-04 02:21:39 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2005-06-21 08:58:09 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2020-03-19 14:44:08 +08:00
|
|
|
<para>
|
2016-07-16 08:09:38 +08:00
|
|
|
<command>sed -ri ...</command>: First command enables GX/AAT and OpenType
|
2017-01-02 02:04:37 +08:00
|
|
|
table validation and second command enables Subpixel Rendering. Note that
|
|
|
|
Subpixel Rendering may have patent issues. Be sure to read the
|
|
|
|
<literal>'Other patent issues'</literal> part of <ulink
|
2022-09-08 15:07:11 +08:00
|
|
|
url="https://freetype.org/patents.html"/> before enabling this option.
|
2012-07-23 21:35:55 +08:00
|
|
|
</para>
|
|
|
|
|
2018-05-27 05:05:49 +08:00
|
|
|
<para>
|
|
|
|
<parameter>--enable-freetype-config</parameter>: This switch
|
|
|
|
ensure that the man page for freetype-config is installed.
|
|
|
|
</para>
|
|
|
|
|
2017-03-08 13:22:17 +08:00
|
|
|
<para>
|
2019-12-08 01:38:33 +08:00
|
|
|
<option>--without-harfbuzz</option>: If
|
2017-03-08 13:22:17 +08:00
|
|
|
<application>harfbuzz</application> is installed prior to
|
|
|
|
<application>freetype</application> without
|
|
|
|
<application>freetype</application> support, use this switch to avoid a
|
|
|
|
build failure.
|
|
|
|
</para>
|
|
|
|
|
2012-07-23 21:35:55 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
2020-03-10 08:35:43 +08:00
|
|
|
<!-- No longer valid with 2.10.1, /usr/bin/freetype-config is installed
|
|
|
|
by the 'make install' command.
|
2018-08-25 08:59:05 +08:00
|
|
|
<para>
|
|
|
|
<command>cp builds/unix/freetype-config /usr/bin</command>: Manually
|
|
|
|
place the freetype configureation program needed by other programs when
|
|
|
|
using the freetype library.
|
|
|
|
</para>
|
2020-03-10 08:35:43 +08:00
|
|
|
-->
|
2018-08-25 08:59:05 +08:00
|
|
|
|
2005-06-21 08:58:09 +08:00
|
|
|
</sect2>
|
|
|
|
|
2005-05-04 02:21:39 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2005-05-04 04:18:44 +08:00
|
|
|
<segtitle>Installed Program</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
2009-02-13 02:32:16 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
2005-05-04 04:18:44 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<seg>
|
|
|
|
freetype-config
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libfreetype.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/freetype2 and
|
|
|
|
/usr/share/doc/freetype-&freetype2-version;
|
|
|
|
</seg>
|
2005-05-04 04:18:44 +08:00
|
|
|
</seglistitem>
|
2005-05-04 02:21:39 +08:00
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="freetype-config">
|
2018-08-10 12:29:47 +08:00
|
|
|
<term><command>freetype-config</command></term>
|
2005-05-04 02:21:39 +08:00
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
is used to get <application>FreeType</application> compilation
|
2021-02-19 23:20:16 +08:00
|
|
|
and linking information
|
2012-07-23 21:35:55 +08:00
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
<indexterm zone="freetype2 freetype-config">
|
2018-05-27 05:05:49 +08:00
|
|
|
<primary sortas="b-freetype-config">freetype2-config</primary>
|
2005-05-04 02:21:39 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libfreetype">
|
2012-12-30 23:07:50 +08:00
|
|
|
<term><filename class="libraryfile">libfreetype.so</filename></term>
|
2005-05-04 02:21:39 +08:00
|
|
|
<listitem>
|
2012-07-23 21:35:55 +08:00
|
|
|
<para>
|
|
|
|
contains functions for rendering various font types, such
|
2021-02-19 23:20:16 +08:00
|
|
|
as TrueType and Type1
|
2012-07-23 21:35:55 +08:00
|
|
|
</para>
|
2005-05-04 02:21:39 +08:00
|
|
|
<indexterm zone="freetype2 libfreetype">
|
2012-07-23 21:35:55 +08:00
|
|
|
<primary sortas="c-libfreetype">libfreetype.so</primary>
|
2005-05-04 02:21:39 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-09-15 05:47:22 +08:00
|
|
|
|
|
|
|
</sect1>
|