| 1 |
Error Recovery |
| 2 |
============== |
| 3 |
|
| 4 |
All programs crash, and new programs (like this one) crash a lot. |
| 5 |
|
| 6 |
Every minute or so FontForge looks around and sees if anything has changed since |
| 7 |
the last time it checked. If it finds a font that has had changes, it will save |
| 8 |
a small file in its private directory (``~/.FontForge/autosave``) which |
| 9 |
consists of all changed glyphs in the changed font. |
| 10 |
|
| 11 |
When FontForge starts up it checks this directory, and if it finds anything |
| 12 |
there it attempts to apply those changes to the original font. So if FontForge |
| 13 |
crashes, or if your machine crashes, the next time you start FontForge it will |
| 14 |
figure out what you were doing and recover it as best it can. |
| 15 |
|
| 16 |
When editing CID-keyed fonts there are a few potential gotchas: |
| 17 |
|
| 18 |
* FontForge does not keep track of gross changes (like adding or removing a sub |
| 19 |
font) |
| 20 |
* FontForge does not keep track of which sub font a change occurred in, instead |
| 21 |
at recovery time it will look for a subfont that is contains a glyph at the |
| 22 |
CID that was changed. In almost all cases this will be right, but if you add |
| 23 |
glyphs or if you have two sub-fonts defining the same CID, FontForge may guess |
| 24 |
wrong. |