(JasperReports) JRExporterParameter.FONT_MAP is missing (how to replace?)

I am transitioning from JasperReports 4.0.0 to JasperReports 6.1.0

I used:

Map<FontKey, PdfFont> fontMap = new HashMap<>(); fontMap.put(new FontKey("SansSerif", true, true), new PdfFont("ARIALUNI.TTF", BaseFont.IDENTITY_H, true)); fontMap.put(new FontKey("Helvetica", false, false), new PdfFont("ARIALUNI.TTF", BaseFont.IDENTITY_H, true)); pdfExporter.setParameter(JRExporterParameter.FONT_MAP, fontMap); 

But the FONT_MAP property no longer exists (same for the class: FontKey + PdfFont )

How can I achieve the same result with JasperReports 6.1.0?

+4
source share

All Articles