Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

PDF Files - Embedding Open Type Fonts

edited August 2009 in General
Hi Everyone,

Have a request from our customer to change our reports font from Arial font
(True Type) to Trade Gothic (Open Type). We have run into an issue when
generating PDF documents because the Trade Gothic isn't True Type font and
therefore the PDF document uses the default font of Times Roman. Note
Printing and Print Preview of reports work fine as long as the PC has the
font installed.

So does someone know how we can use an Open Type font with ReportBuilder or
a 3rd Party component that will allow me to use Open Type fonts within
ReportBuilder so I can meet the customer's requirement?

Toolset
Language: Delphi 6
ReportBuilder: 6.03 with TExtraDevice 3.0

or

Language: Delphi 6
ReportBuilder: 11.03

Many Thanks
Stuart



__________ Information from ESET Smart Security, version of virus signature database 4361 (20090823) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Comments

  • edited August 2009
    Hi Stuart,

    OpenType fonts are currently fully supported by the built-in PDF device
    included with ReportBuilder.

    1. Be sure you are using the latest version of Adobe Reader.
    2. If the font is installed on the machine, Adobe should pick it up and use
    it in the PDF document being viewed. In my testing this worked correctly
    with numerous OpenType fonts.
    3. If you would like to be sure that the font will appear for every
    machine, you need to embed the font inside the PDF file. Use the
    Report.PDFSettings.EmbedFontOptions to set this up.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2009
    Hi,

    The interesting part the Report.PDFSettings.EmbedFontOptions We tried this
    but the font went the default PDF font being Times Roman. Do you an example
    of using Report.PDFSettings.EmbedFontOptions as we may have done something
    wrong.

    Cheers
    Stuart

  • edited August 2009
    Hi Stuart,

    Setting the EmbedFontOptions to EmbedAllFonts should embed all the fonts
    used in the PDF. In adobe you can look at the document properties in the
    "Fonts" tab to see what is being embedded and used.

    This may be an issue with the specific font you are trying to use. Are you
    able to export any other OpenType fonts to PDF successfully? If possible,
    please send me a copy of the font in question and I can run some tests here.
    Send the font in .zip format to support@digital-metaphors.com.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.