Hi,
When I open the attached “eula.1037.rtf” document and change the font of every run to “Arial”, the font in saved file “eula.1037-font-change.rtf” is changed to Courier New. Can you check this?
Here’s the code I used:
Document document = new Document("eula.1037.rtf");
document.accept(new DocumentVisitor()
{
@Override
public int visitRun(Run run) throws Exception
{
run.getFont().setName("Arial");
run.getFont().setNameBi("Arial");
return super.visitRun(run);
}
});
document.save("eula.1037-font-change.rtf", SaveFormat.RTF);
I’m using Aspose.Words 14.3.0.
Thanks,
Zeljko