Jump to content
JasperReports Library 7.0 is now available ×
  • JRS appends locale to inline font-family CSS declaration


    Jim W

    Issue Description

    We have added a fonts.jar file to WEB-INF/lib so that our Tahoma font specified in reports will be embedded in the PDF export. As a result, JRS now appends the locale to the font family and this results in the viewer not rendering Tahoma. For example, the inline CSS font-family now is Tahoma Bold-Bold-en_US_Mtrad. How can we stop JRS from appending the locale to the font-family? We would like Tahoma to be rendered in the viewer and in the exports. Right now it is not possible to do that.

    Resolution

    Add the following to WEB-INF/classes/jasperreports.properties:

     

    net.sf.jasperreports.web.resource.pattern.fonts=fonts/.*

    On IE, you might get this error.

    CSS3114: @font-face failed OpenType embedding permission check. Permission must

    be Installable.

     

    IE expects TTF fonts to have the embeddable flag set to Installable, and

    refuses to use the fonts otherwise.

     

    The solution is to use a font tool to either change the embeddable flag in the

    TTF file, or to convert the file to EOT and add the EOT file to the extension

    along the TTF file. Of course, you will need to check whether you have

    permission to update or convert the TTF file...

     

     

    Ref. Case 00066787


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...