michael.kim Posted November 3, 2015 Share Posted November 3, 2015 Please somebody help me about font problem of Jasper Report. I tried to use custom font(**DejaVu Sans Condensed**) when creating PDF in Jasper Report. But I got error from it. ** Error Description ** java.lang.Exception: net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font : pdfFontName : DejaVu Sans Condensed pdfEncoding : Identity-H isPdfEmbedded : false - Developing Environment OS:MacOS Tool:Jaspersoft Studio 5.6.1.final - Server Envrionment OS:Linux Ubuntu 14.04.1 I used **.jrxml** file for source code. Here is my source code. <property name="net.sf.jasperreports.awt.ignore.missing.font" value="true"/> <property name="net.sf.jasperreports.default.font.name" value="DejaVu Sans Condensed"/> <property name="net.sf.jasperreports.default.pdf.font.name" value="DejaVu Sans Condensed"/> <property name="net.sf.jasperreports.default.pdf.encoding" value="Identity-H"/> <property name="net.sf.jasperreports.default.pdf.embedded" value="false"/> <font fontName="DejaVu Sans Condensed" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="DejaVu Sans Condensed" pdfEncoding="Identity-H" isPdfEmbedded="false"/>[/code] Even I set 'isPdfEmbedded=true', but same error. There is no any Maven, Gradle. Only use **.jxrml** file These are what I referred. - http://www.77dev.com/2014/07/could-not-load-following-font-solved.html - http://jasperreports.sourceforge.net/sample.reference/fonts/ - http://stackoverflow.com/questions/8985497/use-custom-fonts-when-creating-pdf-using-ireport - http://stackoverflow.com/questions/3811908/jvm-fonts-and-jasperreports P.S. My english is not good. So if you can't understand my question then please ask me again. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now