I've inherited a project that uses Jaspersoft Studio 6.2.2 (a tool I know nothing about). Reports are failing because they've been deployed to a Unix server that doesn't have the "Arial" font installed. I'm trying to replace it with "Lucida Sans", a font that I know is available
I've replaced the term "Arial" with "Lucida Console" in the two *.jrxml files I have and them recompiled to *.jasper but the report is totally ignoring the new font.
<style name="Heritage" mode="Opaque" forecolor="#E5F1FA" backcolor="#18BC9C" radius="3" hTextAlign="Center" vTextAlign="Middle" fontName="Lucida Sans" fontSize="12" isBold="true">
<conditionalStyle>
<conditionExpression><![CDATA[!$P{project}.isHeritage()]]></conditionExpression>
<style mode="Opaque" forecolor="#FFFFFF" backcolor="#D62C1A"/>
</conditionalStyle>
</style>
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font "Arial" is not available to the JVM.
Is there a quick way to switch the font?
I understand there're better solutions (use font extenions or just install Arial on server) but I need a quick fix.
add exported font file into the project's classpath.
try with following steps,