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

Free Support Forum - aspose.com

Incorrect font size (981)


For almost every run in the attached word document, run.getFont().getSize() returns 10 instead of 12.

String path = “Test.docx”;
Document document = new Document(path);
List runs = new ArrayList();

try {
document.accept(new DocumentVisitor() {
public int visitRun(Run run) throws Exception {

return super.visitRun(run);
} catch (Exception e) {
throw new RuntimeException(e);
for (Run run : runs) {
System.out.println(run.getText() + ": " + run.getFont().getSize());

Can you check this?

Hi Zeljko,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSJAVA-1584. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.