[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 " ">
|
---|
[b3a11f45] | 10 | <!ENTITY harfbuzz-md5sum "a3f9e51043a5a14b409c52fe4ab1e29e">
|
---|
| 11 | <!ENTITY harfbuzz-size "18 MB">
|
---|
| 12 | <!ENTITY harfbuzz-buildsize "142 MB (with tests)">
|
---|
[f62c0690] | 13 | <!ENTITY harfbuzz-time "0.6 SBU (Using parallelism=4; with tests)">
|
---|
[32e13498] | 14 | ]>
|
---|
| 15 |
|
---|
[8374093] | 16 | <sect1 id="harfbuzz" xreflabel="HarfBuzz-&harfbuzz-version;">
|
---|
[32e13498] | 17 | <?dbhtml filename="harfbuzz.html"?>
|
---|
| 18 |
|
---|
| 19 |
|
---|
[8374093] | 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 |
|
---|
[aa0b625] | 34 | &lfs112_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">
|
---|
[39291c7c] | 74 | <xref linkend="gobject-introspection"/> (required if building GNOME),
|
---|
[dccc4d4] | 75 | <xref linkend="glib2"/> (required for Pango),
|
---|
[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"/>
|
---|
[572553b] | 81 | (after <xref role="nodep" linkend="harfbuzz"/> is installed, reinstall
|
---|
| 82 | <xref role="nodep" linkend="freetype2"/>)
|
---|
[32e13498] | 83 | </para>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para role="optional">
|
---|
[a0484a14] | 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),
|
---|
[b9f03437] | 90 | <xref linkend="git"/>,
|
---|
[92e3023] | 91 | <xref linkend="gtk-doc"/>,
|
---|
[1ea4deb] | 92 | <ulink url="https://pypi.org/project/FontTools/">FontTools</ulink>
|
---|
[48771ae] | 93 | (Python 3 module, for the test suite), and
|
---|
[92e3023] | 94 | <ulink url="https://www.colm.net/open-source/ragel/">ragel</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 | <para condition="html" role="usernotes">
|
---|
| 108 | User Notes: <ulink url="&blfs-wiki;/harfbuzz"/>
|
---|
| 109 | </para>
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="installation">
|
---|
[8374093] | 113 | <title>Installation of HarfBuzz</title>
|
---|
[32e13498] | 114 |
|
---|
| 115 | <para>
|
---|
[8374093] | 116 | Install <application>HarfBuzz</application> by running the following
|
---|
[32e13498] | 117 | commands:
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
[9b8c04ed] | 120 | <screen><userinput>mkdir build &&
|
---|
| 121 | cd build &&
|
---|
| 122 |
|
---|
[20f070d8] | 123 | meson --prefix=/usr \
|
---|
| 124 | --buildtype=release \
|
---|
[b1ff43b] | 125 | -Dgraphite2=enabled &&
|
---|
[9b8c04ed] | 126 | ninja</userinput></screen>
|
---|
[32e13498] | 127 |
|
---|
| 128 | <para>
|
---|
[9b8c04ed] | 129 | To test the results, issue: <command>ninja test</command>.
|
---|
[9db393f1] | 130 | </para>
|
---|
[32e13498] | 131 |
|
---|
| 132 | <para>
|
---|
| 133 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
[9b8c04ed] | 136 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[32e13498] | 137 | </sect2>
|
---|
| 138 |
|
---|
[1e4ca8bb] | 139 | <sect2 role="commands">
|
---|
| 140 | <title>Command Explanations</title>
|
---|
| 141 |
|
---|
[20f070d8] | 142 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 143 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 144 |
|
---|
[1e4ca8bb] | 145 | <para>
|
---|
[b1ff43b] | 146 | <parameter>-Dgraphite2=enabled</parameter>: This switch enables
|
---|
[8b8a6c4] | 147 | <application>Graphite2</application> support, which is required for
|
---|
[6121fe5] | 148 | building <xref linkend="texlive"/> or <xref linkend="libreoffice"/>
|
---|
| 149 | with system harfbuzz.
|
---|
[1e4ca8bb] | 150 | </para>
|
---|
[b1ff43b] | 151 | <!--
|
---|
[9b8c04ed] | 152 | <para>
|
---|
[5c14fb68] | 153 | <parameter>-Dbenchmark=disabled</parameter>: This switch disables
|
---|
| 154 | downloading and building the <application>google-benchmark</application>
|
---|
| 155 | subproject, which requires <xref linkend="git"/>, and is of no
|
---|
[2c87187] | 156 | use for non developers.
|
---|
[9b8c04ed] | 157 | </para>
|
---|
[b1ff43b] | 158 | -->
|
---|
[ee98f114] | 159 | <para>
|
---|
[1eb2916] | 160 | <option>-Ddocs=disabled</option>: If <xref linkend="gtk-doc"/> is
|
---|
| 161 | installed, the documentation is built and installed. This switch
|
---|
| 162 | prevents that.
|
---|
[ee98f114] | 163 | </para>
|
---|
| 164 |
|
---|
[1e4ca8bb] | 165 | </sect2>
|
---|
| 166 |
|
---|
[32e13498] | 167 | <sect2 role="content">
|
---|
| 168 | <title>Contents</title>
|
---|
| 169 |
|
---|
| 170 | <segmentedlist>
|
---|
| 171 | <segtitle>Installed Programs</segtitle>
|
---|
[f82ac3f] | 172 | <segtitle>Installed Libraries</segtitle>
|
---|
| 173 | <segtitle>Installed Directories</segtitle>
|
---|
[32e13498] | 174 |
|
---|
| 175 | <seglistitem>
|
---|
| 176 | <seg>
|
---|
[6121fe5] | 177 | hb-ot-shape-closure, hb-shape, hb-subset, and
|
---|
[0d12bbe] | 178 | hb-view (only if cairo is installed)
|
---|
[32e13498] | 179 | </seg>
|
---|
| 180 | <seg>
|
---|
[8558044] | 181 | libharfbuzz.so, libharfbuzz-gobject.so, libharfbuzz-icu.so, and
|
---|
[41e68a2d] | 182 | libharfbuzz-subset.so
|
---|
[32e13498] | 183 | </seg>
|
---|
| 184 | <seg>
|
---|
[221df934] | 185 | /usr/include/harbuzz,
|
---|
| 186 | /usr/lib/cmake/harfbuzz, and
|
---|
| 187 | /usr/share/gtk-doc/html/harfbuzz (optional)
|
---|
[32e13498] | 188 | </seg>
|
---|
| 189 | </seglistitem>
|
---|
| 190 | </segmentedlist>
|
---|
| 191 |
|
---|
| 192 | <variablelist>
|
---|
| 193 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 194 | <?dbfo list-presentation="list"?>
|
---|
| 195 | <?dbhtml list-presentation="table"?>
|
---|
[c7d631c] | 196 |
|
---|
[0d12bbe] | 197 | <varlistentry id="hb-ot-shape-closure">
|
---|
| 198 | <term><command>hb-ot-shape-closure</command></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>
|
---|
| 201 | gives the set of characters contained in a string, represented as
|
---|
| 202 | single characters and/or single character names. Example:
|
---|
[c7d631c] | 203 | <command>hb-ot-shape-closure
|
---|
[4c24eb0a] | 204 | /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
|
---|
[0d12bbe] | 205 | </para>
|
---|
| 206 | <indexterm zone="harfbuzz hb-ot-shape-closure">
|
---|
| 207 | <primary sortas="b-hb-ot-shape-closure">hb-ot-shape-closure</primary>
|
---|
| 208 | </indexterm>
|
---|
| 209 | </listitem>
|
---|
| 210 | </varlistentry>
|
---|
[32e13498] | 211 |
|
---|
| 212 | <varlistentry id="hb-shape">
|
---|
| 213 | <term><command>hb-shape</command></term>
|
---|
| 214 | <listitem>
|
---|
| 215 | <para>
|
---|
[4c24eb0a] | 216 | is used for the conversion of text strings into positioned glyphs
|
---|
[32e13498] | 217 | </para>
|
---|
| 218 | <indexterm zone="harfbuzz hb-shape">
|
---|
| 219 | <primary sortas="b-hb-shape">hb-shape</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
[18f18c2] | 223 |
|
---|
| 224 | <varlistentry id="hb-subset">
|
---|
| 225 | <term><command>hb-subset</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>
|
---|
[4c24eb0a] | 228 | is used to create subsets of fonts, and display text using them
|
---|
[18f18c2] | 229 | </para>
|
---|
| 230 | <indexterm zone="harfbuzz hb-subset">
|
---|
| 231 | <primary sortas="b-hb-subset">hb-subset</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
[c7d631c] | 235 |
|
---|
[0d12bbe] | 236 | <varlistentry id="hb-view">
|
---|
| 237 | <term><command>hb-view</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>
|
---|
[f1ae52ff] | 240 | displays a graphical view of a string shape using a
|
---|
[8558044] | 241 | particular font as a set of glyphs. The output format is
|
---|
| 242 | automatically defined by the file extension, the supported ones
|
---|
[f1ae52ff] | 243 | being ansi/png/svg/pdf/ps/eps. For example:
|
---|
[c7d631c] | 244 | <command>hb-view --output-file=hello.png
|
---|
[4c24eb0a] | 245 | /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World."</command>
|
---|
[0d12bbe] | 246 | </para>
|
---|
| 247 | <indexterm zone="harfbuzz hb-view">
|
---|
| 248 | <primary sortas="b-hb-view">hb-view</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
[32e13498] | 252 |
|
---|
| 253 | <varlistentry id="libharfbuzz">
|
---|
| 254 | <term><filename class="libraryfile">libharfbuzz.so</filename></term>
|
---|
| 255 | <listitem>
|
---|
| 256 | <para>
|
---|
[4c24eb0a] | 257 | is the HarfBuzz text shaping library
|
---|
[32e13498] | 258 | </para>
|
---|
| 259 | <indexterm zone="harfbuzz libharfbuzz">
|
---|
| 260 | <primary sortas="c-libharfbuzz">libharfbuzz.so</primary>
|
---|
| 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
[0d7900a] | 264 |
|
---|
[8374093] | 265 | <varlistentry id="libharfbuzz-gobject">
|
---|
| 266 | <term><filename class="libraryfile">libharfbuzz-gobject.so</filename></term>
|
---|
| 267 | <listitem>
|
---|
| 268 | <para>
|
---|
[4c24eb0a] | 269 | provides GObject integration for the HarfBuzz text shaping library
|
---|
[8374093] | 270 | </para>
|
---|
| 271 | <indexterm zone="harfbuzz libharfbuzz-gobject">
|
---|
| 272 | <primary sortas="c-libharfbuzz-gobject">libharfbuzz-gobject.so</primary>
|
---|
| 273 | </indexterm>
|
---|
| 274 | </listitem>
|
---|
| 275 | </varlistentry>
|
---|
| 276 |
|
---|
| 277 | <varlistentry id="libharfbuzz-icu">
|
---|
| 278 | <term><filename class="libraryfile">libharfbuzz-icu.so</filename></term>
|
---|
| 279 | <listitem>
|
---|
| 280 | <para>
|
---|
[4c24eb0a] | 281 | provides ICU integration for the HarfBuzz text shaping library
|
---|
[8374093] | 282 | </para>
|
---|
| 283 | <indexterm zone="harfbuzz libharfbuzz-icu">
|
---|
| 284 | <primary sortas="c-libharfbuzz-icu">libharfbuzz-icu.so</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
[32e13498] | 289 | </variablelist>
|
---|
[0d7900a] | 290 |
|
---|
[32e13498] | 291 | </sect2>
|
---|
[0d7900a] | 292 |
|
---|
[32e13498] | 293 | </sect1>
|
---|