Jump to content

font extension


maxib

Recommended Posts

I'm using JasperReports 3.7.2, iReport 3.7.2. and jre 1.6.0.20
I need to use courier new in a report. I've installed the font in iReport and set the Font name in the text field. Then I use font extension to use from my webapp.

I can preview in pdf in iReport but when I export report as pdf I got an exception:
Caused by: java.awt.FontFormatException: bad table, tag=-1078132736
    at sun.font.TrueTypeFont.init(TrueTypeFont.java:512)
    at sun.font.TrueTypeFont.<init>(TrueTypeFont.java:162)
    at sun.font.FontManager.createFont2D(FontManager.java:2474)
    at java.awt.Font.<init>(Font.java:570)
    at java.awt.Font.createFont(Font.java:896)
    at net.sf.jasperreports.engine.fonts.SimpleFontFace.<init>(SimpleFontFace.java:69)

Cheers, Maxi

Link to comment
Share on other sites

  • 3 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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