Encoder Class | ceTe.DynamicPDF.Text Namespace | Fonts And Text | Programming with Generator for .NET

Language

Visual Basic

C#

Show All

When using a non-symbolic (Symbol and ZapfDingbats being the exception) Core Font, Latin 1 encoding is used by default. Alternate encodings can be specified when needed to allow access to characters that are specific to those encodings. These encodings are accessed through static properties on the Encoder class:

A specific encoding can be specified and used as follows:

[Visual Basic]
' Create a core font with a specifid encoding.
Dim MyCentralEuropeHelveticaFont As Font = New Helvetica( Encoder.CentralEurope )
' Use the font in a text area Page Element.
MyPage1.Elements.Add( New TextArea( "Text", 0, 0, 200, 12, MyCentralEuropeHelveticaFont, 12 ) )
[C#]
// Create a core font with a specifid encoding.
Font centralEuropeHelveticaFont = new Helvetica( Encoder.CentralEurope );
// Use the font in a text area Page Element.
page1.Elements.Add( new TextArea( "Text", 0, 0, 200, 12, centralEuropeHelveticaFont, 12 ) );

See Also 

Encoder Class | ceTe.DynamicPDF.Text Namespace | Fonts And Text | Programming with Generator for .NET