Jump to content

Font embd. : aft.-dsgn = no cp, no jrxml abs. path


pwork

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Ok, solved : this is not a font export error.

In the app I'm working on, fonts are located in many places, so that it can't be put in the classpath. In addition, the absolute path to the font can't be provided in the jrxml, for safety reasons.

So, at design time, a relative path is set in the .jrxml, and then, the absolute path is set by the Java app in the corresponding style objects contained in the JasperPrint object of the main report.

I made this "relative to absolute" operation for the main report only, after fill, and font couldn't be found on elements (text, graph, ..) contained in subreports : in main report, path was changed to absolute, but it remained relative in subreports.

So I just forgot to do the same replacement after subreports compilation, before adding them to the main report-filling parameters map ;)

Hope this monologue will help you to deal with fonts embedding.

 

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