Type Default Value Read Only Description
Long   0 No The current Font ID.




This property holds the current Font ID and determines the style of text that is added to the document using methods like AddText.

To get a Font ID, you need to add your font to the current document using the AddFont method.




The following example adds two blocks of styled text to a document. The first block is in Helvetica, and the second in Courier.

Set theDoc = Server.CreateObject("ABCpdf13.Doc")
theDoc.FontSize = 96 ' big text
theDoc.Font = theDoc.AddFont("Helvetica")
theDoc.AddText "Helvetica Text."
theDoc.Font = theDoc.AddFont("Courier")
theDoc.AddText "Courier Text."
theDoc.Save "c:\mypdfs\docfont.pdf"