source: general/graphlib/graphite2.xml@ d5b431ec

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since d5b431ec was 14891a90, checked in by Xi Ruoyao <xry111@…>, 12 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

  • Property mode set to 100644
File size: 8.0 KB
RevLine 
[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
[18aa9339]42 &lfs113_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&amp;item_id=graphite_fonts">graphite font</ulink>
[2a75b9b]116 for the package to be useful.
117 </para>
118
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of Graphite2</title>
123
[c09c84bc]124 <para>
125 Some tests fail if
126 <ulink url="https://pypi.python.org/pypi/FontTools">FontTools</ulink>
[2b02471]127 (Python 3 module) is not installed. These tests can be removed with:
[c09c84bc]128 </para>
129
130<screen><userinput>sed -i '/cmptest/d' tests/CMakeLists.txt</userinput></screen>
131
[2a75b9b]132 <para>
133 Install <application>Graphite2</application> by running the following
134 commands:
135 </para>
136
137<screen><userinput>mkdir build &amp;&amp;
[059a1a5c]138cd build &amp;&amp;
139
[0172b27]140cmake -DCMAKE_INSTALL_PREFIX=/usr .. &amp;&amp;
[2a75b9b]141make</userinput></screen>
142
143 <para>
[8763a1da]144 If you wish to build the documentation, issue:
145 </para>
146
[a42c273]147<screen remap="doc"><userinput>make docs</userinput></screen>
[8763a1da]148
[7841f70]149 <para>
150 To test the results, issue: <command>make test</command>.
[2a75b9b]151 </para>
152
153 <para>
154 Now, as the <systemitem class="username">root</systemitem> user:
155 </para>
156
157<screen role="root"><userinput>make install</userinput></screen>
[8763a1da]158
159 <para>
160 If you built the documentation, install, as the
161 <systemitem class="username">root</systemitem> user:
162 </para>
163
[a42c273]164<screen role="root"
165 remap="doc"><userinput>install -v -d -m755 /usr/share/doc/graphite2-&graphite2-version; &amp;&amp;
[1c1ea70f]166<!-- doc/doxygen seems to have gone, so I removed the api dir, but now both html
167and pdf for the GTF and the manual
[8763a1da]168cp -v -r -f doc/doxygen/{html,latex/refman.pdf} \
[1c1ea70f]169 /usr/share/doc/graphite2-&graphite2-version;/api &amp;&amp;-->
170cp -v -f doc/{GTF,manual}.html \
171 /usr/share/doc/graphite2-&graphite2-version; &amp;&amp;
172cp -v -f doc/{GTF,manual}.pdf \
[8763a1da]173 /usr/share/doc/graphite2-&graphite2-version;</userinput></screen>
174
175 </sect2>
176
177 <sect2 role="commands">
178 <title>Command Explanations</title>
179
[09f0998]180 <para>
181 <option>-DCMAKE_VERBOSE_MAKEFILE=ON</option>: This switch turns on
182 build verbose mode.
183 </para>
[8763a1da]184
[2a75b9b]185 </sect2>
186
187 <sect2 role="content">
188 <title>Contents</title>
189
190 <segmentedlist>
191 <segtitle>Installed Programs</segtitle>
192 <segtitle>Installed Libraries</segtitle>
193 <segtitle>Installed Directories</segtitle>
194
195 <seglistitem>
196 <seg>
197 gr2fonttest, and optionally comparerender
198 </seg>
199 <seg>
200 libgraphite2.so
201 </seg>
202 <seg>
[16e895e]203 /usr/{include,share}/graphite2 and optionally
[8763a1da]204 /usr/share/doc/graphite2-&graphite2-version;
[2a75b9b]205 </seg>
206 </seglistitem>
207 </segmentedlist>
208
209 <variablelist>
210 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
211 <?dbfo list-presentation="list"?>
212 <?dbhtml list-presentation="table"?>
213
214 <varlistentry id="comparerender">
215 <term><command>comparerender</command></term>
216 <listitem>
217 <para>
[4c24eb0a]218 is a test and benchmarking tool
[2a75b9b]219 </para>
220 <indexterm zone="graphite2 comparerender">
221 <primary sortas="b-comparerender">comparerender</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="gr2fonttest">
227 <term><command>gr2fonttest</command></term>
228 <listitem>
229 <para>
[4c24eb0a]230 is a diagnostic console tool for graphite fonts
[2a75b9b]231 </para>
232 <indexterm zone="graphite2 gr2fonttest">
233 <primary sortas="b-gr2fonttest">gr2fonttest</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="libgraphite2">
239 <term><filename class="libraryfile">libgraphite2.so</filename></term>
240 <listitem>
241 <para>
[4c24eb0a]242 is a rendering engine for graphite fonts
[2a75b9b]243 </para>
244 <indexterm zone="graphite2 libgraphite2">
245 <primary sortas="c-libgraphite2">libgraphite2.so</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 </variablelist>
251
252 </sect2>
253
254</sect1>
Note: See TracBrowser for help on using the repository browser.