Debian Codegraph @

doc/sphinx/techref/sfdchangelog.rst

raw
1 .. _sfdchangelog.change-log:
2
3 Changes to the sfd format
4 =========================
5
6 FontForge's :doc:`sfd (spline font database) format <sfdformat>` changes over
7 time as fontforge supports more things. I have only recently started keeping
8 track of these changes, so older changes are not listed here.
9
10 * 14-Sep-2010
11
12 * Added gasp table version to GaspTable keyword.
13 * 03-Feb-2010
14
15 * Added woff keywords (woffMajor, woffMinor (for version #) and woffMetadata for
16 unparsed xml metadata).
17 * Added sfntRevision keyword
18 * 22-Oct-2009
19
20 * Add WidthSeparation keyword
21 * Add extension to subtable specification to handle storing default separation,min
22 kerning and touching values of the subtable in the sfd
23 * Hmm. Document how vertical kerning subtables are indicated
24 * Hmm. Document how default prefixes for single substitution subtables are stored.
25 * 12-May-2009
26
27 * Add MarkAttachmentSet entries
28 * Add names for features 'ss01'-'ss20'
29 * 15-Mar-2009
30
31 * Add a BDFRefChar keyword to support bitmap references (Alexey Kryukov)
32 * 5-Mar-2009
33
34 * Add support for the JSTF table in sfd.
35 * 12-Nov-2008
36
37 * Add a field to the font: ExtremaBound. Any spline where the distance between its
38 end points is less than or equal to this will not be checked for extrema.
39 * 22-Aug-2008
40
41 * Add a flag to the Layer keyword (in the font) to say whether the layer is a
42 background layer or not. As the flag is at the end of the line, previous
43 versions of fontforge will just ignore it
44 * 10-July-2008
45
46 * Extend the image output format to support red/green/blue/alpha images. (not much
47 of an extension -- there's just more data)
48 * 26-May-2008
49
50 * Adobe says UniqueID and XUID are deprecated. Add flags (UseXUID/UseUniqueID) to
51 indicate we still want to include them in fonts in spite of that.
52 * 30-Mar-2008
53
54 * Bump the sfd version number to 3. This is a bit late, but better late than
55 never. It should have happened with the Layers release on 2-Mar.
56 * Support for BASE table, new keywords
57
58 * BaseHoriz
59 * BaseVert
60 * BaseScript
61
62 This also involved removing the old vertical origin keyword which is (I hope) a
63 subset of the BASEline information.
64 * Support for Gradient and Pattern Fills in Type3 fonts, new keywords
65
66 * FillGradient
67 * StrokeGradient
68 * FillPattern
69 * StrokePattern
70 * Added support for clipping paths in Type3 fonts, new keyword
71
72 * PathFlags
73 * 2-Mar-2008
74
75 * **Layers**
76
77 .. warning::
78
79 This turned out to be a change which was backwards incompatible. I did not
80 realize that at the time
81
82 All fonts may now have multiple layers (before only Type3 fonts could). The
83 Type3 format has not changed so the discussion that follows concentrates on
84 normal fonts and should be understood not to refer to type3 fonts.
85
86 All glyphs in a given (non-type3) font have the same number of layers so there
87 is a LayerCount keyword in the font which provides that (there is also a
88 LayerCount keyword now in each glyph. This provides redundant information, it
89 should be the same as the font's layer count (for non type3 fonts).
90
91 Before this the foreground and background and Guide layers all had the same
92 spline type (quadratic or cubic), now that can vary from layer to layer. There
93 is a font level keyword "Layer" which provides the spline order and name of each
94 layer. The old "Order2" keyword has been removed.
95
96 Previously only the foreground layer of a glyph could contain references, now
97 any layer can. Before the "Refer" keyword could appear with no layer name
98 preceding it (as this unambiguously meant that the references would go into the
99 foreground layer), now there must be a layer name preceding a "Refer" keyword.
100
101 Each layer output is preceded by one of "Fore", "Back" or "Layer: d" (where "d"
102 is the layer number).
103
104 Before the SplineSet keyword was not needed (and was usually omitted) after a
105 "Fore" or "Back" layer name. It is now required, and this seems to render new
106 sfd files incompatible with old.
107
108 (If there is no layer tag before a Refer keyword then the parser will apply it
109 to the foreground layer)
110
111 Previously the validation status applied only to the foreground layer. Now every
112 layer can have its own status, so again the "Validated" keyword must now be
113 tagged with a layer.
114
115 There is a font level keyword "DisplayFont" which indicates what layer should be
116 displayed in the font view by default.
117
118 There is a font level keyword "GridOrder2" which may appear before the "Grid"
119 layer name in the font to set the spline order of the guideline semi-layer.
120 * 3-Feb-2008
121
122 * The point flags bitmap in a SplineSet has been extended by
123
124 0x200 -- Any extrema on the preceding spline are marked as acceptable to the
125 validator
126 * Some sfnt tables are now output in text instead of binary.
127
128 * cvt,maxp -- output as decimal numbers (with possibly with comments for cvt)
129 * prep,fpgm -- output as ASCII instructions
130 * Get diagonal hints working again
131 * Add a FontLog field
132 * 9-Nov-2007
133
134 * Add support for Raph Levien's spiro curves.
135 * Add the ability to name contours
136 * ...