[2a75b9b] | 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 |
|
---|
| 7 | <!-- the master source at palaso.org looks easy in a browser, but in fact
|
---|
| 8 | everything is in numbered attachment directories, one per file, so that will
|
---|
[73006114] | 9 | probably be even worse than sf.net for finding if there is a new version -->
|
---|
[2a75b9b] | 10 | <!ENTITY graphite2-download-http
|
---|
| 11 | "&sourceforge-repo;/silgraphite/graphite2-&graphite2-version;.tgz">
|
---|
| 12 | <!ENTITY graphite2-download-ftp " ">
|
---|
[94b4def9] | 13 | <!ENTITY graphite2-md5sum "5b8d22a8bbf031838e31432868c0109c">
|
---|
| 14 | <!ENTITY graphite2-size "3.8 MB">
|
---|
| 15 | <!ENTITY graphite2-buildsize "27 MB (with docs and tests)">
|
---|
| 16 | <!ENTITY graphite2-time "0.3 SBU (with docs and tests)">
|
---|
[2a75b9b] | 17 | ]>
|
---|
| 18 |
|
---|
| 19 | <sect1 id="graphite2" xreflabel="Graphite2-&graphite2-version;">
|
---|
| 20 | <?dbhtml filename="graphite2.html"?>
|
---|
| 21 |
|
---|
| 22 | <sect1info>
|
---|
| 23 | <othername>$LastChangedBy$</othername>
|
---|
| 24 | <date>$Date$</date>
|
---|
| 25 | </sect1info>
|
---|
| 26 |
|
---|
| 27 | <title>Graphite2-&graphite2-version;</title>
|
---|
| 28 |
|
---|
| 29 | <indexterm zone="graphite2">
|
---|
| 30 | <primary sortas="a-Graphite2">Graphite2</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to Graphite2</title>
|
---|
| 35 |
|
---|
| 36 | <para>
|
---|
| 37 | <application>Graphite2</application> is a rendering engine for graphite
|
---|
| 38 | fonts. These are TrueType fonts with additional tables containing smart
|
---|
| 39 | rendering information and were originally developed to support complex
|
---|
| 40 | non-Roman writing systems. They may contain rules for e.g. ligatures,
|
---|
| 41 | glyph substitution, kerning, justification - this can make them useful
|
---|
| 42 | even on text written in Roman writing systems such as English. Note that
|
---|
| 43 | <application>firefox</application> provides an internal copy of the
|
---|
| 44 | graphite engine and cannot use a system version, but it too should benefit
|
---|
| 45 | from the availability of graphite fonts.
|
---|
| 46 | </para>
|
---|
| 47 |
|
---|
[57977df] | 48 | &lfs79_built;
|
---|
| 49 | <!-- I do not have any Graphite2 fonts to use with this. Should I mark it as checked anyway? -->
|
---|
[2a75b9b] | 50 |
|
---|
| 51 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 52 | <itemizedlist spacing="compact">
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download (HTTP): <ulink url="&graphite2-download-http;"/>
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download (FTP): <ulink url="&graphite2-download-ftp;"/>
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Download MD5 sum: &graphite2-md5sum;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Download size: &graphite2-size;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>
|
---|
| 75 | Estimated disk space required: &graphite2-buildsize;
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>
|
---|
| 80 | Estimated build time: &graphite2-time;
|
---|
| 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect3">Graphite2 Dependencies</bridgehead>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 88 | <para role="required">
|
---|
[affbf28] | 89 | <xref linkend="cmake"/>
|
---|
[2a75b9b] | 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 93 | <para role="optional">
|
---|
[affbf28] | 94 | <xref linkend="freetype2"/>,
|
---|
| 95 | <xref linkend="python2"/>, and
|
---|
[2a75b9b] | 96 | <ulink url="http://sourceforge.net/projects/silgraphite/files/silgraphite/2.3.1/">silgraphite</ulink>
|
---|
| 97 | to build the <command>comparerender</command> test and benchmarking tool,
|
---|
| 98 | and if that is present,
|
---|
| 99 | <xref linkend="harfbuzz"/> to add more functionality to it (this is a
|
---|
| 100 | circular dependency, you would need to first build
|
---|
| 101 | <application>graphite2</application> without
|
---|
| 102 | <application>harfbuzz</application>).
|
---|
| 103 | </para>
|
---|
[94b4def9] | 104 |
|
---|
| 105 | <para>To build the documentation:
|
---|
[2a75b9b] | 106 | <ulink url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink>,
|
---|
[94b4def9] | 107 | <xref linkend="doxygen"/>,
|
---|
| 108 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>), and
|
---|
| 109 | <ulink url="http://dblatex.sourceforge.net/">
|
---|
| 110 | dblatex</ulink> (for PDF docs)
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <para>To execute the test suite you will need
|
---|
| 114 | <ulink url="https://pypi.python.org/pypi/FontTools">FontTools</ulink>
|
---|
| 115 | (Python 2 module), otherwise, the "cmp" tests fail.
|
---|
[2a75b9b] | 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <bridgehead renderas="sect4">Optional (at runtime)</bridgehead>
|
---|
| 119 | <para role="optional">
|
---|
| 120 | You will need at least one suitable <ulink
|
---|
| 121 | url="http://scripts.sil.org/cms/scripts/page.php?site_id=projects&item_id=graphite_fonts">graphite font</ulink>
|
---|
| 122 | for the package to be useful.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <para condition="html" role="usernotes">
|
---|
| 126 | User Notes: <ulink url="&blfs-wiki;/graphite2"/>
|
---|
| 127 | </para>
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="installation">
|
---|
| 131 | <title>Installation of Graphite2</title>
|
---|
| 132 |
|
---|
[8964c2f] | 133 | <para>
|
---|
| 134 | Some tests fail if
|
---|
| 135 | <ulink url="https://pypi.python.org/pypi/FontTools">FontTools</ulink>
|
---|
| 136 | (Python 2 module) is not installed. These tests can be removed with:
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <screen><userinput>sed -i '/cmptest/d' tests/CMakeLists.txt</userinput></screen>
|
---|
| 140 |
|
---|
[2a75b9b] | 141 | <para>
|
---|
| 142 | Install <application>Graphite2</application> by running the following
|
---|
| 143 | commands:
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
| 146 | <screen><userinput>mkdir build &&
|
---|
[ac38e9dc] | 147 | cd build &&
|
---|
| 148 |
|
---|
[94b4def9] | 149 | cmake -G "Unix Makefiles" \
|
---|
| 150 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
[8964c2f] | 151 | -Wno-dev .. &&
|
---|
[94b4def9] | 152 |
|
---|
[2a75b9b] | 153 | make</userinput></screen>
|
---|
| 154 |
|
---|
| 155 | <para>
|
---|
[94b4def9] | 156 | If you wish to build the documentation, issue:
|
---|
| 157 | </para>
|
---|
| 158 |
|
---|
| 159 | <screen><userinput>make docs</userinput></screen>
|
---|
| 160 |
|
---|
| 161 | <para>
|
---|
| 162 | To test the results, issue: <command>make test</command>.
|
---|
[2a75b9b] | 163 | </para>
|
---|
| 164 |
|
---|
| 165 | <para>
|
---|
| 166 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 167 | </para>
|
---|
| 168 |
|
---|
| 169 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[94b4def9] | 170 |
|
---|
| 171 | <para>
|
---|
| 172 | If you built the documentation, install, as the
|
---|
| 173 | <systemitem class="username">root</systemitem> user:
|
---|
| 174 | </para>
|
---|
| 175 |
|
---|
| 176 | <screen role="root"><userinput>install -v -d -m755 /usr/share/doc/graphite2-&graphite2-version;/api &&
|
---|
| 177 | cp -v -r -f doc/doxygen/{html,latex/refman.pdf} \
|
---|
| 178 | /usr/share/doc/graphite2-&graphite2-version;/api &&
|
---|
| 179 | cp -v -r -f doc/{GTF,manual}.html \
|
---|
| 180 | /usr/share/doc/graphite2-&graphite2-version;</userinput></screen>
|
---|
| 181 |
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|
| 184 | <sect2 role="commands">
|
---|
| 185 | <title>Command Explanations</title>
|
---|
| 186 |
|
---|
| 187 | <para><option>-DCMAKE_VERBOSE_MAKEFILE=ON</option>: This switch turns on
|
---|
| 188 | build verbose mode.</para>
|
---|
| 189 |
|
---|
[2a75b9b] | 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | <sect2 role="content">
|
---|
| 193 | <title>Contents</title>
|
---|
| 194 |
|
---|
| 195 | <segmentedlist>
|
---|
| 196 | <segtitle>Installed Programs</segtitle>
|
---|
| 197 | <segtitle>Installed Libraries</segtitle>
|
---|
| 198 | <segtitle>Installed Directories</segtitle>
|
---|
| 199 |
|
---|
| 200 | <seglistitem>
|
---|
| 201 | <seg>
|
---|
| 202 | gr2fonttest, and optionally comparerender
|
---|
| 203 | </seg>
|
---|
| 204 | <seg>
|
---|
| 205 | libgraphite2.so
|
---|
| 206 | </seg>
|
---|
| 207 | <seg>
|
---|
[94b4def9] | 208 | /usr/{include,share}/graphite2 and optionally
|
---|
| 209 | /usr/share/doc/graphite2-&graphite2-version;
|
---|
[2a75b9b] | 210 | </seg>
|
---|
| 211 | </seglistitem>
|
---|
| 212 | </segmentedlist>
|
---|
| 213 |
|
---|
| 214 | <variablelist>
|
---|
| 215 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 216 | <?dbfo list-presentation="list"?>
|
---|
| 217 | <?dbhtml list-presentation="table"?>
|
---|
| 218 |
|
---|
| 219 | <varlistentry id="comparerender">
|
---|
| 220 | <term><command>comparerender</command></term>
|
---|
| 221 | <listitem>
|
---|
| 222 | <para>
|
---|
| 223 | is a test and benchmarking tool.
|
---|
| 224 | </para>
|
---|
| 225 | <indexterm zone="graphite2 comparerender">
|
---|
| 226 | <primary sortas="b-comparerender">comparerender</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
| 231 | <varlistentry id="gr2fonttest">
|
---|
| 232 | <term><command>gr2fonttest</command></term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>
|
---|
| 235 | is a diagnostic console tool for graphite fonts.
|
---|
| 236 | </para>
|
---|
| 237 | <indexterm zone="graphite2 gr2fonttest">
|
---|
| 238 | <primary sortas="b-gr2fonttest">gr2fonttest</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
| 243 | <varlistentry id="libgraphite2">
|
---|
| 244 | <term><filename class="libraryfile">libgraphite2.so</filename></term>
|
---|
| 245 | <listitem>
|
---|
| 246 | <para>
|
---|
| 247 | is a rendering engine for graphite fonts.
|
---|
| 248 | </para>
|
---|
| 249 | <indexterm zone="graphite2 libgraphite2">
|
---|
| 250 | <primary sortas="c-libgraphite2">libgraphite2.so</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | </variablelist>
|
---|
| 256 |
|
---|
| 257 | </sect2>
|
---|
| 258 |
|
---|
| 259 | </sect1>
|
---|