Generator > Programming > Fonts And Text > Text Encodings

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:

[Java]
    // Create a core font with a specifid encoding.
    Font centralEuropeHelveticaFont = new Helvetica(Encoder.getCentralEurope());
    // Use the font in a text area Page Element.
    page.getElements().add(new TextArea("Text", 0, 0, 200, 12, centralEuropeHelveticaFont, 12));
    

See Also

Encoder Class | Fonts And Text | | com.cete.dynamicpdf.text Package