Jasper Report don't render bold fields

4,398 views
Skip to first unread message

Nicolas Micoud

unread,
May 11, 2018, 5:42:15 AM5/11/18
to iDempiere
Hi,

Just notice that jasper reports display bold field as "standard" fields.

I've added an example on test.idempiere.org

Log in System and launch the 'report_bold'

The document column header and detail are set as 'bold' but are displayed like grand total.

Did i miss something or is something broken ??

Thanks,

Nicolas

Nicolas Micoud

unread,
May 14, 2018, 4:00:22 AM5/14/18
to iDempiere
Following http://wiki.idempiere.org/en/Making_fonts_available_to_your_JasperReports, i install the plugin "org.adempiere.report.jasper.fonts" on test.idempiere.org.
And run the report again.
Bold (an italic) and still not displaying correctly !

nb: underline is ok

Nicolas Micoud

unread,
May 14, 2018, 4:56:36 AM5/14/18
to iDempiere
Another test : locally, report is displayed :
 - correctly when lauching from iReport
 - not correctly (no bold, no italic) when lauching from a running instance of idempiere from Eclipse.

So i guess the issue is in the "setup".

Any idea ?

Syed

unread,
May 14, 2018, 5:23:17 AM5/14/18
to iDempiere
Hi Nicolas,

unzip jasperreports-fonts-5.6.0.jar

install all the fonts in your client machine.

Then  your issue will be fixed.

Or
you can follow this article to fix the font issue

Regards,
Syed.

Nicolas Micoud

unread,
May 14, 2018, 6:31:45 AM5/14/18
to iDempiere
Hi Syed,

AFAIU, fonts are already installed on the servers (tiping fc-list shows lots of fonts) and in my local machine where Eclipse runs.

What I don't understand is why was it working on 2.1 and not anymore on 5.1 ?
I can't find the setting to update :-/

Nicolas Micoud

unread,
May 14, 2018, 8:09:19 AM5/14/18
to iDempiere
Trying again... and trying to install the fragment 'org.adempiere.report.jasper.fonts' ; and this time, polices which are in the jar are displayed correctly.
Don't know why it wasn't the case this morning

Thanks,

Nicolas

Syed

unread,
Aug 6, 2018, 8:35:56 AM8/6/18
to iDempiere
Hi Nicolas,
In iDempiere 4.1, I am using jasperreport 6.3.0 fonts are rendered properly.
I get the same issue now which idempiere 5.1 don't render bold fonts.

Do you have any ideas about this?

Thanks,
Syed.

Nicolas Micoud

unread,
Aug 6, 2018, 9:43:20 AM8/6/18
to iDempiere
Hi,

I solved the issue by installing a plugin which contains all needed fonts (I think i follow http://wiki.idempiere.org/en/Making_fonts_available_to_your_JasperReports).

But no idea about what changes between 2.1 (and 4.1) and 5.1

Nicolas

Syed

unread,
Aug 7, 2018, 5:20:59 AM8/7/18
to iDempiere
Thanks for the link..

I have fixed this font issue by including org.adempiere.report.jasper.fonts fragment plugin project as mentioned in that link.

I am actually using jasper reports default font SansSerif. It seems iDempiere 5.1 requires the above fragment even to make default fonts available for jasper report rendering.

Carlos Antonio Ruiz Gómez

unread,
Aug 17, 2018, 2:03:37 PM8/17/18
to iDempiere
I think this is related to changes on how jasper implemented fonts.

Some clues here:
"Formerly used font definitions relied on font files available on the machine..."

I made a commit here
to enable DejaVu which is by default distributed with jasperreport-fonts

But as explained in this thread - the solution is to install the required fonts as extension.

Regards,

Carlos Ruiz
Reply all
Reply to author
Forward
Message has been deleted
0 new messages