source: general/graphlib/graphite2.xml@ 18aa9339

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 18aa9339 was 18aa9339, checked in by Douglas R. Reno <renodr@…>, 16 months ago

Lots of tags for X

  • Property mode set to 100644
File size: 8.1 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 <!ENTITY graphite2-download-http
8 "https://github.com/silnrsi/graphite/releases/download/&graphite2-version;/graphite2-&graphite2-version;.tgz">
9 <!ENTITY graphite2-download-ftp " ">
10 <!ENTITY graphite2-md5sum "1bccb985a7da01092bfb53bb5041e836">
11 <!ENTITY graphite2-size "6.3 MB">
12 <!ENTITY graphite2-buildsize "28 MB (with tests)">
13 <!ENTITY graphite2-time "0.2 SBU (with tests)">
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
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.
40 </para>
41
42 &lfs113_checked;
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">
82 <xref linkend="cmake"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="freetype2"/>,
88 <ulink url="https://sourceforge.net/projects/silgraphite/files/silgraphite/2.3.1/">silgraphite</ulink>
89 to build the <command>comparerender</command> test and benchmarking tool,
90 and if that is present, and
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>
96
97 <para role="optional">
98 To build the documentation:
99 <xref linkend="asciidoc"/>,
100 <xref linkend="doxygen"/>,
101 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>), and
102 <ulink url="https://dblatex.sourceforge.net/">
103 dblatex</ulink> (for PDF docs)
104 </para>
105
106 <para role="optional">
107 To execute the test suite you will need
108 <ulink url="https://pypi.python.org/pypi/FontTools">FontTools</ulink>
109 (Python 3 module), otherwise, the "cmp" tests fail.
110 </para>
111
112 <bridgehead renderas="sect4">Optional (at runtime)</bridgehead>
113 <para role="optional">
114 You will need at least one suitable <ulink role="runtime"
115 url="https://scripts.sil.org/cms/scripts/page.php?site_id=projects&amp;item_id=graphite_fonts">graphite font</ulink>
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
127 <para>
128 Some tests fail if
129 <ulink url="https://pypi.python.org/pypi/FontTools">FontTools</ulink>
130 (Python 3 module) is not installed. These tests can be removed with:
131 </para>
132
133<screen><userinput>sed -i '/cmptest/d' tests/CMakeLists.txt</userinput></screen>
134
135 <para>
136 Install <application>Graphite2</application> by running the following
137 commands:
138 </para>
139
140<screen><userinput>mkdir build &amp;&amp;
141cd build &amp;&amp;
142
143cmake -DCMAKE_INSTALL_PREFIX=/usr .. &amp;&amp;
144make</userinput></screen>
145
146 <para>
147 If you wish to build the documentation, issue:
148 </para>
149
150<screen remap="doc"><userinput>make docs</userinput></screen>
151
152 <para>
153 To test the results, issue: <command>make test</command>.
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>
161
162 <para>
163 If you built the documentation, install, as the
164 <systemitem class="username">root</systemitem> user:
165 </para>
166
167<screen role="root"
168 remap="doc"><userinput>install -v -d -m755 /usr/share/doc/graphite2-&graphite2-version; &amp;&amp;
169<!-- doc/doxygen seems to have gone, so I removed the api dir, but now both html
170and pdf for the GTF and the manual
171cp -v -r -f doc/doxygen/{html,latex/refman.pdf} \
172 /usr/share/doc/graphite2-&graphite2-version;/api &amp;&amp;-->
173cp -v -f doc/{GTF,manual}.html \
174 /usr/share/doc/graphite2-&graphite2-version; &amp;&amp;
175cp -v -f doc/{GTF,manual}.pdf \
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>
184 <option>-DCMAKE_VERBOSE_MAKEFILE=ON</option>: This switch turns on
185 build verbose mode.
186 </para>
187
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>
206 /usr/{include,share}/graphite2 and optionally
207 /usr/share/doc/graphite2-&graphite2-version;
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>
221 is a test and benchmarking tool
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>
233 is a diagnostic console tool for graphite fonts
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>
245 is a rendering engine for graphite fonts
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>
Note: See TracBrowser for help on using the repository browser.