Handle encoding for truetype fonts according to PDF spec

The relevant section is 9.6.6.4