source: general/graphlib/harfbuzz.xml@ ea36f0f

gimp3 trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since ea36f0f was 7bec6f23, checked in by Bruce Dubbs <bdubbs@…>, 4 months ago

Clarify circular dependency between harfbuzz and freetype

  • Property mode set to 100644
File size: 11.2 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[32e13498]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
[0d7900a]7 <!ENTITY harfbuzz-download-http
[d2f49a6]8 "https://github.com/harfbuzz/harfbuzz/releases/download/&harfbuzz-version;/harfbuzz-&harfbuzz-version;.tar.xz">
[32e13498]9 <!ENTITY harfbuzz-download-ftp " ">
[1d4c2a7]10 <!ENTITY harfbuzz-md5sum "961e77201ff4738382ea06e9f15ade70">
[b3a11f45]11 <!ENTITY harfbuzz-size "18 MB">
[1d4c2a7]12 <!ENTITY harfbuzz-buildsize "149 MB (With tests)">
[667aff2]13 <!ENTITY harfbuzz-time "0.8 SBU (With tests; both using parallelism=4)">
[32e13498]14]>
15
[06373ad]16<sect1 id="harfbuzz" xreflabel="harfBuzz-&harfbuzz-version;">
[32e13498]17 <?dbhtml filename="harfbuzz.html"?>
18
19
[06373ad]20 <title>harfBuzz-&harfbuzz-version;</title>
[32e13498]21
22 <indexterm zone="harfbuzz">
[8374093]23 <primary sortas="a-HarfBuzz">HarfBuzz</primary>
[32e13498]24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to Harfbuzz</title>
28
29 <para>
[8374093]30 The <application>HarfBuzz</application> package contains an OpenType text
[32e13498]31 shaping engine.
32 </para>
33
[b9874725]34 &lfs121_checked;
[32e13498]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
[8374093]70 <bridgehead renderas="sect3">HarfBuzz Dependencies</bridgehead>
[32e13498]71
72 <bridgehead renderas="sect4">Recommended</bridgehead>
73 <para role="recommended">
[c0bc0a9]74 <xref linkend="glib2"/> (required for Pango; GObject Introspection
75 required for building GNOME),
[f62b93bb]76 <xref role="first" linkend="graphite2"/> (required for building
[8558044]77 <xref role="nodep" linkend="texlive"/> or
[f62b93bb]78 <xref role="nodep" linkend="libreoffice"/> with system harfbuzz),
[572553b]79 <xref linkend="icu"/>, and
[13df334]80 <xref role="first" linkend="freetype2"/>
[7bec6f23]81 (after harfbuzz is installed, reinstall freetype)
[32e13498]82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
[a0484a14]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),
[b9f03437]89 <xref linkend="git"/>,
[92e3023]90 <xref linkend="gtk-doc"/>,
[1ea4deb]91 <ulink url="https://pypi.org/project/FontTools/">FontTools</ulink>
[be05688]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>
[32e13498]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">
[8374093]110 <title>Installation of HarfBuzz</title>
[32e13498]111
112 <para>
[8374093]113 Install <application>HarfBuzz</application> by running the following
[32e13498]114 commands:
115 </para>
116
[9b8c04ed]117<screen><userinput>mkdir build &amp;&amp;
118cd build &amp;&amp;
119
[91318eb]120meson setup .. \
121 --prefix=/usr \
122 --buildtype=release \
[3d038a8]123 -Dcpp_std=c++17 \
124 -Dgraphite2=enabled &amp;&amp;
[9b8c04ed]125ninja</userinput></screen>
[32e13498]126
127 <para>
[9b8c04ed]128 To test the results, issue: <command>ninja test</command>.
[9db393f1]129 </para>
[32e13498]130
131 <para>
132 Now, as the <systemitem class="username">root</systemitem> user:
133 </para>
134
[9b8c04ed]135<screen role="root"><userinput>ninja install</userinput></screen>
[32e13498]136 </sect2>
137
[1e4ca8bb]138 <sect2 role="commands">
139 <title>Command Explanations</title>
140
[20f070d8]141 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
142 href="../../xincludes/meson-buildtype-release.xml"/>
143
[3d038a8]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
[1e4ca8bb]153 <para>
[b1ff43b]154 <parameter>-Dgraphite2=enabled</parameter>: This switch enables
[8b8a6c4]155 <application>Graphite2</application> support, which is required for
[6121fe5]156 building <xref linkend="texlive"/> or <xref linkend="libreoffice"/>
157 with system harfbuzz.
[1e4ca8bb]158 </para>
[b1ff43b]159<!--
[9b8c04ed]160 <para>
[5c14fb68]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
[2c87187]164 use for non developers.
[9b8c04ed]165 </para>
[b1ff43b]166-->
[ee98f114]167 <para>
[1eb2916]168 <option>-Ddocs=disabled</option>: If <xref linkend="gtk-doc"/> is
169 installed, the documentation is built and installed. This switch
170 prevents that.
[ee98f114]171 </para>
172
[1e4ca8bb]173 </sect2>
174
[32e13498]175 <sect2 role="content">
176 <title>Contents</title>
177
178 <segmentedlist>
179 <segtitle>Installed Programs</segtitle>
[f82ac3f]180 <segtitle>Installed Libraries</segtitle>
181 <segtitle>Installed Directories</segtitle>
[32e13498]182
183 <seglistitem>
184 <seg>
[429b408]185 hb-info,
186 hb-ot-shape-closure,
187 hb-shape,
188 hb-subset, and
189 hb-view (only if Cairo is installed)
[32e13498]190 </seg>
191 <seg>
[429b408]192 libharfbuzz.so,
193 libharfbuzz-cairo.so (only if Cairo is installed),
194 libharfbuzz-gobject.so,
195 libharfbuzz-icu.so, and
[41e68a2d]196 libharfbuzz-subset.so
[32e13498]197 </seg>
198 <seg>
[221df934]199 /usr/include/harbuzz,
200 /usr/lib/cmake/harfbuzz, and
201 /usr/share/gtk-doc/html/harfbuzz (optional)
[32e13498]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"?>
[c7d631c]210
[429b408]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
[0d12bbe]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:
[c7d631c]230 <command>hb-ot-shape-closure
[4c24eb0a]231 /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
[0d12bbe]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>
[32e13498]238
239 <varlistentry id="hb-shape">
240 <term><command>hb-shape</command></term>
241 <listitem>
242 <para>
[4c24eb0a]243 is used for the conversion of text strings into positioned glyphs
[32e13498]244 </para>
245 <indexterm zone="harfbuzz hb-shape">
246 <primary sortas="b-hb-shape">hb-shape</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
[18f18c2]250
251 <varlistentry id="hb-subset">
252 <term><command>hb-subset</command></term>
253 <listitem>
254 <para>
[4c24eb0a]255 is used to create subsets of fonts, and display text using them
[18f18c2]256 </para>
257 <indexterm zone="harfbuzz hb-subset">
258 <primary sortas="b-hb-subset">hb-subset</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
[c7d631c]262
[0d12bbe]263 <varlistentry id="hb-view">
264 <term><command>hb-view</command></term>
265 <listitem>
266 <para>
[f1ae52ff]267 displays a graphical view of a string shape using a
[8558044]268 particular font as a set of glyphs. The output format is
269 automatically defined by the file extension, the supported ones
[f1ae52ff]270 being ansi/png/svg/pdf/ps/eps. For example:
[c7d631c]271 <command>hb-view --output-file=hello.png
[4c24eb0a]272 /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
[0d12bbe]273 </para>
274 <indexterm zone="harfbuzz hb-view">
275 <primary sortas="b-hb-view">hb-view</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
[32e13498]279
280 <varlistentry id="libharfbuzz">
281 <term><filename class="libraryfile">libharfbuzz.so</filename></term>
282 <listitem>
283 <para>
[4c24eb0a]284 is the HarfBuzz text shaping library
[32e13498]285 </para>
286 <indexterm zone="harfbuzz libharfbuzz">
287 <primary sortas="c-libharfbuzz">libharfbuzz.so</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
[0d7900a]291
[429b408]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
[8374093]304 <varlistentry id="libharfbuzz-gobject">
305 <term><filename class="libraryfile">libharfbuzz-gobject.so</filename></term>
306 <listitem>
307 <para>
[4c24eb0a]308 provides GObject integration for the HarfBuzz text shaping library
[8374093]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>
[4c24eb0a]320 provides ICU integration for the HarfBuzz text shaping library
[8374093]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
[429b408]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
[32e13498]341 </variablelist>
[0d7900a]342
[32e13498]343 </sect2>
[0d7900a]344
[32e13498]345</sect1>
Note: See TracBrowser for help on using the repository browser.