fix ttf generation