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

How to register new font?


jmastajam

Recommended Posts

Hi everyone,

I need some help with configuring my JasperServer to recognize a new font (MICR to print account number/route number on a check)

I've read that in order to have the PDF exporter recognize a new font, I have to register it by specifying where the TTF (true type font) file or the directory is so the iText engine can load it. My understanding is that this can be accomplish by either setting the system properties (at run time) or by the jasperreports.properties

However, what I read is from the Definitive Guide to Jasper Reports. It doesn't look like JasperServer setting is similar.

Has anyone done something like this before? Please help if you can. I'm pretty stuck.

 

thanks

Nghia

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Ok I figured this out, following up just for FYI sake.

1. jar your TTF file.

2. Include the jar file as an external jar into your project (I'm using eclipse)

3. In the report template, set the PDF font to the name of the TTF file. For example: pdfFontName="MICR.ttf"4. isPdfEmbedded ="false"

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