FontTablePart fontTablePart= this.getMainDocumentPart().getFontTablePart();
if (fontTablePart==null) {
log.warn("FontTable missing; creating default part.");
fontTablePart= new org.docx4j.openpackaging.parts.WordprocessingML.FontTablePart();
fontTablePart.unmarshalDefaultFonts();
fontTablePart.processEmbeddings();
}
fonts = (org.docx4j.wml.Fonts)fontTablePart.getJaxbElement();
}