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 | <!--
|
---|
8 | <!ENTITY fontforge-download-http "https://github.com/fontforge/fontforge/releases/download/&fontforge-version;/fontforge-dist-&fontforge-version;.tar.xz">
|
---|
9 | -->
|
---|
10 | <!ENTITY fontforge-download-http "https://github.com/fontforge/fontforge/releases/download/&fontforge-version;/fontforge-&fontforge-version;.tar.xz">
|
---|
11 |
|
---|
12 | <!ENTITY fontforge-download-ftp " ">
|
---|
13 | <!ENTITY fontforge-md5sum "aca35e33415ad41552ef7c98edc3ca5f">
|
---|
14 | <!ENTITY fontforge-size "13 MB">
|
---|
15 | <!ENTITY fontforge-buildsize "102 MB (add 52 MB for the tests)">
|
---|
16 | <!ENTITY fontforge-time "0.3 SBU (with parallelism=4, add 0.1 SBU for the tests)">
|
---|
17 | ]>
|
---|
18 |
|
---|
19 | <sect1 id="fontforge" xreflabel="FontForge-&fontforge-version;">
|
---|
20 | <?dbhtml filename="fontforge.html"?>
|
---|
21 |
|
---|
22 | <sect1info>
|
---|
23 | <date>$Date$</date>
|
---|
24 | </sect1info>
|
---|
25 |
|
---|
26 | <title>FontForge-&fontforge-version;</title>
|
---|
27 |
|
---|
28 | <indexterm zone="fontforge">
|
---|
29 | <primary sortas="a-FontForge">FontForge</primary>
|
---|
30 | </indexterm>
|
---|
31 |
|
---|
32 | <sect2 role="package">
|
---|
33 | <title>Introduction to FontForge</title>
|
---|
34 |
|
---|
35 | <para>
|
---|
36 | The <application>FontForge</application> package contains an
|
---|
37 | outline font editor that lets you create your own postscript,
|
---|
38 | truetype, opentype, cid-keyed, multi-master, cff, svg and
|
---|
39 | bitmap (bdf, FON, NFNT) fonts, or edit existing ones.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | &lfs111_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 |
|
---|
46 | <itemizedlist spacing="compact">
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (HTTP): <ulink url="&fontforge-download-http;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download (FTP): <ulink url="&fontforge-download-ftp;"/>
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download MD5 sum: &fontforge-md5sum;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Download size: &fontforge-size;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated disk space required: &fontforge-buildsize;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | <listitem>
|
---|
73 | <para>
|
---|
74 | Estimated build time: &fontforge-time;
|
---|
75 | </para>
|
---|
76 | </listitem>
|
---|
77 | </itemizedlist>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect3">FontForge Dependencies</bridgehead>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
82 | <para role="required">
|
---|
83 | <xref linkend="libspiro"/> and
|
---|
84 | <xref linkend="libxml2"/>
|
---|
85 | </para>
|
---|
86 |
|
---|
87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
88 | <para role="recommended">
|
---|
89 | <!-- not mentioned:
|
---|
90 | glib is required for gtk3
|
---|
91 | pango is required for gtk3
|
---|
92 | cairo is recommended for pango
|
---|
93 | xorg libs pulled in by gtk3 via libepoxy.
|
---|
94 | -->
|
---|
95 | <xref linkend="gtk3"/>
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
99 | <para role="optional">
|
---|
100 | <!-- the following references in the source appear not to be used:
|
---|
101 | curl is mentioned in appveyor.yml for msys2 (integration tests, I think)
|
---|
102 | wget is referenced in Unicode/charset/generate.sh which will fail if
|
---|
103 | wget is not on the PATH, and in Unicode/dump.c - with wget moved off the
|
---|
104 | PATH, no problems, i.e. they are never run and never built.
|
---|
105 |
|
---|
106 | Some of the others are at a minimum pulled in for recommended deps -
|
---|
107 | libpng from freetype from fontconfig from xorg libs.
|
---|
108 | harfbuzz is the same
|
---|
109 |
|
---|
110 | Also, adding or removing optional deps other than Sphinx doesn't seem
|
---|
111 | to materially alter the build time or size.
|
---|
112 | -->
|
---|
113 | <xref linkend="giflib"/>,
|
---|
114 | <xref linkend="git"/>,
|
---|
115 | <xref linkend="libjpeg"/>,
|
---|
116 | <xref linkend="libtiff"/>,
|
---|
117 | <xref linkend="woff2"/>, and
|
---|
118 | <ulink url="https://pypi.python.org/pypi/Sphinx">Sphinx</ulink>
|
---|
119 | (to build html documentation)
|
---|
120 | </para>
|
---|
121 |
|
---|
122 | <para condition="html" role="usernotes">
|
---|
123 | User Notes: <ulink url="&blfs-wiki;/fontforge"/>
|
---|
124 | </para>
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="installation">
|
---|
128 | <title>Installation of FontForge</title>
|
---|
129 | <para>
|
---|
130 | Install <application>FontForge</application> by running the following
|
---|
131 | commands:
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <screen><userinput>mkdir build &&
|
---|
135 | cd build &&
|
---|
136 |
|
---|
137 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
138 | -DCMAKE_BUILD_TYPE=Release \
|
---|
139 | -Wno-dev .. &&
|
---|
140 | make</userinput></screen>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | To test the results, issue: <command>make check</command>.
|
---|
144 | </para>
|
---|
145 |
|
---|
146 | <para>
|
---|
147 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
148 | </para>
|
---|
149 |
|
---|
150 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
151 |
|
---|
152 | <para>
|
---|
153 | If you have installed <command>sphinx-build</command>, HTML documentation
|
---|
154 | was built and installed in
|
---|
155 | <filename class="directory">/usr/share/doc/fontforge</filename>.
|
---|
156 | To be able to access it as a versioned directory, create a
|
---|
157 | symlink as the
|
---|
158 | <systemitem class="username">root</systemitem> user:
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <screen role="root"
|
---|
162 | remap="doc"><userinput>ln -sv fontforge /usr/share/doc/fontforge-&fontforge-version;</userinput></screen>
|
---|
163 |
|
---|
164 | </sect2>
|
---|
165 |
|
---|
166 | <sect2 role="commands">
|
---|
167 | <title>Command Explanations</title>
|
---|
168 |
|
---|
169 | <para>
|
---|
170 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
171 | create an optimized release without debug information.
|
---|
172 | </para>
|
---|
173 |
|
---|
174 | <para>
|
---|
175 | <parameter>-Wno-dev</parameter>: This switch is used to suppress warnings
|
---|
176 | intended for the package's developers.
|
---|
177 | </para>
|
---|
178 |
|
---|
179 | <para>
|
---|
180 | <option>-DENABLE_X11=ON</option>: use an X11 backend instead of GDK3
|
---|
181 | (gtk+-3) for basic Xorg graphics.
|
---|
182 | </para>
|
---|
183 |
|
---|
184 | </sect2>
|
---|
185 |
|
---|
186 | <sect2 role="content">
|
---|
187 | <title>Contents</title>
|
---|
188 |
|
---|
189 | <segmentedlist>
|
---|
190 | <segtitle>Installed Programs</segtitle>
|
---|
191 | <segtitle>Installed Library</segtitle>
|
---|
192 | <segtitle>Installed Directories</segtitle>
|
---|
193 |
|
---|
194 | <seglistitem>
|
---|
195 | <seg>
|
---|
196 | fontforge, fontimage, fontlint and sfddiff
|
---|
197 | </seg>
|
---|
198 | <seg>
|
---|
199 | libfontforge.so and
|
---|
200 | /usr/lib/python&python3-version;/site-packages/{fontforge,psMat}.so
|
---|
201 | </seg>
|
---|
202 | <seg>
|
---|
203 | /usr/share/fontforge and optionally
|
---|
204 | /usr/share/doc/fontforge{,-&fontforge-version;}
|
---|
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="fontforge-prog">
|
---|
215 | <term><command>fontforge</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>
|
---|
218 | is a program that allows you to create and
|
---|
219 | modify font files
|
---|
220 | </para>
|
---|
221 | <indexterm zone="fontforge fontforge-prog">
|
---|
222 | <primary sortas="b-fontforge">fontforge</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | <varlistentry id="fontimage">
|
---|
228 | <term><command>fontimage</command></term>
|
---|
229 | <listitem>
|
---|
230 | <para>
|
---|
231 | is a program that produces an image showing
|
---|
232 | representative glyphs of the font
|
---|
233 | </para>
|
---|
234 | <indexterm zone="fontforge fontimage">
|
---|
235 | <primary sortas="b-fontimage">fontimage</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | <varlistentry id="fontlint">
|
---|
241 | <term><command>fontlint</command></term>
|
---|
242 | <listitem>
|
---|
243 | <para>
|
---|
244 | is a program that checks the font for certain
|
---|
245 | common errors
|
---|
246 | </para>
|
---|
247 | <indexterm zone="fontforge fontlint">
|
---|
248 | <primary sortas="b-fontlint">fontlint</primary>
|
---|
249 | </indexterm>
|
---|
250 | </listitem>
|
---|
251 | </varlistentry>
|
---|
252 |
|
---|
253 | <varlistentry id="sfddiff">
|
---|
254 | <term><command>sfddiff</command></term>
|
---|
255 | <listitem>
|
---|
256 | <para>
|
---|
257 | is a program that compares two font files
|
---|
258 | </para>
|
---|
259 | <indexterm zone="fontforge sfddiff">
|
---|
260 | <primary sortas="b-sfddiff">sfddiff</primary>
|
---|
261 | </indexterm>
|
---|
262 | </listitem>
|
---|
263 | </varlistentry>
|
---|
264 |
|
---|
265 | </variablelist>
|
---|
266 |
|
---|
267 | </sect2>
|
---|
268 |
|
---|
269 | </sect1>
|
---|