source: general/graphlib/graphite2.xml@ 1aa1cea2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1aa1cea2 was 1aa1cea2, checked in by Ken Moffat <ken@…>, 8 years ago

graphite-1.3.6 and remove unnecessary cmake switches.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17108 af4574ff-66df-0310-9fd7-8a98e5e911e0

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