You miss the point of the original question.
The problem I am experiencing has nothing to do with fonts.
The line setting the font can be removed without problem.
Well, if you look in QPdfBaseEnginePrivate::drawTextItem, you will see that a substituted font can have an unpleasant effect.
I've seen the two pdf's and I am not sure if this is a
font problem. The only way to see what's wrong is to take Acrobat Professional and PdfCan opener and examine/compare the page streams and resource dictionaries.
I would do that, but I'm on vacation( meaning I don't have Acrobat Pro at home).
It looks more like when an unhandled exception occurs in code.
Regards
Bookmarks