/** * @deprecated */ public synchronized JRReportFont removeFont(JRReportFont reportFont) { if (reportFont != null) { if (reportFont.isDefault()) { setDefaultFont(null); } fontsList.remove(reportFont); fontsMap.remove(reportFont.getName()); } return reportFont; }
/** * Adds a new font to the report fonts. * @deprecated */ public synchronized void addFont(JRReportFont reportFont, boolean isIgnoreDuplicate) throws JRException { if (fontsMap.containsKey(reportFont.getName())) { if (!isIgnoreDuplicate) { throw new JRException("Duplicate declaration of report font : " + reportFont.getName()); } } else { fontsList.add(reportFont); fontsMap.put(reportFont.getName(), reportFont); if (reportFont.isDefault()) { setDefaultFont(reportFont); } } }
jasperPrint.setOrientation(orientation); jasperPrint.setDefaultFont(defaultFont);
jasperPrint.setDefaultFont(report.getDefaultFont()); jasperPrint.setFormatFactoryClass(report.getFormatFactoryClass());