Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Fonts liciencing problem in producing pdf format report

  1. #1
    Join Date
    Mar 2003

    Default Fonts liciencing problem in producing pdf format report

    Hi all,

    I have encountered a problem when generating pdf report using the new version of JFreeReport 0.8.2
    When I run the demo program (java -jar -cp lib/itext-0.98.jar:jfreereport-0.8.2.jar jfreereport-0.8.2-demo.jar) and try to save the pdf report, the following messages are shown:

    INFO:  Pagination started
    DEBUG: This is a buggy version of the font-renderer context: false
    DEBUG: The buggy-value is defined in the configuration     : false
    DEBUG: The G2OutputTarget uses Antialiasing. 
    The FontRendererBugs should not be visible in TextAntiAliasing-Mode.
    If there are problems with the string-placement, please report your 
    Operating System version and your JDK Version to
    DEBUG: Running on operating system: Linux
    DEBUG: Character encoding used as default: Cp1252
    DEBUG: Assuming unix like file structures
    DEBUG: Fonts located in "/usr/X11R6/lib/X11/fonts/truetype"
    WARN:  Font /usr/java/j2sdk1.4.1_02/jre/lib/fonts/LucidaTypewriterBoldOblique.ttf is invalid. Message:
    com.lowagie.text.DocumentException: /usr/java/j2sdk1.4.1_02/jre/lib/fonts/LucidaTypewriterBoldOblique.ttf - license restrictions does not permit embedding.
    	at com.lowagie.text.pdf.TrueTypeFont.<init>&#40;Unknown Source&#41;
    	at com.lowagie.text.pdf.TrueTypeFont.<init>&#40;Unknown Source&#41;
    	at com.lowagie.text.pdf.BaseFont.createFont&#40;Unknown Source&#41;
    I'm using linux and j2sdk1.4.1_02.

    Is it a normal behavior ?

    Thankx a lot.


  2. #2
    Join Date
    Mar 2003



    yes, this is normal. iText has no other means of showing that the font cannot be embedded, so we have to handle it like any other exception. And as we have no way of telling whether the font file was buggy or just restricted, we have to print the warning and then ignore the font.

    Have more fun,
    said Thomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.