public InvocationContext(ITextContext iTextContext) throws IOException, DocumentException { this.iTextContext = iTextContext; this.styles = iTextContext.styles(); // --- this.fontAwesome = new FontAwesomeAdapter(); this.processorDefault = new DefaultProcessor(); this.fontStack = new Stack<Font>(); this.fontStack.push(styles.defaultFont()); this.tableStack = new Stack<TableInfos>(); this.cellStylerStack = new Stack<CellStyler>(); this.treeNavigation = new TreeNavigation(); this.references = new References(); }
public Font peekSymbolFont() { return ITextUtils.adjustWithStyles(styles.getSymbolFont(), peekFont()); }