Creating a TrueTypefont object

Creating a TrueTypefont object

Forum member · May 24, 2007
Hi, How do you create a TrueTypeFont object? I tried: Dim MyFont as TrueTypeFont= new TrueTypeFont("verdana.ttf") but it's not working (it doesn't accept the TrueTypeFont() function, the editor puts an underline). I appreciate any help. I am using VS-2005. Bert.

Re: Creating a TrueTypefont object

Support · May 24, 2007
Hello Bert, You are likely getting this error because you are not adding ceTe.DynamicPDF.Text namespace. You have to add ceTe.DynamicPDF.Text namespace in order to use the TrueTypeFont class. Imports ceTe.DynamicPDF.Text Thanks, ceTe Software Support Team