Changing font size of pdfptable

itext, vb.net

Solution

You must set the font in each cell when you're creating a phrase:

Dim yourFont As BaseFont = BaseFont.CreateFont( _
  Current.Server.MapPath("~/fonts/somefont.TTF"), _
  BaseFont.WINANSI, BaseFont.EMBEDDED)
Dim mainFont As New Font(yourFont, SOME_FONT_SIZE, Font.NORMAL)

Dim cell As New PdfPCell(New Phrase("some text", mainFont))
yourTable.Add(cell)

Problem

How do I set the font for a pdfptable?

Original source