KendoReact PDF Generator Fonts

1 Answer 451 Views
PDF Processing
Stephen
Top achievements
Rank 1
Stephen asked on 15 Mar 2022, 01:16 AM | edited on 15 Mar 2022, 01:16 AM

I have been working with the KendoReact PDF Generator. I'm having trouble with getting my custom fonts to be exported to the PDF. I have added the @font-face to my css file, but it still falls back to the default font. I have tried with both TTF fonts and OTF fonts. 

I'm hoping someone can shed some light on what I'm doing wrong.

I'm not using inline CSS. I'm using classes.

Thanks in advanced for help.

Stephen

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 Mar 2022, 06:41 AM

Hello, Stephen,

I can suggest checking the following forum where we have attached a sample project that changes the fonts:

https://www.telerik.com/forums/pdfexport-german-character

If the issue still occurs, please share a runnable example with the issue and I will be happy to take a look at it.

As a side note, on TTF fonts are supported:

https://www.telerik.com/kendo-react-ui/components/drawing/pdf-output/embedded-fonts/#toc-font-support

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
PDF Processing
Asked by
Stephen
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or