Debian Codegraph @

doc/sphinx/fontutils/sfddiff.rst

raw
1 sfddiff
2 =======
3
4 A program for comparing fonts ::
5
6 sfddiff [-merge outfile] [-ignorehints] [-ignorenames] [-ignoregpos] [-ignoregsub] [-ignorebitmaps] [-exact] [-warn] [-version] [-help] fontfile1 fontfile2
7
8 *Sfddiff* compares (or merges) two font files (in any format
9 :doc:`fontforge </index>` can read) and checks for differences.
10
11 It will notice:
12
13 #. any characters present in one font but not in the other
14 #. any characters present in both fonts but which have different sets of
15 outlines or references. The outlines may be compared so that only exact
16 matches are accepted, or so that a fuzzier match is used (useful in compare
17 that a truetype and postscript font are the same). Similarly references may
18 be matched exactly or may match after an unlink.
19 #. optionally will check if the postscript hints or truetype instructions are
20 different.
21 #. if the truetype 'name' tables match
22 #. if kerning (and other 'GPOS' data) match
23 #. if ligatures (and other 'GSUB' data) match
24 #. Any bitmap strikes present in one font but not the other
25 #. Any bitmap characters present in one font but not the other
26 #. Any bitmap characters which differ
27
28 .. program:: sfddiff
29
30 .. option:: -merge <output>
31
32 If this flag is specified the following argument should be the name of an
33 output file into which sfddiff will store a merged version of the two fonts.
34
35 This will contain everything from fontfile1 as well as any characters present in
36 fontfile2 but not in fontfile1. For any characters with different outlines or
37 references, the background of the character will contain the splines from
38 fontfile2 (sadly references can not be placed in the background).
39
40 .. option:: -ignorehints
41
42 If specified, then no hint differences will be reported.
43
44 .. option:: -help
45
46 Provides a mini description and will list the available options.
47
48 .. option:: -usage
49
50 Lists the available options.
51
52 .. option:: -version
53
54 Displays the current version of *sfddiff*.
55
56
57 See Also
58 --------
59
60 :doc:`fontforge </index>`