source: general/graphlib/harfbuzz.xml

trunk
Last change on this file was 3c1870e, checked in by Rahul Chandra <rahul@…>, 3 weeks ago

Update to harfbuzz-8.5.0

  • Property mode set to 100644
File size: 11.2 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 "81b9d7f1e19ce99c758d598c63543487">
11 <!ENTITY harfbuzz-size "19 MB">
12 <!ENTITY harfbuzz-buildsize "155 MB (With tests)">
13 <!ENTITY harfbuzz-time "0.8 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 -Dcpp_std=c++17 \
124 -Dgraphite2=enabled &amp;&amp;
125ninja</userinput></screen>
126
127 <para>
128 To test the results, issue: <command>ninja test</command>.
129 </para>
130
131 <para>
132 Now, as the <systemitem class="username">root</systemitem> user:
133 </para>
134
135<screen role="root"><userinput>ninja install</userinput></screen>
136 </sect2>
137
138 <sect2 role="commands">
139 <title>Command Explanations</title>
140
141 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
142 href="../../xincludes/meson-buildtype-release.xml"/>
143
144 <para>
145 <parameter>-Dcpp_std=c++17</parameter>: This switch ensures compiling
146 the C++ code following the C++17 standard, overriding the default of
147 this package (C++11). It's required to build this package with
148 <xref linkend='icu'/> installed because some ICU headers use C++17
149 features. It is unnecessary if <xref linkend='icu'/> is not
150 installed, but does no harm anyway.
151 </para>
152
153 <para>
154 <parameter>-Dgraphite2=enabled</parameter>: This switch enables
155 <application>Graphite2</application> support, which is required for
156 building <xref linkend="texlive"/> or <xref linkend="libreoffice"/>
157 with system harfbuzz.
158 </para>
159<!--
160 <para>
161 <parameter>-Dbenchmark=disabled</parameter>: This switch disables
162 downloading and building the <application>google-benchmark</application>
163 subproject, which requires <xref linkend="git"/>, and is of no
164 use for non developers.
165 </para>
166-->
167 <para>
168 <option>-Ddocs=disabled</option>: If <xref linkend="gtk-doc"/> is
169 installed, the documentation is built and installed. This switch
170 prevents that.
171 </para>
172
173 </sect2>
174
175 <sect2 role="content">
176 <title>Contents</title>
177
178 <segmentedlist>
179 <segtitle>Installed Programs</segtitle>
180 <segtitle>Installed Libraries</segtitle>
181 <segtitle>Installed Directories</segtitle>
182
183 <seglistitem>
184 <seg>
185 hb-info,
186 hb-ot-shape-closure,
187 hb-shape,
188 hb-subset, and
189 hb-view (only if Cairo is installed)
190 </seg>
191 <seg>
192 libharfbuzz.so,
193 libharfbuzz-cairo.so (only if Cairo is installed),
194 libharfbuzz-gobject.so,
195 libharfbuzz-icu.so, and
196 libharfbuzz-subset.so
197 </seg>
198 <seg>
199 /usr/include/harbuzz,
200 /usr/lib/cmake/harfbuzz, and
201 /usr/share/gtk-doc/html/harfbuzz (optional)
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="hb-info">
212 <term><command>hb-info</command></term>
213 <listitem>
214 <para>
215 is used for gathering information about fonts installed on the
216 system
217 </para>
218 <indexterm zone="harfbuzz hb-info">
219 <primary sortas="b-hb-info">hb-info</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="hb-ot-shape-closure">
225 <term><command>hb-ot-shape-closure</command></term>
226 <listitem>
227 <para>
228 gives the set of characters contained in a string, represented as
229 single characters and/or single character names. Example:
230 <command>hb-ot-shape-closure
231 /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
232 </para>
233 <indexterm zone="harfbuzz hb-ot-shape-closure">
234 <primary sortas="b-hb-ot-shape-closure">hb-ot-shape-closure</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="hb-shape">
240 <term><command>hb-shape</command></term>
241 <listitem>
242 <para>
243 is used for the conversion of text strings into positioned glyphs
244 </para>
245 <indexterm zone="harfbuzz hb-shape">
246 <primary sortas="b-hb-shape">hb-shape</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="hb-subset">
252 <term><command>hb-subset</command></term>
253 <listitem>
254 <para>
255 is used to create subsets of fonts, and display text using them
256 </para>
257 <indexterm zone="harfbuzz hb-subset">
258 <primary sortas="b-hb-subset">hb-subset</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="hb-view">
264 <term><command>hb-view</command></term>
265 <listitem>
266 <para>
267 displays a graphical view of a string shape using a
268 particular font as a set of glyphs. The output format is
269 automatically defined by the file extension, the supported ones
270 being ansi/png/svg/pdf/ps/eps. For example:
271 <command>hb-view --output-file=hello.png
272 /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
273 </para>
274 <indexterm zone="harfbuzz hb-view">
275 <primary sortas="b-hb-view">hb-view</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="libharfbuzz">
281 <term><filename class="libraryfile">libharfbuzz.so</filename></term>
282 <listitem>
283 <para>
284 is the HarfBuzz text shaping library
285 </para>
286 <indexterm zone="harfbuzz libharfbuzz">
287 <primary sortas="c-libharfbuzz">libharfbuzz.so</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="libharfbuzz-cairo">
293 <term><filename class="libraryfile">libharfbuzz-cairo.so</filename></term>
294 <listitem>
295 <para>
296 provides Cairo integration for the Harfbuzz text shaping library
297 </para>
298 <indexterm zone="harfbuzz libharfbuzz-cairo">
299 <primary sortas="c-libharfbuzz-cairo">libharfbuzz-cairo</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="libharfbuzz-gobject">
305 <term><filename class="libraryfile">libharfbuzz-gobject.so</filename></term>
306 <listitem>
307 <para>
308 provides GObject integration for the HarfBuzz text shaping library
309 </para>
310 <indexterm zone="harfbuzz libharfbuzz-gobject">
311 <primary sortas="c-libharfbuzz-gobject">libharfbuzz-gobject.so</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 <varlistentry id="libharfbuzz-icu">
317 <term><filename class="libraryfile">libharfbuzz-icu.so</filename></term>
318 <listitem>
319 <para>
320 provides ICU integration for the HarfBuzz text shaping library
321 </para>
322 <indexterm zone="harfbuzz libharfbuzz-icu">
323 <primary sortas="c-libharfbuzz-icu">libharfbuzz-icu.so</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="libharfbuzz-subset">
329 <term><filename class="libraryfile">libharfbuzz-subset.so</filename></term>
330 <listitem>
331 <para>
332 provides API functions for performing subsetting operations on font
333 files
334 </para>
335 <indexterm zone="harfbuzz libharfbuzz-subset">
336 <primary sortas="c-libharfbuzz-subset">libharfbuzz-subset.so</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
341 </variablelist>
342
343 </sect2>
344
345</sect1>
Note: See TracBrowser for help on using the repository browser.