Thank you for contacting us.
When you want to export custom font to PDF you should first register the font using the FontsRepository.
The following example shows how to register "MS Mincho
" font family using a font file "msmincho.ttc
" (the file should be added to your project and should have build action "Resource" in its properties).
FontFamily CustomFontFamily =
 fontData = ResourceHelper.GetResourceData(CustomFontResource);
FontsRepository.RegisterFont(CustomFontFamily, FontStyles.Normal, FontWeights.Normal, fontData);
You should have in mind that using the FontsRepository
requires you to add reference to Telerik.Windows.Documents.Fixed.dll
. For more informations about fonts in PDF export you may follow this link to Fonts in PdfProcessing documentation article
When you have registered the font you can further set the font family in worksheet's cells when generating the document. The following code snippet shows how to set the previously registered font family to cell A1:
Following this steps you could export the PDF with the desired font.
I hope you find this helpful. If you have any other questions or concerns do not hesitate to contact us again.
the Telerik team
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.