16.1.0: WORDSNET-12955 not resolved (Random TimesNewRoman font)

Hi,

I have posted an issue earlier that has allegedly been resolved in 16.1.0, but I can still reproduce the issue. Please see:

15.12.0: ‘Times New Roman’ font getting added to docx randomly

The output for me is now:

Calibri:Evaluation Only. Created with Aspose.Words. Copyright 2003-2016 Aspose Pty Ltd.

Calibri:This

Calibri:text

Calibri:

Calibri:is

Calibri: in

Calibri:calibiri

Calibri:!

Font ‘Calibri’ has not been found. Using ‘Fanwood’ font instead. Reason: first available font.

Font ‘Times New Roman’ has not been found. Using ‘Fanwood’ font instead. Reason: first available font.

As you can see, there is still a font ‘Times New Roman’ found that should not be there.

Hi Ranchler,

Thanks for your inquiry. The Times New Roman is not applied to any text in the document but the document contains bookmarks. Aspose.Words uses Times New Roman for bookmark nodes. Please remove the bookmarks from the document using following code snippet and test the same scenario. You will not get the following warning message.

Font ‘Times New Roman’ has not been found. Using ‘Calibri’ font instead. Reason: first available font.

Document document = new Document(MyDir + "in.docx");
document.getRange().getBookmarks().clear();