File tree Expand file tree Collapse file tree
api/src/main/java/ca/bc/gov/educ/grad/report/dto/reports/jasper/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public class JasperReportImpl {
9191 Character .UnicodeBlock .SPACING_MODIFIER_LETTERS ,
9292 Character .UnicodeBlock .PHONETIC_EXTENSIONS
9393 ));
94- private static final JasperReportsContext JASPER_REPORTS_CONTEXT = createJasperReportsContext ();
94+ private static final SimpleJasperReportsContext JASPER_REPORTS_CONTEXT = createJasperReportsContext ();
9595
9696 /**
9797 * Controls scaling images written to the browser.
@@ -239,9 +239,11 @@ private void configurePdfGlyphRendering(final JasperPrint print) {
239239 logPdfGlyphRendererCandidates (print );
240240 }
241241
242- private static JasperReportsContext createJasperReportsContext () {
242+ private static SimpleJasperReportsContext createJasperReportsContext () {
243243 final SimpleJasperReportsContext context =
244244 new SimpleJasperReportsContext (DefaultJasperReportsContext .getInstance ());
245+ context .setProperty (PDF_GLYPH_RENDERER_BLOCKS_PROPERTY , PDF_GLYPH_RENDERER_BLOCKS );
246+ context .setProperty (PdfReportConfiguration .PROPERTY_GLYPH_RENDERER_ADD_ACTUAL_TEXT , Boolean .TRUE .toString ());
245247
246248 try (final InputStream inputStream = JasperReportImpl .class .getClassLoader ()
247249 .getResourceAsStream (FONT_FAMILIES_RESOURCE )) {
You can’t perform that action at this time.
0 commit comments