source: general/graphlib/freetype2.xml@ 0b06e2f

systemd-11177
Last change on this file since 0b06e2f was 0b06e2f, checked in by Christopher Gregory <cjg@…>, 10 years ago

Added note to freetype page about a required switch when building the first time.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13821 af4574ff-66df-0310-9fd7-8a98e5e911e0

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