Debian Codegraph @

doc/sphinx/appendices/ff-history.rst

raw
1 What on Earth Possessed me...
2 =============================
3
4 .. image:: /images/fftype300.svg
5 :align: right
6 :width: 200px
7
8 .. epigraph::
9
10 | **MALVOLIO**
11 |
12 | By my life, this is my lady's hand, these be her
13 | very C's, her U's and her T's and thus she makes her
14 | great P's. It is, in contempt of question, her hand.
15 |
16 | **Sir ANDREW**
17 | Her C's, her U's and her T's: why that?
18
19 -- Twelfth Night, II, v
20 -- Shakespeare
21
22 I have always been interested in calligraphy, especially the eccentricities of
23 the swash and black letter capitals.
24
25 My father was deeply concerned with Renaissance printing, being a textual
26 bibliographer of Shakespeare. His major focus was in the errors printers were
27 likely to make, nevertheless I grew up in an environment where the long-s and
28 other archaic devices appeared. My father used to brag that a great aunt of his
29 still used the long-s in her hand-written notes.
30
31 Why that indeed. Some questions may have no answers.
32
33 In the early '80s I was working at JPL and I met my first bitmap display. The
34 primary use of this display was to make movies of a simulated fly-by of Olympus
35 Mons (on Mars). I used it to design my first bitmap font.
36
37 In the late '80s I bought my first computer, a Mac II. And with it a bought a
38 little program called Fontastic which allowed people to design their own 'FONT'
39 resources (mac bitmap fonts).
40
41 Then a friend, Godfrey DiGiorgi, recommended that I buy a copy of Fontographer
42 and design PostScript fonts. I was leery initially. How could a rasterizer match
43 the quality of a hand crafted bitmap? But eventually I succumbed to the
44 attractions of the cubic spline.
45
46 In the meantime I had studied calligraphy, and once I had Fontographer began
47 designing fonts based on various (latin) calligraphic hands.
48
49 In the early '90s I was working at a little web start-up company, called
50 NaviSoft, which was almost immediately bought by AOL. My product was an
51 html-editor (best known as AOLpress). As I was working to convert it to handle
52 Unicode I became concerned about the lack of Unicode fonts. I began working on
53 my own Unicode font (just the alphabetics and symbols, I knew there was no way
54 I'd be able to deal with all the CJK characters). I designed a font based on
55 Caslon's work with Bold and Italic variants. And then I started working on
56 monospaced and sans-serif families (I called the sans-serif design "Caliban" as
57 a play on Arial).
58
59 Aldus (the makers of Fontographer) had been bought by MacroMedia, and MacroMedia
60 seemed to have no interest in continuing Fontographer. So development on
61 Fontographer ceased. It did not support OpenType, and its unicode support was
62 minimal. I began to write little programs to decode Type1 fonts and fix them up
63 in various ways.
64
65 AOL did not really know what to do with AOLpress. AOLpress had been designed
66 with web designers in mind, not with Steve Case's mother (which was AOL's target
67 audience). So development on AOLpress ceased and the Unicode/CSS version never
68 was completed. I continued to work on my fonts however and continued to be
69 dissatisfied with Fontographer. In 1998 my AOL options matured and I was able to
70 retire.
71
72 I wanted to try to become a primatologist and had made arrangements to spend 4
73 months in Madagascar as a field assistant to Chia Tan studying the Greater
74 Bamboo lemur (\ *Hapalemur simus*). Sadly I found that I was not really cut out
75 for that life. I had a hard time recognizing individual animals, and found that
76 after a few months the leaches were more annoying than I had expected.
77
78 So I gave up on that.
79
80 Instead I set about working on an improved version of my html editor, and
81 started by writing my own Unicode based widget set for it (this was before pango
82 was out). When the widget set was usable I decided to write a small application
83 to test it, and something to display the splines of a postscript font seemed
84 just the thing. Having done that I figured I might as well allow people to edit
85 those splines and save it back. And so was born the first version of PfaEdit.
86
87 Somehow the html-editor never got written.
88
89 I quickly discovered I was better at designing a font editor than I was at
90 designing fonts, so I gave up on them too.
91
92 After a couple months of work I had something which worked, or so I thought, and
93 I posted it to the web (my friend, Dan Kenan, very kindly gave me some space on
94 his server, aptly named bibliofile) on 7 November of 2000. Within a month I had
95 received my first bug report, and presumably had my first user.
96
97 I continued working on PfaEdit, adding support for pfb fonts and then in
98 December for truetype and bdf fonts. I learned about sourceforge and moved
99 PfaEdit there in April of 2001.
100
101 In April of 2001 I added support for type2 fonts embedded in an sfnt wrapper
102 (opentype fonts, but not the advanced typographic tables). In July of 2001
103 MinGyoon (from Korea) asked me if PfaEdit could support CID keyed fonts so I
104 learned about those and added support for them in August.
105
106 Valek Filippov suggested that I make PfaEdit be internationalizable, so I
107 provided a mechanism and he provided a Russian translation of the user interface
108 in June of 2001. On December of 2005 I gave up on my own system and switched to
109 GNU gettext.
110
111 .. list-table::
112 :header-rows: 1
113 :stub-columns: 1
114
115 * - Language
116 - Translator
117 - Initial version
118 * - English
119 -
120 -
121 * - Russian
122 - Valek Filippov
123 - June 2001
124 * - Japanese
125 - Kanou Hiroki
126 - August 2002
127 * - French
128 - Pierre Hanser
129 - September 2002
130 * - Italian
131 - Claudio Beccari
132 - February 2003
133 * - Spanish
134 - Walter Echarri
135 - October 2004
136 * - Vietnamese
137 - Clytie Siddall
138 - July 2006
139 * - Greek
140 - Apostolos Syropoulos
141 - August 2006
142 * - :small:`Simplified` Chinese
143 - Lee Chenhwa
144 - October 2006
145 * - German
146 - Philipp Poll
147 - October 2006
148 * - Polish
149 - Michal Nowakowski
150 - October 2006
151 * - :small:`Traditional` Chinese
152 - Wei-Lun Chao
153 - August 2007
154
155 I started working on support for simple aspects of the OpenType GSUB and GPOS
156 tables in April of 2001 and finished the process (ignoring bugs of course) with
157 the contextual chaining lookups in August of 2003. Similarly I started adding
158 support for the various equivalent Apple Advanced Typography tables (primarily
159 'morx') at about the same time.
160
161 In an early attempt to get PfaEdit to generate instructions to grid-fit truetype
162 fonts, I set about to write a truetype instruction simulator so that I could
163 debug the generated code. It didn't work very well on real fonts. Then, in early
164 2001, I discovered `freetype <http://freetype.sf.net/>`_ and found that freetype
165 already did this (and did it right). At first I examined their code to try and
166 figure out what was wrong with mine, but eventually I gave that up and simply
167 used freetype as an instruction simulator. As things got more complicated (with
168 David Turner's permission, and many suggestions from Werner LEMBERG), I
169 eventually wrote a visual front end for freetype's built-in debugger. For a
170 while this lived in a separate program called mensis, but in March of 2003 I
171 integrated it into PfaEdit.
172
173 Many people urged me to provide a scripting interface to PfaEdit. At first I
174 could not understand the point -- font design needs a graphical interface after
175 all. But I was only looking at a small fraction of the tasks that could
176 potentially be done with such an interface, and in January of 2002 PfaEdit
177 gained the ability to run scripts.
178
179 In 2003 Yannis Haralambous invited me to talk at EuroTex. I fear I rather
180 disappointed him in my choice of subject matter -- I tried to do better the next
181 year when Apostolos Syropoulos invited me to EuroTex 2004 (but I overreached
182 myself then and made some incorrect assumptions). These conferences were the
183 first time I had actually met any of my users and were quite stimulating,
184 leading to many suggestions and requests. I learned about SVG fonts at EuroTex
185 2003 and implemented them soon thereafter.
186
187 Yannis was also working on a book, *Fontes & codages* in which FontForge
188 figures. He spent a lot of time making suggestions and finding bugs. He
189 encouraged me to support multi-master fonts and by February of 2004 I had done
190 so. Then I started working on Apple's distortable font technology (which has
191 many similarities to Adobe's multi-master, but is rather badly documented) and,
192 with help from Apple, had them working in April of 2004. I then extended
193 freetype's support for multi-master fonts to support Apple's distortable fonts.
194
195 In early 2004 people complained that the name "PfaEdit" no longer reflected the
196 abilities of the program and requested that I change it. Various people
197 suggested names (including me), but the one I liked the best, FontForge, came
198 from David Turner of freetype. And in March of 2004 PfaEdit changed its name to
199 FontForge.
200
201 At about the same time I wanted to provide a somewhat more complete ability to
202 handle PostScript Type3 fonts (or SVG fonts). So I implemented a multi-layered
203 editing mode which provided a rather clumsy interface to some of the facilities
204 of vector graphics programs.
205
206 In 2005 a Korean company asked me to do something. We had some difficulty
207 communicating (I don't speak Korean), but eventually I figured out that they
208 wanted to be able to group glyphs together. Prior to this FontForge handled
209 encodings as an integral part of the font, which didn't seem right, and it made
210 implementing groups impossible. So I had to rewrite much of the internals of
211 FontForge to redo encodings before I could even start on groups. This took
212 longer than I had thought it would, and by the time I finished (in July of 2005)
213 the Koreans seemed to have lost interest. Ah well.
214
215 I got interested in pdf files in October of 2005, and gave FontForge's Print
216 command the ability to print to a pdf file. Then I thought it would be kind of
217 fun to be able to read a font out of a pdf file. I was a little worried about
218 implementing this because I know that most fonts stored in pdf files are
219 sub-sets, and only contain the glyphs actually used in the pdf file itself. I
220 was convinced that I'd get lots of bug reports from people complaining that
221 FontForge didn't read the entire font. Nevertheless my sense of fun overcame my
222 fear of silly bug reports and I implemented it.
223
224 And I did get bug reports complaining that FontForge did not read the fonts
225 correctly.
226
227 And I don't think I was able to convince some of the complainers that the fonts
228 were incomplete in the pdf file. Ah well.
229
230 The X11 folk want to move away from the bdf format, so they came up with their
231 own format (call opentype bitmap, with extension "otb") which was essentially an
232 sfnt wrapper around a series of bitmap strikes with no outline font. I
233 implemented that back in July of 2003. But then in July of 2005 they wanted to
234 preserve the BDF properties as well. So we worked out a new table (called 'BDF
235 ') to contain the properties from all the strikes in the font. Now it should be
236 possible to make a round trip conversion of bdf->otb->bdf and not lose any
237 information.
238
239 Many people complained about FontForge's ability to edit quadratic splines. I
240 had no experience editing quadratic splines before I wrote my original version,
241 I just made it behave like the cubic spline editor (which seemed obvious). But
242 doing the obvious makes it hard to create a font that uses some of the
243 optimizations in the ttf file, and made instructing the font confusing. So
244 between January and February of 2006 FontForge's quadratic editing capabilities
245 underwent an evolutionary change as people complained and I tried to fix things.
246
247 I have a testsuite for fontforge. Obviously. Originally it was very simple: a
248 set of script files which did various actions. If FontForge didn't crash, then I
249 presumed it worked. That was about all I could test, and although that's
250 important, there are a few other things which might be examined. So I wrote a
251 command to compare two fonts and see if they were equivalent. Originally this
252 had been a separate command (called sfddiff), but if I integrated it into
253 FontForge I could increase the abilities of the tests I wrote.
254
255 FontForge produced some rather naive type1 and type2 fonts which did not make
256 good use of the PostScript concept of subroutines. In June of 2006 I did a
257 substantial rewrite of the type2 output code and decreased the size of my output
258 fonts considerably. My new comparison command was helpful in debugging.
259 Nonetheless I introduced a number of bugs. Which got fixed, of course. But it
260 made me leery of doing the same thing for type1 output. After all, Adobe doesn't
261 even produce type1 fonts any more, so surely I don't need to optimize them.
262 Michael Zedler said otherwise, and after great effort on his part induced me (in
263 October 2006) to make better use of subroutines in Type1 output also. No bugs
264 yet... (but it's still October of 2006).
265
266 All of FontForge's dialogs had a fixed layout. Which works fine if you've only
267 got one language to support, but which looks really ugly (and worse can be
268 totally illegible) when the dialog is translated into a different language and
269 labels suddenly become longer (or shorter) and spill over into the textfield
270 they identify. There has been a sudden burst of people willing to do
271 translations recently. This mattered. So I stole the concept of boxes from gtk
272 and implemented them in my widget set (in August of 2006), allowing a dialog to
273 do its own layout to match the size of the things in it.
274
275 The pace of change seems to have slowed recently (Oct 2006) as all of the large
276 tasks have either been done or proved insurmountable. As more people use the
277 program they find more bugs and I have less time to do development. In the last
278 few years there have also been large internal changes which (I hope) are
279 practically invisible to users and cosmetic changes which make the dialogs look
280 nicer and more comprehensible but which aren't functional.
281
282 --------------------------------------------------------------------------------
283
284 My interface to GSUB/GPOS was not well thought out. I stored things in FontForge
285 at the feature level, while OpenType wants things done at the lookup level. I
286 thought lookups added an unnecessary level of complexity and ignored them. But
287 people complained (they always do) that once a font had been read in to
288 FontForge and saved out again it wouldn't work any more. And that was because I
289 had lost the ordering imposed by the lookups. So in early 2007 I had to redo
290 much of the internals of fontforge as it related to OpenType. I also changed the
291 Metrics View so it would handle all OpenType lookup types (rather than just
292 kerning).
293
294 And people didn't like my scripting language. Why hadn't I used python? (Well
295 because I didn't know python and was lazy about learning more stuff that I
296 didn't think would be useful to me). Various people told me that they just
297 couldn't use FontForge because it didn't support python. So I added python
298 support. Then I discovered that my build machine has such an old version of
299 python that it doesn't provide libpython -- and I can't upgrade my machine any
300 more because all the distros require booting from CD now (and my machine can't).
301
302 In May of 2007 I went to the Libre Graphics Meeting in Montreal, and as I
303 listened to the Inkscape talk on how they handled plugins, I realized that I
304 could do that too. So I extended the python interface to support python plugins
305 and menu items. Dave Crossland, as is his wont, had many requests, and had me
306 update the old Display dialog to support all the OpenType lookups (just as I'd
307 done for the Metrics View) and then merge that into the Print dialog too. Dave
308 also felt that FontForge should be able to store a font directly on the Open
309 Font Library website. Well, they had no API for this, so I had to sit down and
310 figure out http all over again and see what bits of the user API I needed to
311 walk through.
312
313 In June I started working on Adobe's feature files (I could support them now
314 that I was handling lookups properly), and found to my shock that
315
316 #. The syntax as presented by Adobe wasn't complete (could not represent all of
317 opentype)
318 #. Some of the syntax that was presented hadn't been implemented by Adobe yet
319 and was marked "Subject to change"
320 #. There was no easy way to represent the "Everything else" class (class 0) of a
321 class set without enumerating every glyph by hand (which could not be
322 translated into a class 0.
323 #. There was no way to distinguish a contextual class based lookup from a
324 contextual coverage-table based lookup.
325 #. ... on and on ...
326
327 I had assumed that feature files were a stable useful format and found to my
328 distaste that they were not. I implemented the bits that Adobe hadn't
329 implemented, and extended them a bit so I could represent more of OpenType (and
330 told Adobe what my extensions were, but was told they didn't like them). Grump.
331 Well I wanted something to store as much of OpenType as I could, and I wasn't
332 going to wait for Adobe to come up with something (which they still haven't).
333
334 Apostolos gave me the spec for the new 'MATH' table. But that spec had MicroSoft
335 Confidential printed all over it and I wasn't about to touch it. Apostolos got
336 annoyed at my ignoring it, so in July he had Sergey from MS send me a copy of
337 the spec that no longer said "Confidential" on every page. Then I implemented
338 the new 'MATH' table.
339
340 I'd never had a good Embolden function. I'd tried various approaches and none
341 worked well. This year I decided to try a very simple idea: Use expand stroke
342 and then squash the glyph together so it was the same height it had been before.
343 That basically worked. Still a few oddities, but basically functional.
344
345 In July Michal Nowakowski gave me a patch which vastly improved the truetype
346 auto instructor. I told him I'd only accept it if he would support it. After
347 some initial grumbling he did so -- and then proceeded to make it even better!
348 Then about a week later Alexej Kryukov said he wanted to make the autoinstructor
349 support diagonal stems, and the two of them started working together on this.
350
351 At the Libre Graphics Meeting Dave demoed Raph Levien's spiro splines and
352 encouraged me to integrate them into fontforge. But Raph released under GPL and
353 wasn't willing to change, and I released under BSD and wasn't willing to change.
354 I got permission from Raph to repackage his spiro routines into a small shared
355 library (libspiro) which could be released separately from FontForge but to
356 which FontForge could link. And we had Raph's spiros in FontForge.
357
358 I realized that no only could I stick python into fontforge, but if I did a
359 little more work, I could stick fontforge into python. So I wrapped up most of
360 fontforge into a shared library that python could load. Dave Crossland had been
361 complaining (again) about the FontForge widget set. When was I going to move to
362 gtk? (well, I'd tried gtk back in 2004, and found it hard to use, and bits of it
363 ugly -- and less functional than my own widget set in the ways that mattered to
364 me, so I had given up on it). Dave offered to fund development of a gtk
365 fontforge UI, but only if I'd switch to GPL. I dislike GPL, it seems so
366 restrictive to me, so I said I wouldn't. Then I realized that I could rework my
367 library until it was independent of widget set, and allow Dave to write a UI to
368 sit on top of it, not bound by the fontforge license. So I reworked the
369 internals of fontforge to make them extensible, stripped the UI out of
370 libfontforge. And started to work on a gtk based fontforge of my own.
371
372 Dave Crossland was complaining on the Open Font Library mailing list about how
373 much information was lost when a font was released. Guidelines. Names of
374 lookups. Cubic splines used for generating the quadratics of TrueType. And about
375 the need for providing sources. Well, providing sources of fonts can be
376 difficult, and not always useful if the tools to generate the fonts aren't also
377 available. However there is no reason why much of that information can't be
378 stored in the font itself. I already had a table that FontForge would create
379 called ('PfEd', left over from PfaEdit days) which stored per-glyph comments,
380 and other things. I could simply extend that table to store guidelines and other
381 things. And document it so that others could use it, of course -- but I'd
382 already done that.
383
384 And that brings us up to Jan 2008, I guess the pace of change sped up a bit this
385 year as opposed to last.
386
387 Alexey and others complained that they wanted multiple layers of splines. More
388 than just the Foreground, Background, Guidelines layers that FontForge came
389 with. One common request was to have both a cubic (PostScript) and a quadratic
390 (TrueType) layer and be able to generate fonts from both. So in March of 2008
391 FontForge grew multiple layer support.
392
393 Later in March I added support for the OpenType 'BASE' and Apple 'bsln' tables.
394 And to amuse myself I added the ablity to have gradient fills in Type3 (and svg)
395 fonts.
396
397 In June I was thinking of the embolden command I did the year before, and
398 realized that that was essentially the same idea as was needed for generating
399 Small Caps glyphs from Capital letters. And then some of those algorithms could
400 be used to create condensed and extended glyphs. And then I sat down and wrote a
401 generic "glyph change" dialog -- years ago I had had a "MetaFont" command which
402 was supposed to allow the user to embolden fonts for condense them or ...
403 Unfortunately my MetaFont never worked very well (And some users complained that
404 It didn't read Knuth's mf files. Sigh. No, it metamorphosed fonts in its own
405 way, not Knuth's), so it got removed. Now it was basically working in a new form
406 -- but I know better than to call it MetaFont now.
407
408 Alexey then stepped in and rewrote much of the code. I did not handle diagonal
409 stems well when creating small caps, and that was just what he was doing with
410 the autohinter. So he greatly improved the output.
411
412 I was also intregued by italics. Converting a font to italics involves so many
413 different things -- the font is slanted, compressed, serifs change, letter forms
414 change, ... I studied existing fonts to see what I could learn and asked
415 various real typographers. The consensus I heard from them was that I could
416 never make a good italic font from a roman one mechanically and should not
417 bother to try -- it would just lead to people making bad italic fonts. Good
418 advice, but I didn't follow it. I thought it was a neat challenge. And it was
419 something Ikarus had done, so I wanted to do it too.
420
421 In July a friend of mine, who is a mac user, said she wouldn't even consider
422 looking at fontforge on her mac unless it behaved more like a mac application.
423 So I figured out how to build a mac Application, and how to respond to apple
424 events (like having someone double click on a font file, or drop a font file on
425 fontforge's icon). I figured out how to start up X so that the user didn't have
426 to. I made pretty (well, I think they are pretty) icons for font files. I even
427 changed the menus to use the command key on the mac and to show the mac
428 cloverleaf icon.
429
430 My friend still (November) has not looked at fontforge. Ah well.
431
432 Dave Crossland had hired someone to integrate cairo into fontforge. But the
433 result never got back to me. In a moment of foolish boredom I decided I could do
434 that too. So I studied cairo, and it really didn't seem that hard. But it was
435 slow -- at least on my 10 year old x86 machine which doesn't support XRender.
436 Cairo gave two things I cared about, anti-aliased splines in the glyph view, and
437 anti-aliased text everywhere. Well I needed cairo in the glyph view, but pango
438 would also provide fuzzy text and was lighter weight and would also support
439 complex scripts (which fontforge's own widget set did not do). So I could turn
440 off cairo everywhere but the glyph view but still get fuzzy text from pango. And
441 speed things up. Then Khaled Hosny suggested that I implement pango. Hurumph.
442 And I had wanted to surprise people. Oh well. Implement Pango I did.
443
444 A group in Japan created the "Unofficial mingw fontforge page". A very nice
445 piece of work. It included a set of X resources which provided another, nice
446 look to the UI. A theme. And then other people started writing themes -- and
447 started complaining about and finding old bugs in fontforge's resource reading
448 code -- it had never been exercised before I guess.
449
450 --------------------------------------------------------------------------------
451
452 I have received many suggestions from many people, too many to enumerate here,
453 and FontForge is the better for their requests. Often I have reacted badly to
454 these suggestions (because they always mean more work for me), and I apologize
455 for that, but mostly I wish to thank those who have helped make FontForge what
456 it is today.
457
458 Currently, probably the biggest complaint about FontForge is the choice of
459 widget set. No one likes my widgets (except me). Unfortunately for the rest of
460 the world
461 :ref:`I don't like the two choices of widget set available to me (gtk and qt) <faq.widget-set>`.
462 I will get started working on converting to one and then run into some problem I
463 can't work around easily and give up and go back to my own. Well in 2008 I still
464 don't like gtk, but I have the fontview working in it. A start but probably not
465 something I will continue.