I am using Google font "Open Sans,sans-serif" in CSS for my web page.I am using evo pdf to generate PDF. In this dynamically creating header and footer using TextElement.
My problem is in c# fontfamily there is no such Google font.How can I get "Open Sans,sans-serif" in c# fontfamily?
TextElement footerText = new TextElement(0, 15, "Page &p; of &P; ",
new System.Drawing.Font(this.OpenSans,12, FontStyle.Regular, GraphicsUnit.Pixel));
footerText.TextAlign = HorizontalTextAlign.Right;
footerText.ForeColor = Color.Black;
footerText.EmbedSysFont = true;
htmlToPdfConverter.PdfFooterOptions.AddElement(footerText);