|
Packit Service |
5bcba8 |
<chapter id="install-harfbuzz">
|
|
Packit Service |
5bcba8 |
<title>Install Harfbuzz</title>
|
|
Packit Service |
5bcba8 |
<section id="download">
|
|
Packit Service |
5bcba8 |
<title id="download.title">Download</title>
|
|
Packit Service |
5bcba8 |
<para>
|
|
Packit Service |
5bcba8 |
For tarball releases of HarfBuzz, look
|
|
Packit Service |
5bcba8 |
<ulink url="http://www.freedesktop.org/software/harfbuzz/release/">here</ulink>.
|
|
Packit Service |
5bcba8 |
At the same place you will
|
|
Packit Service |
5bcba8 |
also find Win32 binary bundles that include libharfbuzz DLL, hb-view.exe,
|
|
Packit Service |
5bcba8 |
hb-shape.exe, and all dependencies.
|
|
Packit Service |
5bcba8 |
</para>
|
|
Packit Service |
5bcba8 |
<para>
|
|
Packit Service |
5bcba8 |
The canonical source tree is available
|
|
Packit Service |
5bcba8 |
<ulink url="http://cgit.freedesktop.org/harfbuzz/">here</ulink>.
|
|
Packit Service |
5bcba8 |
Also available on <ulink url="https://github.com/behdad/harfbuzz">github</ulink>.
|
|
Packit Service |
5bcba8 |
</para>
|
|
Packit Service |
5bcba8 |
<para>
|
|
Packit Service |
5bcba8 |
The API that comes with <filename class='headerfile'>hb.h</filename> will
|
|
Packit Service |
5bcba8 |
not change incompatibly. Other, peripheral, headers are more likely to go
|
|
Packit Service |
5bcba8 |
through minor modifications, but again, will do our best to never change
|
|
Packit Service |
5bcba8 |
API in an incompatible way. We will never break the ABI.
|
|
Packit Service |
5bcba8 |
</para>
|
|
Packit Service |
5bcba8 |
<para>
|
|
Packit Service |
5bcba8 |
If you are not sure whether Pango or HarfBuzz is right for you, read
|
|
Packit Service |
5bcba8 |
<ulink url="http://mces.blogspot.in/2009/11/pango-vs-harfbuzz.html">this</ulink>.
|
|
Packit Service |
5bcba8 |
</para>
|
|
Packit Service |
5bcba8 |
</section>
|
|
Packit Service |
5bcba8 |
<section id="building">
|
|
Packit Service |
5bcba8 |
<title>Building</title>
|
|
Packit Service |
5bcba8 |
<para>
|
|
Packit Service |
5bcba8 |
On Linux, install the development packages for FreeType, Cairo, and GLib.
|
|
Packit Service |
5bcba8 |
For example, on Ubuntu / Debian, you would do:
|
|
Packit Service |
5bcba8 |
<programlisting>
|
|
Packit Service |
5bcba8 |
<command>sudo apt-get install</command> <package>gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev</package>
|
|
Packit Service |
5bcba8 |
</programlisting>
|
|
Packit Service |
5bcba8 |
whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
|
|
Packit Service |
5bcba8 |
<programlisting>
|
|
Packit Service |
5bcba8 |
<command>sudo yum install</command> <package>gcc gcc-c++ freetype-devel glib2-devel cairo-devel</package>
|
|
Packit Service |
5bcba8 |
</programlisting>
|
|
Packit Service |
5bcba8 |
or using MacPorts:
|
|
Packit Service |
5bcba8 |
<programlisting>
|
|
Packit Service |
5bcba8 |
<command>sudo port install</command> <package>freetype glib2 cairo</package>
|
|
Packit Service |
5bcba8 |
</programlisting>
|
|
Packit Service |
5bcba8 |
</para>
|
|
Packit Service |
5bcba8 |
<para>
|
|
Packit Service |
5bcba8 |
If you are using a tarball, you can now proceed to running
|
|
Packit Service |
5bcba8 |
<command>configure</command> and <command>make</command> as with any
|
|
Packit Service |
5bcba8 |
other standard package. That should leave you with a shared library in
|
|
Packit Service |
5bcba8 |
<filename>src/</filename>, and a few utility programs including hb-view
|
|
Packit Service |
5bcba8 |
and hb-shape under <filename>util/</filename>.
|
|
Packit Service |
5bcba8 |
</para>
|
|
Packit Service |
5bcba8 |
<para>
|
|
Packit Service |
5bcba8 |
If you are bootstraping from git, you need a few more tools before you
|
|
Packit Service |
5bcba8 |
can run <filename>autogen.sh</filename> for the first time. Namely,
|
|
Packit Service |
5bcba8 |
pkg-config and <ulink url="http://www.complang.org/ragel/">ragel</ulink>.
|
|
Packit Service |
5bcba8 |
Again, on Ubuntu / Debian:
|
|
Packit Service |
5bcba8 |
<programlisting>
|
|
Packit Service |
5bcba8 |
<command>sudo apt-get install</command> <package>autoconf automake libtool pkg-config ragel gtk-doc-tools</package>
|
|
Packit Service |
5bcba8 |
</programlisting>
|
|
Packit Service |
5bcba8 |
and on Fedora, RHEL, CentOS:
|
|
Packit Service |
5bcba8 |
<programlisting>
|
|
Packit Service |
5bcba8 |
<command>sudo yum install</command> <package>autoconf automake libtool pkgconfig ragel gtk-doc</package>
|
|
Packit Service |
5bcba8 |
</programlisting>
|
|
Packit Service |
5bcba8 |
or using MacPorts:
|
|
Packit Service |
5bcba8 |
<programlisting>
|
|
Packit Service |
5bcba8 |
<command>sudo port install</command> <package>autoconf automake libtool pkgconfig ragel gtk-doc</package>
|
|
Packit Service |
5bcba8 |
</programlisting>
|
|
Packit Service |
5bcba8 |
</para>
|
|
Packit Service |
5bcba8 |
</section>
|
|
Packit Service |
5bcba8 |
</chapter>
|