Encoding encoding = getEncodingObject(encodingName);
return createParserWithEncodingObject(fontProgram, clearTextLength, eexecLength, encoding);
}
private static Encoding getEncodingObject(String encodingName) {
Encoding encoding = new StandardEncoding();
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)) {