Use custom fonts when creating PDF in Jasper Report

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
Tool:Jaspersoft Studio
- 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="" value="DejaVu Sans Condensed"/>    <property 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"/>
Even I set 'isPdfEmbedded=true', but same error.
There is no any Maven, Gradle. Only use **.jxrml** file
These are what I referred.
P.S. My english is not good. So if you can't understand my question then please ask me again. Thanks.'s picture
Joined: Nov 2 2015 - 7:16pm
Last seen: 7 years 6 months ago

0 Answers:

No answers yet