Multiple Fonts?

Multiple Fonts?

Forum member · Sep 13, 2006
Hi, is it possible to use fonts other than times new roman, courier and helvetica? I would like to be able to use Tahoma if possible, is there any way to do this? Thank you.

Re: Multiple Fonts?

Support · Sep 13, 2006
Hello, In order to use the fonts other than the built in fonts, you have to use TrueType or Type1 fonts in the PDF document. You can add these fonts by using the AddFont and AddType1Font methods of the document object respectively and you can use the fonts without any problem. The following sample code blocks will show how to use truetype or Type1 fonts: TrueType fonts: Dim MyTrueTypeFont MyTrueTypeFont = MyDocument.AddFont( "C:\Windows\Fonts\verdana.ttf" ) ' Use the TrueType font in a text area Page Element. MyPage.AddTextArea "Text", 0, 0, 200, 12, , MyTrueTypeFont, 12 Type1 fonts: Dim MyType1Font MyType1Font = MyDocument.AddType1Font( "C:\SY______.PFM", "C:\SY______.PFB") ' Use the Type 1 font in a text area Page Element. MyPage.AddTextArea "Text", 0, 0, 200, 12, , MyType1Font, 12 Thanks, ceTe Software Support Team