Fix a bug in the font writing example.