This is a migrated thread and some comments may be shown as answers.

Add a secondary font to report

1 Answer 544 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Janitha
Top achievements
Rank 1
Janitha asked on 23 Jan 2019, 03:17 AM

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. 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 25 Jan 2019, 01:10 PM
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
Tags
General Discussions
Asked by
Janitha
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or