install font ttf-microsoft core font

Jasper Report error : net.sf.jasperreports.engine.util.JRFontNotFoundException: Font ‘Times New Roman’ is not available to the JVM.

Ops, ternyata laporan menggunakan font Time New Roman sedangkan di JVM tidak terdapat font Time New Roman.

Untuk resolve masalah ini ada 2 cara ::

#1.
Ubah file jasper ( laporan.jrxml ) menggunakan font2 yang ada di JVM

#2.
Install font ttf-mscorefonts

Untuk install font ttf-mscorefonts, buka Ubuntu Software Center : ketikkan “ttf-mscorefonts”
tanpa tanda petik🙂

Klik Install. tunggu sampai selesai .😀

Sumber Untuk install font ms core fonts ::
http://www.howtogeek.com/howto/15495/add-microsoft-core-fonts-to-ubuntu/

Published by

saifiahmada

Begin a big Process with a bit trying

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s