We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Add TrueType font so the Euro sign can show in PDF Exports from DataGrid


I have been trying to add a TrueType font using the following (porto is a Base64 string of a ttf file):

const params = {
pageOrientation: 'Landscape',
fileName: 'somefile.pdf',
theme: {
header: { font: new PdfTrueTypeFont(porto, 12) },
caption: { font: new PdfTrueTypeFont(porto, 10) },
record: { font: new PdfTrueTypeFont(porto, 9) }

But this doesn't work and is not very convenient. I would like to define the font I want using a woff or ttf file. How should I proceed ?

Thank you.

1 Reply

VS Vikram Sundararajan Syncfusion Team February 2, 2023 11:12 AM UTC

Hi Julien,

Greetings from Syncfusion support,

Query: Add TrueType font so the Euro sign can show in PDF Exports from DataGrid

Thank you for reaching out to us. We understand the importance of resolving your issue as quickly as possible. To help us provide an accurate solution, could you please confirm if you are using the euro sign in your data source? If not, it may have caused the invalid file to be exported. Additionally, could you please share the name of the font you are using, along with the base 64 ttf file? This information will greatly assist us in resolving your issue.

Thank you for your cooperation.


Vikram S

Live Chat Icon For mobile
Up arrow icon