Final Font font = FontRepository.findFont(fontName, false);

final Font font = FontRepository.findFont(fontName, false);
Whether true\false is like this
class com.aspose.pdf.exceptions.FontNotFoundException: Font 微软雅黑 was not found

@zyx,
Thank you for your query. Could you share more details about the issue, please?