add missing writeFontStyle