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

Problem with Roboto font in exported PDF

1 Answer 1356 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shmulik
Top achievements
Rank 1
Shmulik asked on 29 Jan 2019, 12:30 PM
Problem description: the "Roboto" TTF font in the exported PDF (in the Telerik Reporting REST Service on the Azure web app) is replaced by another font.

General Information:
- Environment: Windows 10 (development), Azure web app (publish)
- Telerik Reporting version 12.1.18.516
- Report designer: Visual Studio 2015
- Project types: Class library (report dll) and Telerik Reporting REST Service
- Font families: Roboto and RobotoSlab (trye type fonts)

Unsuccessfully solution:
I tried to solve this problem using solution specified in the "privateFonts Element" article.
http://docs.telerik.com/reporting/configuring-telerik-reproting-privatefonts
I placed the following XML into the <configuration> tag of the Web.config file but receive the: "HTTP Error 500.19 - Internal Server Error"

<configuration>
   ...
  <Telerik.Reporting>
    <privateFonts>
      <add fontFamily="Roboto" path="D:\home\site\wwwroot\webrep\fonts\Roboto-Regular.ttf" />
      <add fontFamily="RobotoSlab" path="D:\home\site\wwwroot\webrep\fonts\RobotoSlab-Regular.ttf" />
    </privateFonts>
  </Telerik.Reporting>
   ...
</configuration>

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 01 Feb 2019, 10:18 AM
Hello Shmulik,

The solution in this scenario would be to add the required font as a private font to the application. The font files (including all font variations used in the report) needs to be added to the application that exports reports and also referenced in privateFonts element in Telerik.Reporting configuration section in application configuration file.

For more detailed instructions on adding the font as a private font and examples please check https://docs.telerik.com/reporting/configuring-telerik-reproting-privatefonts.

An important note is that GDI calls required for handling private fonts are blocked in Azure App Services. Therefore, our recommendation is to use Cloud Service plan in case private fonts are required. Please refer to this feedback request - PrivateFontCollection is not working.

Let us know if you need any additional information.

Regards,
Silviya
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
Shmulik
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Share this question
or