I've experienced some problems with embedding TrueType and AFM/PFB fonts. In both cases the array with the widths of the characters was incomplete concerning some special characters. The array for afm-fonts has some gaps whenever a character wasn't defined which leads to an Exception when the pdf-document was displayed with PDFReader. And finally there was a problem with german umlauts which weren't defined in the afm-file but were part of the font. Btw. if I use this fonts with postscript everything works fine. So I've added a hack (?!?) based on a code-fragment written by V0JT4 in the pdf-forum (see also https://sourceforge.net/forum/message.php?msg_id=4705274\) for the encoding of AFM-fonts.
I've attached the latest versions of the sorce code