Caching DisplayFontParams by name is wrong because two fonts can have the same name but have different font parameters and thus refer to different fonts. This causes the wrong font to be chosen if a different font happens to have the same name.
Created attachment 6832 [details] [review] Rough patch that should fix the problem
Created attachment 6833 [details] [review] Just the changes that I meant
On a unrelated note, poppler should/could use Flags from the font descriptor when doing font substitution.
A pdf showing the problems is at: http://gitweb.freedesktop.org/?p=poppler/test;a=blob;h=3e3a4970cfd4e7e5251a3546de97010685c59b9f;hb=79535867d1195e32d0dc0149b5a55357b07ee906;f=tests/fonts.pdf
Created attachment 9959 [details] A replacement patch that achieves the same thing This approach is probably better than the last.
Fixed in cvs
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.