Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to fix Font is not available to JVM


    akonkin
    • Features: JasperReports Server Product: JasperReports® Server

     “This functionality is obsolete and no longer supported. Please check the link here for similar functionality on version 8.0”

    (https://community.jaspersoft.com/wiki/custom-font-font-extension)

     

     

    Question:

    During my work with JasperReports Library I have got the error:

    net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Calibri' is not available to the JVM. See the Javadoc for more details.

     

    Answer:

     

    I would suggest that you should check the sample, that shows how to work

    with font extensions, that is supplied with the product .

    This sample (shipped with the JasperReports project distribution package under the

    /demo/samples/fonts) contains jrxml report, configuration

    files and ttf fonts that should be embedded to the pdf document.

     

    Below I quote the link to the information from which you can start

     

    (JasperReports Ultimate Guide v3.7 - Page 294 / SIMPLE FONT EXTENSION TUTORIAL):

     

    The link below from the internet would be also helpful regarding this topic:

     

    http://mdahlman.wordpress.com/2010/05/28/jaspersoft-v3-7-font-extensions/

     

    You can generate a font extension file automatically in iReport and JasperSoft Studio.

     

     

    For iReport, the latest version that is available in the Support Portal:

     

    iReport Ultimate Guide/8.2 Using TrueType Fonts/Page 126

    - install the font in iReport (tools -> options -> fonts -> 'Install Font'')

    - generate a font extension jar file (tools -> options -> fonts -> 'Export as extension')

    - add the generated font extension jar file as a resource to the report

     

    You can also generate this file with the similar steps in JasperSoft Studio.

     

     

    Font extension file should be placed in the

     

    lib folder to make it available to your application.

     

    P.S.:

    You can download both aforementioned documents

    (JasperReports Ultimate Guide and iReport Ultimate Guide)

    from our community web page:

    http://community.jaspersoft.com/documentation


    User Feedback

    Recommended Comments

    There are no comments to display.



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