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

diogopaludo

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by diogopaludo

  1. Hi CBox, I'm currently developing a Report Service that receives requests from different systems, compiles, fills and returns the reports in the file format wanted. The service is running fine, compiling all kinds of reports, but the fonts are a problem. I work at a University and some reports serve as certificates, with different lettering and styles, so fonts are unusual and not present in JVM or in the OS. I tried to export the fonts from iReport 4.5.1 as font-extensions and put them on my classpath, also trying to change the ClassLoader of the Thread as seen in this topic, but it didn't work. I'd appreciate any help that you can give me and I thank you in advance. Diogo
  2. Also, see if the property "pdfEmbedded" is like this in your fonts.xml <fontFamily name="Arial"> <normal>net/sf/jasperreports/fonts/arial/arial.ttf</normal> <bold>net/sf/jasperreports/fonts/arial/arial.ttf</bold> <italic>net/sf/jasperreports/fonts/arial/arial.ttf</italic> <boldItalic>net/sf/jasperreports/arial/arial.ttf</boldItalic> <pdfEncoding>Identity-H</pdfEncoding> <pdfEmbedded>true</pdfEmbedded> <exportFonts> <export key="net.sf.jasperreports.html">'Arial', Helvetica, sans-serif</export> <export key="net.sf.jasperreports.xhtml">'Arial', Helvetica, sans-serif</export> </exportFonts> </fontFamily>
  3. Hi, "when I debug starting from the SimpleFontExtensionHelper class, I can see the font jar being read and new SimpleFontFace instances being created for each .TTF file inside." Even in Linux you see that the Fonts were loaded properly? If not, maybe it is a path problem and your application isn't finding the extension, because of the differences between windows and linux.
  4. Greetings, I started working with JasperReports a few weeks ago and It's the first time that I post in this forum. Hope you guys can help me. I'm developing an application in the university that I work with the purpose of receiving several requests from all the systems and generate several different reports. It will serve purely as a report generator, running with Jetty in a server. The problem is that many reports have different fonts, like diplomas and certificates. I'm familiar with how font extensions work, but the first issue to this approach is that the fonts used may not have been antecipated or may be named differently by whoever created the report in iReport. The second issue is that the service can't stop and be restarted with other .jar covering the new fonts added, as many requests are running. I intend that when someone creates a new report, the application would receive the jar containing the fonts files and store it. With the Jars stored, they can be switched depending on the report I'm generating. Since we need to get this done, we're creating a repository with all the fonts, knowing that one day someone will complain about some report. One possible solution that I thought about is to have an applicattion just for receiving requests and executing one other application that generates the report, calling in the classpath the right jar, but I don't know if this will overload the server. Anyone have ever worked with something like this or has some useful tip to give me? Thanks in advance, Diogo
×
×
  • Create New...