Greetings from Syncfusion Support,
The reported issue might have occurred when FontFamily is defined wrongly or not supported by default font. By default, we have
provided support for very few of the fonts to exported to PDF format. So, to
export any other language or special characters (True type font) to PDF format, we need
to set True Type font information as base64 string to
FontFamily of PdfGridFont. We have provided support for
PdfTrueTypeFont in PdfExport() method. Using this we can
export the different font to pdf format from Grid.
Please apply your corresponding custom TTF as base64
string for the FontFamily. Please use the codes in your application
based on your needs,
|
PdfThemeStyle
RecordThemeStyle = new PdfThemeStyle()
{
Font = new PdfGridFont { IsTrueType = true, FontSize =
8, FontFamily = "font" },/*you fonts famiy in form
of base64string*/
FontColor = "#64FA50",
FontName = "Calibri",
FontSize = 17
};
Theme.Record = RecordThemeStyle;
|
Note : We request you to use the corresponding custom font base64 string
in your application, based on your requirement. Please follow the below steps
to get the base64 string for the custom font.
- Download TTF file
for the corresponding (custom) font (https://www.fontsaddict.com/font/category/foreign-greek )
- Then convert the TTF
file into base64 string (https://www.giftofspeed.com/base64-encoder/).
- Finally apply the base64
string to pdfTrupetypeFont.
If you are still facing the issue, kindly get back to us
with issue reproducible sample or share the details about your FontFamily to
validate the issue further at our end.