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