[32e13498] | 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 |
|
---|
[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 " ">
|
---|
[9b8c04ed] | 10 | <!ENTITY harfbuzz-md5sum "6d8393e6fb84edfb15997d1c5ba35b1b">
|
---|
| 11 | <!ENTITY harfbuzz-size "9.1 MB">
|
---|
[5c14fb68] | 12 | <!ENTITY harfbuzz-buildsize "229 MB (add 6 MB for tests)">
|
---|
| 13 | <!ENTITY harfbuzz-time "0.3 SBU (Using parallelism=4; add 0.2 SBU for tests)">
|
---|
[32e13498] | 14 | ]>
|
---|
| 15 |
|
---|
[8374093] | 16 | <sect1 id="harfbuzz" xreflabel="HarfBuzz-&harfbuzz-version;">
|
---|
[32e13498] | 17 | <?dbhtml filename="harfbuzz.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[8374093] | 24 | <title>HarfBuzz-&harfbuzz-version;</title>
|
---|
[32e13498] | 25 |
|
---|
| 26 | <indexterm zone="harfbuzz">
|
---|
[8374093] | 27 | <primary sortas="a-HarfBuzz">HarfBuzz</primary>
|
---|
[32e13498] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to Harfbuzz</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
[8374093] | 34 | The <application>HarfBuzz</application> package contains an OpenType text
|
---|
[32e13498] | 35 | shaping engine.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[d437f756] | 38 | &lfs101_checked;
|
---|
[32e13498] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&harfbuzz-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&harfbuzz-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &harfbuzz-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &harfbuzz-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &harfbuzz-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &harfbuzz-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[8374093] | 74 | <bridgehead renderas="sect3">HarfBuzz Dependencies</bridgehead>
|
---|
[32e13498] | 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 77 | <para role="recommended">
|
---|
[39291c7c] | 78 | <xref linkend="gobject-introspection"/> (required if building GNOME),
|
---|
[dccc4d4] | 79 | <xref linkend="glib2"/> (required for Pango),
|
---|
[f62b93bb] | 80 | <xref role="first" linkend="graphite2"/> (required for building
|
---|
| 81 | <xref role="nodep" linkend="texlive"/> or
|
---|
| 82 | <xref role="nodep" linkend="libreoffice"/> with system harfbuzz),
|
---|
[572553b] | 83 | <xref linkend="icu"/>, and
|
---|
[13df334] | 84 | <xref role="first" linkend="freetype2"/>
|
---|
[572553b] | 85 | (after <xref role="nodep" linkend="harfbuzz"/> is installed, reinstall
|
---|
| 86 | <xref role="nodep" linkend="freetype2"/>)
|
---|
[32e13498] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 90 | <para role="optional">
|
---|
[a0484a14] | 91 | <xref linkend="cairo"/> (circular: build cairo and all its recommended
|
---|
| 92 | dependencies, including harfbuzz, first, then rebuild harfbuzz if the
|
---|
| 93 | cairo backend is needed),
|
---|
[b9f03437] | 94 | <xref linkend="git"/>,
|
---|
[1ea4deb] | 95 | <xref linkend="gtk-doc"/>, and
|
---|
| 96 | <ulink url="https://pypi.org/project/FontTools/">FontTools</ulink>
|
---|
[6d5276c] | 97 | (Python 3 module, for the testsuite)
|
---|
[32e13498] | 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <warning>
|
---|
| 101 | <para>
|
---|
| 102 | Recommended dependencies are not strictly required to build
|
---|
| 103 | the package. However, you might not get expected results at
|
---|
| 104 | runtime if you don't install them. Please do not report bugs
|
---|
| 105 | with this package if you <emphasis>have not</emphasis>
|
---|
| 106 | installed the recommended dependencies.
|
---|
| 107 | </para>
|
---|
| 108 | </warning>
|
---|
| 109 |
|
---|
| 110 | <para condition="html" role="usernotes">
|
---|
| 111 | User Notes: <ulink url="&blfs-wiki;/harfbuzz"/>
|
---|
| 112 | </para>
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="installation">
|
---|
[8374093] | 116 | <title>Installation of HarfBuzz</title>
|
---|
[32e13498] | 117 |
|
---|
| 118 | <para>
|
---|
[8374093] | 119 | Install <application>HarfBuzz</application> by running the following
|
---|
[32e13498] | 120 | commands:
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
[9b8c04ed] | 123 | <screen><userinput>mkdir build &&
|
---|
| 124 | cd build &&
|
---|
| 125 |
|
---|
[5c14fb68] | 126 | meson --prefix=/usr -Dgraphite=enabled -Dbenchmark=disabled &&
|
---|
[9b8c04ed] | 127 | ninja</userinput></screen>
|
---|
[32e13498] | 128 |
|
---|
| 129 | <para>
|
---|
[9b8c04ed] | 130 | To test the results, issue: <command>ninja test</command>.
|
---|
[9db393f1] | 131 | </para>
|
---|
[32e13498] | 132 |
|
---|
| 133 | <para>
|
---|
| 134 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
[9b8c04ed] | 137 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[32e13498] | 138 | </sect2>
|
---|
| 139 |
|
---|
[1e4ca8bb] | 140 | <sect2 role="commands">
|
---|
| 141 | <title>Command Explanations</title>
|
---|
| 142 |
|
---|
[9b8c04ed] | 143 | <!--
|
---|
[f82ac3f] | 144 | <para>
|
---|
[9b8c04ed] | 145 | <parameter>- -with-gobject</parameter>: This switch enables building
|
---|
[8374093] | 146 | of the <application>HarfBuzz</application> GObject wrapper. Remove
|
---|
[f82ac3f] | 147 | it if you did not install <application>GLib</application>.
|
---|
| 148 | </para>
|
---|
[9b8c04ed] | 149 | -->
|
---|
[1e4ca8bb] | 150 | <para>
|
---|
[9b8c04ed] | 151 | <parameter>-Dgraphite=enabled</parameter>: This switch enables
|
---|
[8b8a6c4] | 152 | <application>Graphite2</application> support, which is required for
|
---|
[6121fe5] | 153 | building <xref linkend="texlive"/> or <xref linkend="libreoffice"/>
|
---|
| 154 | with system harfbuzz.
|
---|
[1e4ca8bb] | 155 | </para>
|
---|
| 156 |
|
---|
[9b8c04ed] | 157 | <para>
|
---|
[5c14fb68] | 158 | <parameter>-Dbenchmark=disabled</parameter>: This switch disables
|
---|
| 159 | downloading and building the <application>google-benchmark</application>
|
---|
| 160 | subproject, which requires <xref linkend="git"/>, and is of no
|
---|
| 161 | use for non developpers.
|
---|
[9b8c04ed] | 162 | </para>
|
---|
[f82ac3f] | 163 |
|
---|
[ee98f114] | 164 | <para>
|
---|
[5c14fb68] | 165 | <option>-Ddocs=false</option>: If <xref linkend="gtk-doc"/> is installed,
|
---|
| 166 | the documentation is built and installed. This switch prevents that.
|
---|
[ee98f114] | 167 | </para>
|
---|
| 168 |
|
---|
[1e4ca8bb] | 169 | </sect2>
|
---|
| 170 |
|
---|
[32e13498] | 171 | <sect2 role="content">
|
---|
| 172 | <title>Contents</title>
|
---|
| 173 |
|
---|
| 174 | <segmentedlist>
|
---|
| 175 | <segtitle>Installed Programs</segtitle>
|
---|
[f82ac3f] | 176 | <segtitle>Installed Libraries</segtitle>
|
---|
| 177 | <segtitle>Installed Directories</segtitle>
|
---|
[32e13498] | 178 |
|
---|
| 179 | <seglistitem>
|
---|
| 180 | <seg>
|
---|
[6121fe5] | 181 | hb-ot-shape-closure, hb-shape, hb-subset, and
|
---|
[0d12bbe] | 182 | hb-view (only if cairo is installed)
|
---|
[32e13498] | 183 | </seg>
|
---|
| 184 | <seg>
|
---|
[41e68a2d] | 185 | libharfbuzz.so, libharfbuzz-gobject.so, libharfbuzz-icu.so, and
|
---|
| 186 | libharfbuzz-subset.so
|
---|
[32e13498] | 187 | </seg>
|
---|
| 188 | <seg>
|
---|
[6121fe5] | 189 | /usr/{include,lib/cmake,share/gtk-doc/html}/harfbuzz
|
---|
[32e13498] | 190 | </seg>
|
---|
| 191 | </seglistitem>
|
---|
| 192 | </segmentedlist>
|
---|
| 193 |
|
---|
| 194 | <variablelist>
|
---|
| 195 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 196 | <?dbfo list-presentation="list"?>
|
---|
| 197 | <?dbhtml list-presentation="table"?>
|
---|
[c7d631c] | 198 |
|
---|
[0d12bbe] | 199 | <varlistentry id="hb-ot-shape-closure">
|
---|
| 200 | <term><command>hb-ot-shape-closure</command></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>
|
---|
| 203 | gives the set of characters contained in a string, represented as
|
---|
| 204 | single characters and/or single character names. Example:
|
---|
[c7d631c] | 205 | <command>hb-ot-shape-closure
|
---|
[4c24eb0a] | 206 | /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
|
---|
[0d12bbe] | 207 | </para>
|
---|
| 208 | <indexterm zone="harfbuzz hb-ot-shape-closure">
|
---|
| 209 | <primary sortas="b-hb-ot-shape-closure">hb-ot-shape-closure</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
[32e13498] | 213 |
|
---|
| 214 | <varlistentry id="hb-shape">
|
---|
| 215 | <term><command>hb-shape</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>
|
---|
[4c24eb0a] | 218 | is used for the conversion of text strings into positioned glyphs
|
---|
[32e13498] | 219 | </para>
|
---|
| 220 | <indexterm zone="harfbuzz hb-shape">
|
---|
| 221 | <primary sortas="b-hb-shape">hb-shape</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
[18f18c2] | 225 |
|
---|
| 226 | <varlistentry id="hb-subset">
|
---|
| 227 | <term><command>hb-subset</command></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>
|
---|
[4c24eb0a] | 230 | is used to create subsets of fonts, and display text using them
|
---|
[18f18c2] | 231 | </para>
|
---|
| 232 | <indexterm zone="harfbuzz hb-subset">
|
---|
| 233 | <primary sortas="b-hb-subset">hb-subset</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
[c7d631c] | 237 |
|
---|
[0d12bbe] | 238 | <varlistentry id="hb-view">
|
---|
| 239 | <term><command>hb-view</command></term>
|
---|
| 240 | <listitem>
|
---|
| 241 | <para>
|
---|
[f1ae52ff] | 242 | displays a graphical view of a string shape using a
|
---|
| 243 | particular font as a set of glyphs. The output format is
|
---|
| 244 | automatically defined by the file extension, the supported ones
|
---|
| 245 | being ansi/png/svg/pdf/ps/eps. For example:
|
---|
[c7d631c] | 246 | <command>hb-view --output-file=hello.png
|
---|
[4c24eb0a] | 247 | /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
|
---|
[0d12bbe] | 248 | </para>
|
---|
| 249 | <indexterm zone="harfbuzz hb-view">
|
---|
| 250 | <primary sortas="b-hb-view">hb-view</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
[32e13498] | 254 |
|
---|
| 255 | <varlistentry id="libharfbuzz">
|
---|
| 256 | <term><filename class="libraryfile">libharfbuzz.so</filename></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>
|
---|
[4c24eb0a] | 259 | is the HarfBuzz text shaping library
|
---|
[32e13498] | 260 | </para>
|
---|
| 261 | <indexterm zone="harfbuzz libharfbuzz">
|
---|
| 262 | <primary sortas="c-libharfbuzz">libharfbuzz.so</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
[0d7900a] | 266 |
|
---|
[8374093] | 267 | <varlistentry id="libharfbuzz-gobject">
|
---|
| 268 | <term><filename class="libraryfile">libharfbuzz-gobject.so</filename></term>
|
---|
| 269 | <listitem>
|
---|
| 270 | <para>
|
---|
[4c24eb0a] | 271 | provides GObject integration for the HarfBuzz text shaping library
|
---|
[8374093] | 272 | </para>
|
---|
| 273 | <indexterm zone="harfbuzz libharfbuzz-gobject">
|
---|
| 274 | <primary sortas="c-libharfbuzz-gobject">libharfbuzz-gobject.so</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
| 279 | <varlistentry id="libharfbuzz-icu">
|
---|
| 280 | <term><filename class="libraryfile">libharfbuzz-icu.so</filename></term>
|
---|
| 281 | <listitem>
|
---|
| 282 | <para>
|
---|
[4c24eb0a] | 283 | provides ICU integration for the HarfBuzz text shaping library
|
---|
[8374093] | 284 | </para>
|
---|
| 285 | <indexterm zone="harfbuzz libharfbuzz-icu">
|
---|
| 286 | <primary sortas="c-libharfbuzz-icu">libharfbuzz-icu.so</primary>
|
---|
| 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
[32e13498] | 291 | </variablelist>
|
---|
[0d7900a] | 292 |
|
---|
[32e13498] | 293 | </sect2>
|
---|
[0d7900a] | 294 |
|
---|
[32e13498] | 295 | </sect1>
|
---|