COSBase encodingCOS = getEncodingObject();
// The converter isn't needed if an unicode mapping is already given by the font dictionary
if ( !hasToUnicode && encodingCOS instanceof COSName )
{
EncodingConverter converter = EncodingConversionManager.getConverter(((COSName)encodingCOS).getName());
if ( converter != null )
{
if ( retval != null )
{
retval = converter.convertString(retval);
}
else
{
retval = converter.convertBytes(c, offset, length, cmap);
}
return retval;
}
}