The attached PDF-file ihwk.pdf can be viewed or converted to tiffg4, Postscript etc. very well. But when generating PDF ( gs -sDEVICE=pdfwrite -o out.pdf ihwk.pdf ) the convertion will fail with the error message "Error: /invalidfont in --run--".
Created attachment 4853 [details] ihwk.pdf
The TrueType font is invalid for the purposes of embedding as far as GS is concerned. The problem is that the embedded TT font has an empty 'name' table, which we use in order to name the font. I can fudge around this and it does work, though the font is oddly named afterwards. I'll try and see if I can come up with a better solution. However, the font really is not very good. This doesn't matter for rendering of course, because we don't care what the TrueType font is called, just the CIDFont 'wrapper' font .
This is fixed in revision 9579, patch here: http://ghostscript.com/pipermail/gs-cvs/2009-March/009153.html Note that, because the embedded TrueType font has an empty name table, the resulting PDF file will contain a font with an odd, numeric, name.