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