Jump to content
JasperReports Library 7.0 is now available ×

HowTo embed PDF fonts for styled text?


tboerkel

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

HI!

 

I have however one additional question about TrueType fonts:

 

There are several TTF fonts installed on Windows (like Arial, etc.). When I use one of these fonts with the fontName attribute, I see the correct font in JRViewer, but not in PDF.

 

To use such already installed TrueType font for PDF, I have to:

- find the .ttf file in C:WindowsFonts

- copy the .ttf file to the classpath (or iReportfonts)

- specify the pdfFontName (the filename) in styled text

 

Example:

<style fontName="Freestyle Script" pdfFontName="FREESCPT.TTF">Test</style>

 

Couldn't this be made easier? Jasper should find the correct TTF file for embedding in PDF by only specifying the fontName attribute.

 

Thanks!

 

Thomas

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