| 1 |
\." Copyright (c) 2000-2007 by George Williams ([email protected]). |
| 2 |
\." Original manual page by Tom Harvey, subsequently modified by |
| 3 |
\." George Williams. Heavily rewritten and modified to use standard |
| 4 |
\." -man (5) macros by R.P.C. Rodgers ([email protected]), 23 October 2002. |
| 5 |
\." Paul Hardy reconstructed the original man page and added output from |
| 6 |
\." the latest FontForge release. |
| 7 |
.TH FONTFORGE 1 "2017 Jun 18" |
| 8 |
.SH NAME |
| 9 |
fontforge \- create, modify, and view font files |
| 10 |
.SH SYNOPSIS |
| 11 |
.BR fontforge |
| 12 |
[\fB\-allglyphs\fP] |
| 13 |
[\fB\-c\fP\ \fIstring\fP] |
| 14 |
[\fB\-display\fP\ \fIstr\fP] |
| 15 |
[\fB\-lang\fP=ff] |
| 16 |
[\fB\-lang\fP=py] |
| 17 |
[\fB\-help\fP] |
| 18 |
[\fB\-last\fP] |
| 19 |
[\fB\-new\fP] |
| 20 |
[\fB\-nosplash\fP] |
| 21 |
[\fB\-quiet\fP] |
| 22 |
[\fB\-recover\fP\ \fImode\fP] |
| 23 |
[\fB\-script\fP\ \fIfile\fP] |
| 24 |
[\fB\-skippyfile\fP] |
| 25 |
[\fB\-skippyplug\fP] |
| 26 |
[\fB\-sync\fP] |
| 27 |
[\fB\-unique\fP] |
| 28 |
[\fB\-usage\fP] |
| 29 |
[\fB\-version\fP] |
| 30 |
[\fIfontfile\fP\ ...] |
| 31 |
.SH DESCRIPTION |
| 32 |
.B FontForge |
| 33 |
will read PostScript (pfa, pfb, ps, cid), OpenType (otf), |
| 34 |
TrueType (ttf, ttc), Macintosh resource fonts (dfont, bin, hqx), |
| 35 |
Scaled Vector Graphics (svg), TeX bitmap (pk), |
| 36 |
Glyph Bitmap Distribution Format (bdf), |
| 37 |
and X11 bitmap (pcf) fonts. Font files |
| 38 |
may be compressed with gzip (for example, myfont.pcf.gz). |
| 39 |
.B FontForge |
| 40 |
will also read its own format: Spline Font Database (sfd) files. |
| 41 |
.PP |
| 42 |
If the argument list contains a font file name (or several), |
| 43 |
\fBfontforge\fP opens a \fBfontview\fP window |
| 44 |
for each font displaying the characters of that font. |
| 45 |
In the absence of options or arguments, the program |
| 46 |
opens a file-picker window, allowing you to browse |
| 47 |
your disk to find a font file, or create a new one. |
| 48 |
.PP |
| 49 |
This manual page is intended only as a rudimentary overview; |
| 50 |
see the HTML Users Manual for more complete information. |
| 51 |
.PP |
| 52 |
If no \fIfontfiles\fP are specified, and neither is \fB\-new\fP, and |
| 53 |
there is nothing to recover, then \fBFontForge\fP will produce |
| 54 |
an open font dialogue box. |
| 55 |
.PP |
| 56 |
If a \fIscriptfile\fP is specified then \fBFontForge\fP will not open the |
| 57 |
X display, nor will it process any additional arguments. It will execute the |
| 58 |
\fIscriptfile\fP and give it any remaining arguments |
| 59 |
.PP |
| 60 |
If the first argument is an executable filename, and that file's first |
| 61 |
line contains "fontforge", then it will be treated as a \fIscriptfile\fP. |
| 62 |
.SH OPTIONS |
| 63 |
.TP 12 |
| 64 |
.B \-new |
| 65 |
Creates a new font. |
| 66 |
.TP |
| 67 |
.B \-last |
| 68 |
Loads the last sfd file closed. |
| 69 |
.TP |
| 70 |
.B \-recover none\fR|\fPauto\fR|\fPinquire\fR|\fPclean |
| 71 |
Control error recovery. |
| 72 |
\fBnone\fP suppresses crash revcovery. |
| 73 |
\fBauto\fP performs automatic recover if the program crashed |
| 74 |
before saving changes; this is the default. |
| 75 |
\fBinquire\fP asks what to do with auto-saved crash recovery files. |
| 76 |
\fBclean\fP deletes recovery information. |
| 77 |
.TP |
| 78 |
.B \-allglyphs |
| 79 |
Load all glyphs in the 'glyf' table. of a TrueType collection. |
| 80 |
.TP |
| 81 |
.B \-nosplash |
| 82 |
Suppress display of the splash screen. |
| 83 |
.TP |
| 84 |
.B \-quiet |
| 85 |
Don't print non-essential information to stderr. |
| 86 |
.TP |
| 87 |
.B \-unique |
| 88 |
If a copy of fontforge is already running, open all arguments |
| 89 |
in it and have this process exit. |
| 90 |
.TP |
| 91 |
.B \-display \fIdisplay-name\fP |
| 92 |
Employ the X display specified by the string |
| 93 |
\fIdisplay-name\fP (for example: localhost:0). |
| 94 |
.TP |
| 95 |
.B \-sync |
| 96 |
Syncs the display, debugging. |
| 97 |
.TP |
| 98 |
.B \-help |
| 99 |
Displays a help message and exits. |
| 100 |
.TP |
| 101 |
.B \-docs |
| 102 |
Displays help file output and then invokes a browser |
| 103 |
using the \fBBROWSER\fP environment variable. |
| 104 |
.TP |
| 105 |
.B \-version |
| 106 |
Prints the version of fontforge and exits. |
| 107 |
.TP |
| 108 |
\fB\-lang\fP=py |
| 109 |
Use Python for scripts (may precede \fB\-script\fP). |
| 110 |
.TP |
| 111 |
\fB\-lang\fP=ff |
| 112 |
Use fontforge's legacy scripting language. |
| 113 |
.TP |
| 114 |
.B \-script \fIscriptfile\fP |
| 115 |
Executes \fIscriptfile\fP. Must be the first option (or follow \fB\-lang\fP). |
| 116 |
All other arguments are passed to \fIscriptfile\fP. |
| 117 |
Execute the script named \fIfile\fP. |
| 118 |
Does not open the X display. |
| 119 |
This must be the first argument passed to \fBFontForge\fP. |
| 120 |
Any other arguments are handled by the script file itself. |
| 121 |
Any other command line arguments will be passed to the script. |
| 122 |
The program contains a command interpreter, |
| 123 |
which allows access to most but not all of |
| 124 |
its interactive features. |
| 125 |
If a script file is executable, and if its first line |
| 126 |
contains the string "fontforge", then |
| 127 |
the argument \fB\-script\fP may be omitted. |
| 128 |
This means that \fBFontForge\fP can be used |
| 129 |
as an interpreter. |
| 130 |
.TP |
| 131 |
.B \-dry \fIscriptfile\fP |
| 132 |
Syntax checks \fIscriptfile\fP (dry run). Must be the first option. |
| 133 |
All other arguments are passed to \fIscriptfile\fP. This option can |
| 134 |
only be used with fontforge's own scripting language, not with Python. |
| 135 |
.TP |
| 136 |
.B \-c \fIscript-string\fP |
| 137 |
Executes argument as scripting commands. Must be the first option. |
| 138 |
All other arguments are passed to the script. |
| 139 |
.TP |
| 140 |
.B \-skippyfile |
| 141 |
Do not execute Python init scripts when initializing. |
| 142 |
.TP |
| 143 |
.B \-skippyplug |
| 144 |
Do not load (enabled) Python plugins when initializing. |
| 145 |
.SH EXAMPLE |
| 146 |
Sample usage: |
| 147 |
.PP |
| 148 |
.RS |
| 149 |
fontforge myfont.ttf & |
| 150 |
.RE |
| 151 |
.SH ENVIRONMENT |
| 152 |
.TP |
| 153 |
.B BROWSER |
| 154 |
Specifies the name of a browser program for |
| 155 |
examining online documentation. |
| 156 |
.TP |
| 157 |
.B AUTOTRACE |
| 158 |
Specifies the location of the autotrace program. |
| 159 |
Usually FontForge can figure this out without |
| 160 |
help, but not always. |
| 161 |
.TP |
| 162 |
.B MF |
| 163 |
Specifies the location of the \fBmetafont\fP program. |
| 164 |
.TP |
| 165 |
.B FONTFORGE_VERBOSE |
| 166 |
Turns on verbose mode in scripting. Each statement |
| 167 |
is printed as it is executed. |
| 168 |
.SH FILES |
| 169 |
.TP |
| 170 |
~/.FontForge/autosave |
| 171 |
Crash recovery directory. |
| 172 |
.TP |
| 173 |
/usr/share/fontforge/*.ui |
| 174 |
Translations for user interfaces. |
| 175 |
.TP |
| 176 |
/usr/share/fontforge/doc/*.html |
| 177 |
Optional location for online documentation. |
| 178 |
.TP |
| 179 |
/usr/share/fontforge/*.cidmap |
| 180 |
"Encoding" files for Adobe's cid formats, from |
| 181 |
http://fontforge.sourceforge.net/cidmaps.tgz. |
| 182 |
.SH SEE ALSO |
| 183 |
\fBsfddiff\fP(1) |
| 184 |
.PP |
| 185 |
The HTML version of the \fBFontForge\fP manual, available online at: |
| 186 |
http://fontforge.sourceforge.net/. |
| 187 |
.SH NOTE |
| 188 |
\fBFontForge\fP used to be called \fBPfaEdit\fP. |
| 189 |
.SH AUTHORS |
| 190 |
.B FontForge |
| 191 |
is Copyright \(co 2000\(en2014 by George Williams, and is currently |
| 192 |
maintained by the FontForge development team. See |
| 193 |
/usr/share/doc/fontforge/AUTHORS for a comprehensive list of contributors. |
| 194 |
.SH LICENSE |
| 195 |
FontForge is licensed under GPLv3+: GNU GPL version 3 or later |
| 196 |
(http://gnu.org/licenses/gpl.html) with many parts covered by a BSD license |
| 197 |
(http://fontforge.org/license.html). Please read the LICENSE file included |
| 198 |
in the FontForge distribution for details, or see |
| 199 |
https://github.com/fontforge/fontforge/blob/master/LICENSE. |
| 200 |
.PP |
| 201 |
FontForge is available as a whole under the terms of the GNU GPL (http://www.gnu.org/copyleft/gpl.html), version |
| 202 |
3 or any later version. |
| 203 |
However, almost all of its parts are available under the "revised BSD license" (http://www.law.yi.org/~sfllaw/talks/bsd.pdf) because FontForge was mostly written by George Williams, using that license. |
| 204 |
.PP |
| 205 |
The Revised BSD License is very permissive, and allows for code to be combined with other code under other licenses. |
| 206 |
.PP |
| 207 |
There are many useful libraries available under copyleft libre licenses, such as the LGPL and GPL, which FontForge started to use in 2012. |
| 208 |
.PP |
| 209 |
For example, Pango and Cairo are available under the LGPL. |
| 210 |
.PP |
| 211 |
Some features added since 2012 are licensed by their individual developers under the GPLv3. |
| 212 |
.SH BUGS |
| 213 |
See the FontForge Github Issue Tracker, at |
| 214 |
https://github.com/fontforge/fontforge/issues/. |