I am converting docx documents to html. Now I need to fetch the default (Normal) font format of a template document seperately from the content to use in the sites css.
My problem arises when I do the following:
Font font = doc.Styles["Default Paragraph Font"].Font; //Same for "Normal"
When I try to get the font name it gives me back "Times New Roman" when it should be "Century Gothic".
Now the strange thing is that when I use the VS QuickWatch to enumerate the result view of my Aspose.Document variable the font gets updated (correctly).
I tried enumerating the document childnodes myself, adding new items, and lots of other desperate things. None worked.
Even if I enumerate the children and check their font I get "Times New Roman". None of the runs seems to use "Century Gothic".
I can however find the "Century Gothic"-font within the document's FontInfos-list.
When I save the document the (style)font is correct (in MS Word). Even when creating a new document, copying the content (using keepSourceFormatting) Aspose returns "Times New Roman" and in generated MsWord-doc the font is correct."
I am using Aspose.Words 8.0, but when trying with the latest trial the same problem arises.