Posted 16 January 2019, 7:19 pm EST
Hello,
You can embed a font in the application and use it for the Font while drawing a string, after you have set the FontType property of C1PdfDocument to Embedded.
```
C1PdfDocument1.FontType = C1.C1Pdf.FontTypeEnum.Embedded
’ Add content to the page.
Dim rect As RectangleF = C1PdfDocument1.PageRectangle
rect.Inflate(-72, -72)
Dim pfCol As New System.Drawing.Text.PrivateFontCollection
pfCol.AddFontFile(“…/…/MS Gothic.ttf”)
Dim font As Font = New Font(pfCol.Families(0), 12)
C1PdfDocument1.DrawString(TextBox1.Text, font, Brushes.Black, rect)
This has been shown in the attached sample.
Regards,
Esha[zip filename="prj_PDFDocument_EmbeddedFont.zip"]https://gccontent.blob.core.windows.net/forum-uploads/file-8a239378-6247-47f1-a76e-56fa86e2644b.zip[/zip]