Correct a bug which affects font type in PDF generation and the save model.