source: general/graphlib/harfbuzz.xml@ d2f34f58

lazarus trunk
Last change on this file since d2f34f58 was 3d038a8, checked in by Xi Ruoyao <xry111@…>, 3 months ago

harfbuzz: Use the same style for -Dxxx as other packages, and add explanation for -Dcpp_std=c++17

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