Add a secondary font to report

2 posts, 0 answers
  1. Janitha
    Janitha avatar
    14 posts
    Member since:
    Mar 2018

    Posted 22 Jan Link to this post

    We have a report generated using Telerik Standalone designer where we use CSV data sources. Sometimes these data sources contain Asian characters. Our default font is "Segoe UI" which does not support these characters when generating the PDF file. Is there a way that we can define a secondary font when generating a PDF file so when a PDF is generated it will identify these characters are not available in the primary font and switch to the secondary font? 

    Thank you. 

  2. Todor
    Admin
    Todor avatar
    290 posts

    Posted 25 Jan Link to this post

    Hi Janitha,

    Generally, we count on GDI to fallback to an alternative font if any of the fonts used in the Report cannot be found. We do not perform any font verification, as this should be done symbol by symbol and will introduce a big overhead in the report performance.

    If the requirement is only for PDF rendering, you may use Bindings to set the Style->Font property of the Report - check the attached screenshot.
    If you can determine whether the Report will contain Asian characters based on some logic/data, you may utilize custom user function in the above Bindings Expression to set the Font of the Report either to "Segoe UI" or to the font that contains those characters.

    Alternatively, you may set the specific font only to the report items that may contain Asian characters. The other items with not explicitly set Font will inherit the Font of their parent.

    Regards,
    Todor
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top