CMDBuild Forum

Report Error:Could not load the following font

Hi, after updating from 3.3.2 to 3.4, my reports that worked with 3.3.2 now don’t work anymore. Error message when I try to open a pdf report from the data menu:

error processing report = ReportDataExt{id=3938048, code=BEV}, caused by: net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font: \npdfFontName: SansSerif\npdfEncoding: Identity-H\nisPdfEmbedded : false"

I’m not even using SansSerif font on my report, I’m using Times New Roman. I’m not really sure what I’m missing here. Below full error code:

{"success":false,"messages":[{"level":"ERROR","show_user":false,"message":"org.cmdbuild.report.ReportException: error processing report = ReportDataExt{id=3938048, code=BEV}, caused by: net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font: \npdfFontName: SansSerif\npdfEncoding: Identity-H\nisPdfEmbedded : false","_message_translation":"org.cmdbuild.report.ReportException: error processing report = ReportDataExt{id=3938048, code=BEV}, caused by: net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font: \npdfFontName: SansSerif\npdfEncoding: Identity-H\nisPdfEmbedded : false"}]}

My bad, it works using a different font (Arial), but I can’t understand how to add missing fonts. From the error log:

WARN n.s.j.engine.fonts.FontUtil - Font 'Times New Roman' is not available to the JVM. For more details, see http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/util/JRFontNotFoundException.html