We are unable to set font family of whole document including html, paragraphs, headings, tables, barcodes using DocumentBuilder of Aspose.Words in Java.
Tried acheiving it by following code but this does not seem to work:
// Set Font Family
com.aspose.words.Style style = doc.getStyles().add(com.aspose.words.StyleType.PARAGRAPH, “MyStyle”);
style.getFont().setName(“Arial”);
builder.getParagraphFormat().setStyle(style);
builder.getFont().setName(“Arial”);
Please suggest solution to the problem.
Thanks.