source: general/graphlib/harfbuzz.xml@ 3edfc95d

trunk
Last change on this file since 3edfc95d was 1c097048, checked in by Bruce Dubbs <bdubbs@…>, 8 days ago

Clean up harfbuzz build.

  • Property mode set to 100644
File size: 10.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 harfbuzz-download-http
8 "https://github.com/harfbuzz/harfbuzz/releases/download/&harfbuzz-version;/harfbuzz-&harfbuzz-version;.tar.xz">
9 <!ENTITY harfbuzz-download-ftp " ">
10 <!ENTITY harfbuzz-md5sum "0035c129cb1646ab1cff65e5ef7153db">
11 <!ENTITY harfbuzz-size "17 MB">
12 <!ENTITY harfbuzz-buildsize "138 MB (With tests)">
13 <!ENTITY harfbuzz-time "0.7 SBU (With tests; both using parallelism=4)">
14]>
15
16<sect1 id="harfbuzz" xreflabel="harfBuzz-&harfbuzz-version;">
17 <?dbhtml filename="harfbuzz.html"?>
18
19
20 <title>harfBuzz-&harfbuzz-version;</title>
21
22 <indexterm zone="harfbuzz">
23 <primary sortas="a-HarfBuzz">HarfBuzz</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to Harfbuzz</title>
28
29 <para>
30 The <application>HarfBuzz</application> package contains an OpenType text
31 shaping engine.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&harfbuzz-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&harfbuzz-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &harfbuzz-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &harfbuzz-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &harfbuzz-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &harfbuzz-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">HarfBuzz Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Recommended</bridgehead>
73 <para role="recommended">
74 <xref linkend="glib2"/> (required for Pango; GObject Introspection
75 required for building GNOME),
76 <xref role="first" linkend="graphite2"/> (required for building
77 <xref role="nodep" linkend="texlive"/> or
78 <xref role="nodep" linkend="libreoffice"/> with system harfbuzz),
79 <xref linkend="icu"/>, and
80 <xref role="first" linkend="freetype2"/>
81 (after harfbuzz is installed, reinstall freetype)
82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="cairo"/> (circular: build cairo and all its recommended
87 dependencies, including harfbuzz, first, then rebuild harfbuzz if the
88 cairo backend is needed),
89 <xref linkend="git"/>,
90 <xref linkend="gtk-doc"/>,
91 <ulink url="https://pypi.org/project/FontTools/">FontTools</ulink>
92 (Python 3 module, for the test suite),
93 <ulink url="https://www.colm.net/open-source/ragel/">ragel</ulink>,
94 and <ulink url="https://github.com/bytecodealliance/wasm-micro-runtime">wasm-micro-runtime</ulink>
95 </para>
96
97 <warning>
98 <para>
99 Recommended dependencies are not strictly required to build
100 the package. However, you might not get expected results at
101 runtime if you don't install them. Please do not report bugs
102 with this package if you <emphasis>have not</emphasis>
103 installed the recommended dependencies.
104 </para>
105 </warning>
106
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of HarfBuzz</title>
111
112 <para>
113 Install <application>HarfBuzz</application> by running the following
114 commands:
115 </para>
116
117<screen><userinput>mkdir build &amp;&amp;
118cd build &amp;&amp;
119
120meson setup .. \
121 --prefix=/usr \
122 --buildtype=release \
123 -D graphite2=enabled &amp;&amp;
124ninja</userinput></screen>
125
126 <para>
127 To test the results, issue: <command>ninja test</command>.
128 </para>
129
130 <para>
131 Now, as the <systemitem class="username">root</systemitem> user:
132 </para>
133
134<screen role="root"><userinput>ninja install</userinput></screen>
135 </sect2>
136
137 <sect2 role="commands">
138 <title>Command Explanations</title>
139
140 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
141 href="../../xincludes/meson-buildtype-release.xml"/>
142<!--
143 <para>
144 <parameter>-Dcpp_std=c++17</parameter>: This switch ensures compiling
145 the C++ code following the C++17 standard, overriding the default of
146 this package (C++11). It's required to build this package with
147 <xref linkend='icu'/> installed because some ICU headers use C++17
148 features. It is unnecessary if <xref linkend='icu'/> is not
149 installed, but does no harm anyway.
150 </para>
151-->
152 <para>
153 <parameter>-Dgraphite2=enabled</parameter>: This switch enables
154 <application>Graphite2</application> support, which is required for
155 building <xref linkend="texlive"/> or <xref linkend="libreoffice"/>
156 with system harfbuzz.
157 </para>
158
159 <para>
160 <option>-Ddocs=disabled</option>: If <xref linkend="gtk-doc"/> is
161 installed, the documentation is built and installed. This switch
162 prevents that.
163 </para>
164
165 </sect2>
166
167 <sect2 role="content">
168 <title>Contents</title>
169
170 <segmentedlist>
171 <segtitle>Installed Programs</segtitle>
172 <segtitle>Installed Libraries</segtitle>
173 <segtitle>Installed Directories</segtitle>
174
175 <seglistitem>
176 <seg>
177 hb-info,
178 hb-ot-shape-closure,
179 hb-shape,
180 hb-subset, and
181 hb-view (only if Cairo is installed)
182 </seg>
183 <seg>
184 libharfbuzz.so,
185 libharfbuzz-cairo.so (only if Cairo is installed),
186 libharfbuzz-gobject.so,
187 libharfbuzz-icu.so, and
188 libharfbuzz-subset.so
189 </seg>
190 <seg>
191 /usr/include/harbuzz,
192 /usr/lib/cmake/harfbuzz, and
193 /usr/share/gtk-doc/html/harfbuzz (optional)
194 </seg>
195 </seglistitem>
196 </segmentedlist>
197
198 <variablelist>
199 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
200 <?dbfo list-presentation="list"?>
201 <?dbhtml list-presentation="table"?>
202
203 <varlistentry id="hb-info">
204 <term><command>hb-info</command></term>
205 <listitem>
206 <para>
207 is used for gathering information about fonts installed on the
208 system
209 </para>
210 <indexterm zone="harfbuzz hb-info">
211 <primary sortas="b-hb-info">hb-info</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="hb-ot-shape-closure">
217 <term><command>hb-ot-shape-closure</command></term>
218 <listitem>
219 <para>
220 gives the set of characters contained in a string, represented as
221 single characters and/or single character names. Example:
222 <command>hb-ot-shape-closure
223 /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
224 </para>
225 <indexterm zone="harfbuzz hb-ot-shape-closure">
226 <primary sortas="b-hb-ot-shape-closure">hb-ot-shape-closure</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="hb-shape">
232 <term><command>hb-shape</command></term>
233 <listitem>
234 <para>
235 is used for the conversion of text strings into positioned glyphs
236 </para>
237 <indexterm zone="harfbuzz hb-shape">
238 <primary sortas="b-hb-shape">hb-shape</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="hb-subset">
244 <term><command>hb-subset</command></term>
245 <listitem>
246 <para>
247 is used to create subsets of fonts, and display text using them
248 </para>
249 <indexterm zone="harfbuzz hb-subset">
250 <primary sortas="b-hb-subset">hb-subset</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="hb-view">
256 <term><command>hb-view</command></term>
257 <listitem>
258 <para>
259 displays a graphical view of a string shape using a
260 particular font as a set of glyphs. The output format is
261 automatically defined by the file extension, the supported ones
262 being ansi/png/svg/pdf/ps/eps. For example:
263 <command>hb-view --output-file=hello.png
264 /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
265 </para>
266 <indexterm zone="harfbuzz hb-view">
267 <primary sortas="b-hb-view">hb-view</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="libharfbuzz">
273 <term><filename class="libraryfile">libharfbuzz.so</filename></term>
274 <listitem>
275 <para>
276 is the HarfBuzz text shaping library
277 </para>
278 <indexterm zone="harfbuzz libharfbuzz">
279 <primary sortas="c-libharfbuzz">libharfbuzz.so</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="libharfbuzz-cairo">
285 <term><filename class="libraryfile">libharfbuzz-cairo.so</filename></term>
286 <listitem>
287 <para>
288 provides Cairo integration for the Harfbuzz text shaping library
289 </para>
290 <indexterm zone="harfbuzz libharfbuzz-cairo">
291 <primary sortas="c-libharfbuzz-cairo">libharfbuzz-cairo</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="libharfbuzz-gobject">
297 <term><filename class="libraryfile">libharfbuzz-gobject.so</filename></term>
298 <listitem>
299 <para>
300 provides GObject integration for the HarfBuzz text shaping library
301 </para>
302 <indexterm zone="harfbuzz libharfbuzz-gobject">
303 <primary sortas="c-libharfbuzz-gobject">libharfbuzz-gobject.so</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="libharfbuzz-icu">
309 <term><filename class="libraryfile">libharfbuzz-icu.so</filename></term>
310 <listitem>
311 <para>
312 provides ICU integration for the HarfBuzz text shaping library
313 </para>
314 <indexterm zone="harfbuzz libharfbuzz-icu">
315 <primary sortas="c-libharfbuzz-icu">libharfbuzz-icu.so</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="libharfbuzz-subset">
321 <term><filename class="libraryfile">libharfbuzz-subset.so</filename></term>
322 <listitem>
323 <para>
324 provides API functions for performing subsetting operations on font
325 files
326 </para>
327 <indexterm zone="harfbuzz libharfbuzz-subset">
328 <primary sortas="c-libharfbuzz-subset">libharfbuzz-subset.so</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 </variablelist>
334
335 </sect2>
336
337</sect1>
Note: See TracBrowser for help on using the repository browser.