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