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:
- Encoder.getCentralEurope() - Code Page 1250
- Encoder.getLatin1() - Code Page 1252 or WinANSI Encoding
- Encoder.getTurkish() - Code Page 1254
- Encoder.getBaltic() - Code Page 1257
- Encoder.getLatin2() - ISO 8859-2
- Encoder.getLatin9() - ISO 8859-15
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));