Problem with Roboto font in exported PDF

2 posts, 0 answers
  1. Shmulik
    Shmulik avatar
    4 posts
    Member since:
    Dec 2017

    Posted 29 Jan Link to this post

    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>
  2. Silviya
    Admin
    Silviya avatar
    317 posts

    Posted 01 Feb Link to this post

    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
Back to Top