I'm generating a multi-language report using JasperReports in Java.
When I generate pdf, few languages do not display properly.
Whereas, When I generate Excel, The report is generated properly with the correct language.
searching on the internet I found pdf font is not supported.
- so I added noto sans font.
- creating a custom jar font file from jaspar studio.
- added in classpath.
here my code set to font:
Style rowStyle = new Style();
Font font = new Font(FONT_SIZE_SMALL, "Noto Sans", false, false, false);
font.setPdfFontName("Noto Sans");
font.setPdfFontEncoding(Font.PDF_ENCODING_Identity_H_Unicode_with_horizontal_writing);
font.setPdfFontEmbedded(false);
rowStyle.setFont(font);
any idea how to solve?