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

Save as PDF with Cyrillic fonts failed

1 Answer 207 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Mikko
Top achievements
Rank 1
Veteran
Mikko asked on 28 May 2020, 10:32 AM

Hi,

We might be missing something but when saving Gantt, containing Cyrillic fonts, those are not showing correctly. Could you please advice?

Fonts are showing correctly on the form.

Best regards, Mikko

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 02 Jun 2020, 08:51 AM

Hello Mikko,

The special characters and fonts need to be explicitly added for the exported file to have them correct. 

The PDF export functionality of the RadGantt uses non-Unicode fonts for the exported document. To overcome this and render Mandarin in the exported document, you will have to load a Unicode font, to set it as font-family for the RadGantt and to add it to its PDF export Fonts collection.

For your convenience, I prepared a runnable web site example, which you will find attached to my reply and modify to best fit in your specific scenario.

The code that sets the font is this:
protected void Page_Load(object sender, EventArgs e)
{
    RadGantt1.ExportSettings.Pdf.Fonts.Add("Arial Unicode MS", "Fonts/ARIALUNI.TTF");
}


Regards,
Peter Milchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Gantt
Asked by
Mikko
Top achievements
Rank 1
Veteran
Answers by
Peter Milchev
Telerik team
Share this question
or