Fixed bug in ttf generator.