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

Styled text not working


kriegerd

Recommended Posts

Hello everyone,

 

I have a report with styled text. When I used the jasper viewer everything is ok. But when I export it to pdf, only one underline is exported. I have only bold text here and there and it's not exported.

 

Can anyone tell me why?

I'm using JasperReports 1.3.2.

 

Thanx in advance

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

 

When exporting to PDF, you need to use the pdfFontName attribute to specify a different font file for bold.

Or, you could supply font mappings at export time using the FONT_MAP attribute.

Check both the /demo/samples/fonts and the /demo/samples/styledtext samples provided with the project.

 

I hope this helps.

Teodor

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...