[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 " ">
|
---|
[16e895e] | 13 | <!ENTITY graphite2-md5sum "7cda6fc6bc197b216777b15ce52c38a8">
|
---|
| 14 | <!ENTITY graphite2-size "6.5 MB">
|
---|
[8763a1da] | 15 | <!ENTITY graphite2-buildsize "69 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 |
|
---|
[f3429309] | 48 | &lfs78_checked;
|
---|
[2a75b9b] | 49 |
|
---|
| 50 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 51 | <itemizedlist spacing="compact">
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download (HTTP): <ulink url="&graphite2-download-http;"/>
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download (FTP): <ulink url="&graphite2-download-ftp;"/>
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Download MD5 sum: &graphite2-md5sum;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Download size: &graphite2-size;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>
|
---|
| 74 | Estimated disk space required: &graphite2-buildsize;
|
---|
| 75 | </para>
|
---|
| 76 | </listitem>
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Estimated build time: &graphite2-time;
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect3">Graphite2 Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 87 | <para role="required">
|
---|
[affbf28] | 88 | <xref linkend="cmake"/>
|
---|
[2a75b9b] | 89 | </para>
|
---|
| 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 92 | <para role="optional">
|
---|
[affbf28] | 93 | <xref linkend="freetype2"/>,
|
---|
| 94 | <xref linkend="python2"/>, and
|
---|
[2a75b9b] | 95 | <ulink url="http://sourceforge.net/projects/silgraphite/files/silgraphite/2.3.1/">silgraphite</ulink>
|
---|
| 96 | to build the <command>comparerender</command> test and benchmarking tool,
|
---|
| 97 | and if that is present,
|
---|
| 98 | <xref linkend="harfbuzz"/> to add more functionality to it (this is a
|
---|
| 99 | circular dependency, you would need to first build
|
---|
| 100 | <application>graphite2</application> without
|
---|
| 101 | <application>harfbuzz</application>).
|
---|
| 102 | </para>
|
---|
[8763a1da] | 103 |
|
---|
| 104 | <para>To build the documentation:
|
---|
[2a75b9b] | 105 | <ulink url="http://www.methods.co.nz/asciidoc/">AsciiDoc</ulink>,
|
---|
| 106 | <xref linkend="doxygen"/> and
|
---|
[d2da67c] | 107 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
|
---|
[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>
|
---|
| 112 | (Python 2 module), otherwise, some tests fail.
|
---|
| 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 |
|
---|
| 130 | <para>
|
---|
| 131 | Install <application>Graphite2</application> by running the following
|
---|
| 132 | commands:
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <screen><userinput>mkdir build &&
|
---|
[059a1a5c] | 136 | cd build &&
|
---|
| 137 |
|
---|
[8763a1da] | 138 | cmake -G "Unix Makefiles" \
|
---|
| 139 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
[a0e6e8dd] | 140 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 141 | -Wno-dev .. &&
|
---|
| 142 |
|
---|
[2a75b9b] | 143 | make</userinput></screen>
|
---|
| 144 |
|
---|
| 145 | <para>
|
---|
[8763a1da] | 146 | If you wish to build the documentation, issue:
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <screen><userinput>make docs</userinput></screen>
|
---|
| 150 |
|
---|
| 151 | <para>
|
---|
| 152 | To test the results, issue: <command>make test</command>. Some tests fail
|
---|
| 153 | if <ulink url="https://pypi.python.org/pypi/FontTools">FontTools</ulink>
|
---|
| 154 | (Python 2 module) is not installed.
|
---|
[2a75b9b] | 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 159 | </para>
|
---|
| 160 |
|
---|
| 161 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[8763a1da] | 162 |
|
---|
| 163 | <para>
|
---|
| 164 | If you built the documentation, install, as the
|
---|
| 165 | <systemitem class="username">root</systemitem> user:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <screen role="root"><userinput>install -v -d -m755 /usr/share/doc/graphite2-&graphite2-version;/api &&
|
---|
| 169 | cp -v -r -f doc/doxygen/{html,latex/refman.pdf} \
|
---|
| 170 | /usr/share/doc/graphite2-&graphite2-version;/api &&
|
---|
| 171 | cp -v -r -f doc/{GTF,manual}.html \
|
---|
| 172 | /usr/share/doc/graphite2-&graphite2-version;</userinput></screen>
|
---|
| 173 |
|
---|
| 174 | </sect2>
|
---|
| 175 |
|
---|
| 176 | <sect2 role="commands">
|
---|
| 177 | <title>Command Explanations</title>
|
---|
| 178 |
|
---|
| 179 | <para><option>-DCMAKE_VERBOSE_MAKEFILE=ON</option>: This switch turns on
|
---|
| 180 | build verbose mode.</para>
|
---|
| 181 |
|
---|
[2a75b9b] | 182 | </sect2>
|
---|
| 183 |
|
---|
| 184 | <sect2 role="content">
|
---|
| 185 | <title>Contents</title>
|
---|
| 186 |
|
---|
| 187 | <segmentedlist>
|
---|
| 188 | <segtitle>Installed Programs</segtitle>
|
---|
| 189 | <segtitle>Installed Libraries</segtitle>
|
---|
| 190 | <segtitle>Installed Directories</segtitle>
|
---|
| 191 |
|
---|
| 192 | <seglistitem>
|
---|
| 193 | <seg>
|
---|
| 194 | gr2fonttest, and optionally comparerender
|
---|
| 195 | </seg>
|
---|
| 196 | <seg>
|
---|
| 197 | libgraphite2.so
|
---|
| 198 | </seg>
|
---|
| 199 | <seg>
|
---|
[16e895e] | 200 | /usr/{include,share}/graphite2 and optionally
|
---|
[8763a1da] | 201 | /usr/share/doc/graphite2-&graphite2-version;
|
---|
[2a75b9b] | 202 | </seg>
|
---|
| 203 | </seglistitem>
|
---|
| 204 | </segmentedlist>
|
---|
| 205 |
|
---|
| 206 | <variablelist>
|
---|
| 207 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 208 | <?dbfo list-presentation="list"?>
|
---|
| 209 | <?dbhtml list-presentation="table"?>
|
---|
| 210 |
|
---|
| 211 | <varlistentry id="comparerender">
|
---|
| 212 | <term><command>comparerender</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>
|
---|
| 215 | is a test and benchmarking tool.
|
---|
| 216 | </para>
|
---|
| 217 | <indexterm zone="graphite2 comparerender">
|
---|
| 218 | <primary sortas="b-comparerender">comparerender</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | <varlistentry id="gr2fonttest">
|
---|
| 224 | <term><command>gr2fonttest</command></term>
|
---|
| 225 | <listitem>
|
---|
| 226 | <para>
|
---|
| 227 | is a diagnostic console tool for graphite fonts.
|
---|
| 228 | </para>
|
---|
| 229 | <indexterm zone="graphite2 gr2fonttest">
|
---|
| 230 | <primary sortas="b-gr2fonttest">gr2fonttest</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="libgraphite2">
|
---|
| 236 | <term><filename class="libraryfile">libgraphite2.so</filename></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>
|
---|
| 239 | is a rendering engine for graphite fonts.
|
---|
| 240 | </para>
|
---|
| 241 | <indexterm zone="graphite2 libgraphite2">
|
---|
| 242 | <primary sortas="c-libgraphite2">libgraphite2.so</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | </variablelist>
|
---|
| 248 |
|
---|
| 249 | </sect2>
|
---|
| 250 |
|
---|
| 251 | </sect1>
|
---|