I need print PDF report from Java application (Spring boot) which is can show Japanese characters and when change font, it has to show correctly font. My app using jasperreports-fonts-6.10.0.jar and setting in jasperreports_extension.properties is setting as below : net.sf.jasperreports.extension.registry.factory.simple.font.families=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactorynet.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory# font.xml placenet.sf.jasperreports.extension.simple.font.families.myfont=fonts/fonts.xml[/code]and in fonts/fonts.xml, is setting as below : ....<fontFamily name="Meiryo UI"> <normal>fonts/Meiryo UI.ttf</normal> <pdfEncoding>Identity-H</pdfEncoding> <pdfEmbedded>true</pdfEmbedded> <exportFonts> </exportFonts></fontFamily><fontFamily name="Tahoma"> <normal>fonts/tahoma.ttf</normal> <bold>fonts/tahomabd.ttf</bold> <pdfEncoding>Identity-H</pdfEncoding> <pdfEmbedded>true</pdfEmbedded><fontFamily name="MS UI Gothic"> <normal>fonts/msgothic.ttc</normal> <pdfEncoding>Identity-H</pdfEncoding> <pdfEmbedded>true</pdfEmbedded></fontFamily><fontFamily name="Times New Roman"> <normal>fonts/times.ttf</normal> <pdfEncoding>Identity-H</pdfEncoding> <pdfEmbedded>true</pdfEmbedded></fontFamily>[/code]and in Java code : myReport.getDefaultStyle().setPdfFontName(newfontReport); // newfontReport is setting in DB[/code]All of above fonts are existing in resource of web app. But it only show japansese text and englist text correctly in report with "Meiryo UI". Other fonts (ex : "Times New Roman"), it show englist text parts only , japansese text parts are invisiblity. Have got any one can be show me why ?
Dear all, I have got a question that need you answer : Because license of Jasper ETL, JasperReport Server are GPL, AGPL, so if I using to develop my application, Must I be public source code of it ? Regards