Jump to content
Changes to the Jaspersoft community edition download ×
  • What happens if you reference a Font in a pdf but choose not to embed it?

    • Product: JasperReports® Server

    Issue Description

    Typically customers desire to embed their font within their PDF so ensure the look & feel of their PDF matches their desired font in all viewing circumstances, even when end-users don't have that font installed on their client-OS.  For management of Fonts with respective to PDF you should use the font-extension feature:


    But occasionally customer need to embed the font for size-reasons, or they accidentally choose to not embed the font.


    When defining your font extension to help define the fonts for your JRXML, you can make a few PDF-specific settings.  

    a) You can set "PDF Font Name" to provide an alternative font are used in PDF files nstead of the font you are defining for the rest of your reports.  The options are one of the PRF Standard 'core' fonts.  The PDF Standard contains a few 'core' fonts, these are the families of Helvetica, Courier, Symbol, Times Roman, ZapfDingbats, etc.   Thes core fonts don't need to be embedded, they are always inherent to PDF files.   This is useful if someone wants their .docx and .html exports to use a specific font like Calibri but are okay with PDF using one of the 'core' fonts instead.

    b) You can choose whether to embed the font or not.  As described elsewhere if you reference a font within a PDF but do not embed it, then you are relying on the client-OS to provide the font data (the .ttf files for example).  If they are not present, the font will be unreadable.  

    In the below example we're okay with Helvetica being used instead of Arial so we don't need to embed.


    You can tell whether or not your PDF has font embedded or not by opening the file in Adobe Acrobat, going into File -> Properties (or Control D) and looking for the word "embedded":



    The above two were created using a blank or empty "PDF Font Name" , so Arial is the referenced font, but obviously the lower image shows no embedding.  If you viewed this PDF on a machine which did not have Arial font installed at the OS level if would be unreadable, like:




    Ref. Case 01468397


    User Feedback

    Recommended Comments

    I'm having some toruble with the non emedded font that I do not want to be incorporated in the report. When I generate the pdf and go to the Properties > Fonts I see my 3 desired embedded fonts and a fourth not embedded font that is Helvetica. I tried to eliminate it and searched how to do it but no solution. Could you please give me a hand?

    Thank you,

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