// <protected>
protected Map<ByteArray,Integer> getNativeEncoding(
)
{
PdfDictionary descriptor = getDescriptor();
if(descriptor.containsKey(PdfName.FontFile)) // Embedded noncompact Type 1 font.
{
PdfStream fontFileStream = (PdfStream)descriptor.resolve(PdfName.FontFile);
PfbParser parser = new PfbParser(fontFileStream.getBody());
return parser.parse();
}
else if(descriptor.containsKey(PdfName.FontFile3)) // Embedded compact Type 1 font.
{
PdfStream fontFileStream = (PdfStream)descriptor.resolve(PdfName.FontFile3);
PdfName fontFileSubtype = (PdfName)fontFileStream.getHeader().get(PdfName.Subtype);
if(fontFileSubtype.equals(PdfName.Type1C)) // CFF.
{throw new NotImplementedException("Embedded CFF font file.");}
else if(fontFileSubtype.equals(PdfName.OpenType)) // OpenFont/CFF.
{throw new NotImplementedException("Embedded OpenFont/CFF font file.");}