Hi,
I want to use GraphikBold font while writing to a pdf but its not working; please suggest a way to do this. I have attached the font for your reference.
PdfRGBColor rgb = new PdfRGBColor(184, 28, 42);
PdfSolidBrush solid = new PdfSolidBrush(rgb);
PdfTrueTypeFont trueTypeFontName = new PdfTrueTypeFont(new Font("GraphikBold", 10f, FontStyle.Bold), false);
document.Pages[0].Canvas.DrawString(name, trueTypeFontName, solid, 123, 68);
PdfRGBColor rgb = new PdfRGBColor(184, 28, 42);
PdfSolidBrush solid = new PdfSolidBrush(rgb);
String fontFileName = @"GraphikBold.otf";//This is your font file path
PdfTrueTypeFont trueTypeFontName = new PdfTrueTypeFont(fontFileName, 10f, PdfFontStyle.Bold);
pdf.Pages[0].Canvas.DrawString("What a nice day!", trueTypeFontName, solid, 123, 68);