Font usage

Font usage

Forum member · Apr 27, 2006
How can I use fonts like Arial, Verdana, Tahoma..? I don't see this as an option to select in ceTe.DynamicPDF.Font. Or can use new System.Drawing.Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular); ?

Re: Font usage

Support · Apr 27, 2006
Hello, You can use any TrueType or Type1 font using our product. Here is an excerpt from our help manual that shows how to add TrueType and Type1 fonts: Adding TrueType Fonts - [Visual Basic] // Create a TrueType font class. Dim MyTrueTypeFont As TrueTypeFont = New TrueTypeFont( "verdana.ttf" ) ' Use the TrueType font in a text area Page Element. MyPage1.Elements.Add( New TextArea( "Text", 0, 0, 200, 12, MyTrueTypeFont, 12 ) ) [C#] // Create a TrueType font class. TrueTypeFont trueTypeFont = new TrueTypeFont( "verdana.ttf" ); // Use the TrueType font in a text area Page Element. page1.Elements.Add( new TextArea( "Text", 0, 0, 200, 12, trueTypeFont, 12 ) ); Adding Type 1 Fonts - [Visual Basic] ' Create a Type 1 font. Dim MyType1Font As Type1Font = New Type1Font( "C:\Eras.pfm", "C:\Eras.pfb" ) ' Use the Type 1 font in a text area Page Element. MyPage1.Elements.Add( New TextArea( "Text", 0, 0, 200, 12, MyType1Font, 12 ) ) [C#] // Create a Type 1 font. Type1Font type1Font = new Type1Font( @"C:\Eras.pfm", @"C:\Eras.pfb" ); // Use the Type 1 font in a text area Page Element. page1.Elements.Add( new TextArea( "Text", 0, 0, 200, 12, type1Font, 12 ) ); You can read more on the Fonts and Text section of the Help Documentation. You will have to use any built in Core fonts or use TrueType or Type1 font within our product. Thanks, ceTe Software Support Team

Re: Font usage

Forum member · Apr 27, 2006
Thanks so for your timely response. How can I embed these fonts into the PDF documents. For example, when I open the PDF document created in Adobe and look at the Font properties window, none of my font are embedded.

Re: Font usage

Support · Apr 27, 2006
By default, any TrueType font specified with our product will be subset embedded. There is an optional 'Embed' property that you can set to false is you wish not to embed it. Type1 fonts are always embedded in the PDF using our product and any of our built-in fonts are never embedded. In any case, using any of these three types of fonts with our product you will see the fonts show up on the Document's font properties window. I am not sure why if you open up a document created an Adobe tool you are not seeing the fonts in the property window. But any font added to a PDF created with our product will add the font to the property window. Thanks, ceTe Software Support Team

Re: Font usage

Forum member · Sep 8, 2009
Thank you very much! It has been useful for me. Piyush Varma, Global Inventures, San Ramon, CA 94583.