source: general/graphlib/graphite2.xml@ 427b46a

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 427b46a was d437f756, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

More library tags

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

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