0

I'm getting the exception net.sf.jasperreports.engine.util.JRFontNotFoundException Font 'Arial' is not available to the JVM

So after some reading I found a maven dependency which seems to add the Arial font. https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports-fonts/6.20.0

Will this dependency add the Arial font, so jasperreports can use it?

midi
  • 3,128
  • 5
  • 30
  • 47
  • You need to use font-extension, arial is not included in jasper-reports fonts, you need to make your own see this answer https://stackoverflow.com/a/35549391/5292302 – Petter Friberg Dec 16 '22 at 15:00
  • What about this one? I read it's including arial. https://mvnrepository.com/artifact/com.mpobjects.jasperreports.font/jasperreports-fonts-liberation/2.1.2 mentioned here https://jar-download.com/?search_box=jasperreports+fonts – midi Dec 16 '22 at 15:09
  • Yeah maybe (I don't know about this one), but it's easy also to do your own font-extension, follow links on the bottom (depending on your IDE) of the answer I linked. – Petter Friberg Dec 16 '22 at 15:21
  • Ok I'll give it a try. But only on Monday. Thank you very much. – midi Dec 16 '22 at 15:49
  • Finally it got merged and it worked. Thank you very much. – midi Jan 10 '23 at 15:21

0 Answers0