source: general/graphlib/freetype2.xml@ 3f2db3a6

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 3f2db3a6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 8.1 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-dl;/freetype/freetype-&freetype2-version;.tar.xz">
8 <!ENTITY freetype2-download-ftp "&gentoo-ftp-repo;/freetype-&freetype2-version;.tar.xz">
9 <!ENTITY freetype2-md5sum "7f7cd7c706d8e402354305c1c59e3ff2">
10 <!ENTITY freetype2-size "2.4 MB">
11 <!ENTITY freetype2-buildsize "31 MB (with additional documentation)">
12 <!ENTITY freetype2-time "0.2 SBU (with additional documentation)">
13
14 <!ENTITY freetype2-doc-version "&freetype2-version;">
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">
17 <!ENTITY freetype2-doc-md5sum "7608f3c28e29d67f11d85891b7b00183">
18 <!ENTITY freetype2-doc-size "2.0 MB">
19]>
20
21<sect1 id="freetype2" xreflabel="FreeType-&freetype2-version;">
22 <?dbhtml filename="freetype2.html"?>
23
24
25 <title>FreeType-&freetype2-version;</title>
26
27 <indexterm zone="freetype2">
28 <primary sortas="a-FreeType">FreeType</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to FreeType2</title>
33
34 <para>
35 The <application>FreeType2</application> package contains
36 a library which allows applications to properly render
37 <application>TrueType</application> fonts.
38 </para>
39
40 &lfs112_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&freetype2-download-http;"/>
47 </para>
48 </listitem>
49<!-- <listitem>
50 <para>
51 Download (FTP): <ulink url="&freetype2-download-ftp;"/>
52 </para>
53 </listitem> -->
54 <listitem>
55 <para>
56 Download MD5 sum: &freetype2-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &freetype2-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &freetype2-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &freetype2-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
77 <itemizedlist spacing="compact">
78 <title>Additional Documentation</title>
79 <listitem>
80 <para>
81 Download (HTTP): <ulink url="&freetype2-doc-download-http;"/>
82 </para>
83 </listitem>
84 <listitem>
85 <para>
86 Download MD5 sum: &freetype2-doc-md5sum;
87 </para>
88 </listitem>
89 <listitem>
90 <para>
91 Download size: &freetype2-doc-size;
92 </para>
93 </listitem>
94 </itemizedlist>
95
96 <bridgehead renderas="sect3">FreeType2 Dependencies</bridgehead>
97
98 <bridgehead renderas="sect4">Recommended</bridgehead>
99 <para role="recommended">
100 <xref linkend="harfbuzz"/>
101 (first, install without it, after it is installed, reinstall
102 <xref linkend="freetype2"/>),
103 <xref linkend="libpng"/>, and
104 <xref linkend="which"/>
105 </para>
106
107 <bridgehead renderas="sect4">Optional</bridgehead>
108 <para role="optional">
109 <xref linkend="brotli"/>
110 </para>
111
112 <bridgehead renderas="sect4">Optional (for documentation)</bridgehead>
113 <para role="optional">
114 <ulink url="https://pypi.org/project/docwriter/">docwriter</ulink>
115 </para>
116
117 <para condition="html" role="usernotes">User Notes:
118 <ulink url="&blfs-wiki;/freetype2"/>
119 </para>
120 </sect2>
121
122 <sect2 role="installation">
123 <title>Installation of FreeType2</title>
124
125 <para>
126 If you downloaded the additional documentation, unpack it into the
127 source tree using the following command:
128 </para>
129
130<screen><userinput>tar -xf ../freetype-doc-&freetype2-doc-version;.tar.xz --strip-components=2 -C docs</userinput></screen>
131
132 <para>
133 Install <application>FreeType2</application> by running the following
134 commands:
135 </para>
136
137<screen><userinput>sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &amp;&amp;
138
139sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
140 -i include/freetype/config/ftoption.h &amp;&amp;
141
142./configure --prefix=/usr --enable-freetype-config --disable-static &amp;&amp;
143make</userinput></screen>
144
145 <para>
146 This package does not come with a test suite.
147 </para>
148
149 <para>
150 Now, as the <systemitem class="username">root</systemitem> user:
151 </para>
152
153<screen role="root"><userinput>make install</userinput></screen>
154
155 <para>
156 If you downloaded the optional documentation, install it as the
157 <systemitem class="username">root</systemitem> user:
158 </para>
159
160<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/freetype-&freetype2-version; &amp;&amp;
161cp -v -R docs/* /usr/share/doc/freetype-&freetype2-version; &amp;&amp;
162rm -v /usr/share/doc/freetype-&freetype2-version;/freetype-config.1</userinput></screen>
163
164 </sect2>
165
166 <sect2 role="commands">
167 <title>Command Explanations</title>
168
169 <para>
170 <command>sed -ri ...</command>: First command enables GX/AAT and OpenType
171 table validation and second command enables Subpixel Rendering. Note that
172 Subpixel Rendering may have patent issues. Be sure to read the
173 <literal>'Other patent issues'</literal> part of <ulink
174 url="https://freetype.org/patents.html"/> before enabling this option.
175 </para>
176
177 <para>
178 <parameter>--enable-freetype-config</parameter>: This switch
179 ensure that the man page for freetype-config is installed.
180 </para>
181
182 <para>
183 <option>--without-harfbuzz</option>: If
184 <application>harfbuzz</application> is installed prior to
185 <application>freetype</application> without
186 <application>freetype</application> support, use this switch to avoid a
187 build failure.
188 </para>
189
190 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
191 href="../../xincludes/static-libraries.xml"/>
192 <!-- No longer valid with 2.10.1, /usr/bin/freetype-config is installed
193 by the 'make install' command.
194 <para>
195 <command>cp builds/unix/freetype-config /usr/bin</command>: Manually
196 place the freetype configureation program needed by other programs when
197 using the freetype library.
198 </para>
199 -->
200
201 </sect2>
202
203 <sect2 role="content">
204 <title>Contents</title>
205
206 <segmentedlist>
207 <segtitle>Installed Program</segtitle>
208 <segtitle>Installed Library</segtitle>
209 <segtitle>Installed Directories</segtitle>
210
211 <seglistitem>
212 <seg>
213 freetype-config
214 </seg>
215 <seg>
216 libfreetype.so
217 </seg>
218 <seg>
219 /usr/include/freetype2 and
220 /usr/share/doc/freetype-&freetype2-version;
221 </seg>
222 </seglistitem>
223 </segmentedlist>
224
225 <variablelist>
226 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
227 <?dbfo list-presentation="list"?>
228 <?dbhtml list-presentation="table"?>
229
230 <varlistentry id="freetype-config">
231 <term><command>freetype-config</command></term>
232 <listitem>
233 <para>
234 is used to get <application>FreeType</application> compilation
235 and linking information
236 </para>
237 <indexterm zone="freetype2 freetype-config">
238 <primary sortas="b-freetype-config">freetype2-config</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="libfreetype">
244 <term><filename class="libraryfile">libfreetype.so</filename></term>
245 <listitem>
246 <para>
247 contains functions for rendering various font types, such
248 as TrueType and Type1
249 </para>
250 <indexterm zone="freetype2 libfreetype">
251 <primary sortas="c-libfreetype">libfreetype.so</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 </variablelist>
257
258 </sect2>
259
260</sect1>
Note: See TracBrowser for help on using the repository browser.