We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Font size .rtf

After running the code below I get font size 14 for the Run "— Il regionalismo si propone essenzialmente di tre diverse finalità:", but it is set to 12 in the document. Can you please check this?



public void test() throws Exception {
Document document = new Document("Test2.rtf");

List runs = getRuns(document);
for(Run run: runs) {
System.out.println("Size is: " + run.getFont().getSize());

private List getRuns(Document document) throws Exception {
final List runs = new ArrayList();

document.accept(new DocumentVisitor() {

public int visitRun(Run run) throws Exception {

return super.visitRun(run);


return runs;

Hi Zeljko,

Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-12886. Our product team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.

Best regards,
Hi Zeljko,

We have a good news i.e. our product team has resolved this issue (WORDSNET-12886) and they have planned to include the fix to your issue in next 16.1.0 - Jan 2016 release of Aspose.Words. We will inform you via this thread as soon as next release containing the fix to this issue is published at the start of next month.

Best regards,

The issues you have found earlier (filed as WORDSNET-12886) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.