Jump to content
We've recently updated our Privacy Statement, available here ×

Jasper Font Arial Unicode MS, bold simulation wraps text too early


tjahfe

Recommended Posts

Hi,

I have managed to generate a report in Arial Unicode MS with bold simulation using Jasper Font Extesion.

The following is my Jasper Font Extension configuration:
 

jasperreports_extension.properties:

net.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactorynet.sf.jasperreports.extension.simple.font.families.ireportfamily1379581299032=fonts/fontsfamily1379581299032.xml[/code]

 

fontsfamily1379581299032.xml:

<?xml version="1.0" encoding="UTF-8"?><fontFamilies>   <fontFamily name="Arial">       <normal><![CDATA[fonts/arial.ttf]]></normal>       <bold><![CDATA[fonts/arialbd.ttf]]></bold>       <italic><![CDATA[fonts/ariali.ttf]]></italic>       <boldItalic><![CDATA[fonts/arialbi.ttf]]></boldItalic>       <pdfEncoding><![CDATA[identity-H]]></pdfEncoding>       <pdfEmbedded><![CDATA[true]]></pdfEmbedded>   </fontFamily>   <fontFamily name="Arial Unicode MS">       <normal><![CDATA[fonts/ARIALUNI.TTF]]></normal>       <pdfEncoding><![CDATA[identity-H]]></pdfEncoding>       <pdfEmbedded><![CDATA[true]]></pdfEmbedded>   </fontFamily></fontFamilies>[/code]

 

However,  I have a problem with text-wrapping when bold is set to 'true'.
Text often gets wrapped to the next line too early, and sometimes creating unnecessary whitespace as per screenshot below.

wrapping.jpg.662bf2f4fcbaa9c6edf3d336d9b7f57d.jpg

 

Could anyone please help?

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...