if (FONT_DICTIONARY_VALUE_ENCODING_MAC.equals(encodingName)) {
encoding = new MacRomanEncoding();
} else if (FONT_DICTIONARY_VALUE_ENCODING_MAC_EXP.equals(encodingName)) {
encoding = new MacRomanEncoding();
} else if (FONT_DICTIONARY_VALUE_ENCODING_WIN.equals(encodingName)) {
encoding = new WinAnsiEncoding();
} else if (FONT_DICTIONARY_VALUE_ENCODING_PDFDOC.equals(encodingName)) {
encoding = new PdfDocEncoding();
}
return encoding;
}