Maths fonts in PDF

Does anybody have any ideas on how to generate LATEX type documents i.e. inserting maths fonts, using EssentialPDF?

1 Reply

MW Melba Winshia Syncfusion Team September 17, 2007 11:23 AM UTC

Hi David,

Thank you for your interest in Essential PDF.

If your intention is to insert maths fonts using EssentialPDF, it can be achieved by using PdfTrueTypeFont class.

[C#]

//Some text that will be converted to symbol fonts
string text = "PUnicode text\nÞí³êîäòåêñò";

//Create symbol fonts and draw the text.
Font f = new Font("Symbol", 16, FontStyle.Italic | FontStyle.Bold);
PdfTrueTypeFont font = new PdfTrueTypeFont(f, 12,true);

page.Graphics.DrawString(text, font, brush, 100, 0, format);

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/PDF.Windows/37360/main.htm

And also, please refer our documentation to get more details regarding this issue:

http://websamples.syncfusion.com/docs/pdf/ug/Fonts.html

If I have misunderstood your requirement, could you please explain me in detail, so that I can work in depth and try to send a better solution?

Thanks,
Melba

Loader.
Up arrow icon