LoadFont

Load the specify font into the Font Dictionary.

All fonts to be used in the document must be loaded after CreatePDFFile is called and before the first page is added to the document.

LoadFont(FontDictionaryName As String, FontName As pdf.FontName, FontStyle As pdf.FontStyle)

Values passed to this procedure:

FontDictionaryNameThis is the name used to reference the font in the program. It can be anything but can not contain a space.
FontNameIdentifies the pdf.FontName to load.
FontStyleIdentifies the pdf.FontStyle to use. There are four valid styles (Bold, BoldItalic, Italic and Regular). The default is "Regular".

Example

LoadFont("ArialBold", pdf.FontName.Arial, pdf.FontStyle.Bold)

LoadFont("PalatinoLinotypeBoldItalic", pdf.FontName.PalatinoLinotype, pdf.FontStyle.BoldItalic)