$ evince blah.pdf Error: Couldn't find a font for 'Times Bold' some font thing failed Error: Couldn't find a font for 'Times Italic' some font thing failed Result: garbage displayed, crash on exit. $ fc-match --sort 'Times' timR12-ISO8859-1.pcf.gz: "Times" "Regular" timR12.pcf.gz: "Times" "Regular" n021004l.pfb: "Nimbus Roman No9 L" "Medium" times.ttf: "Times New Roman" "Regular" luxirr.ttf: "Luxi Serif" "Regular" msbm10.ttf: "msbm10" "Medium" etc. GlobalParams::getDisplayFont fails if the first font found is not TrueType (*.ttf) or Type1 (*.pfa, *.pfb). This is stupid; it should loop through the list of matches and return the first (best) TrueType/Type1 font that matches.
Probably the same as bug 4030 (yeah, I found it when I looked for a downstream bug - meaningful bug names, people). However the patch here is IMO superior.
Created attachment 4503 [details] [review] 5758.bugs.fdo-try-all-fonts.patch Oh yeah, here's the patch as suggested above. Leaving this separate from bug 4030 as there are other possible triggers for this condition (and it's generally good code cleanup).
You so totally rock, dude.
Btw, why can't OpenType fonts be used properly?
2006-01-31 Jeff Muizelaar <jeff@infidigm.net> * poppler/GlobalParams.cc (GlobalParams::getDisplayFont): Allow ttc fonts to be used. This commit rendered the patch from comment 2 useless. Can anyone please look into this?
Created attachment 4528 [details] [review] revised patch This should work.
Confirming that this patch fixes the problems. Can someone commit this? It fixes bug #4030 too.
It doesn't actually fix bug #4030 just avoids the problem. Nonetheless I'll commit this soon.
The file at [1] still causes crashes and font warnings on the console. Can you confirm? [1] http://www.rovernet.nl/nieuws/berichten/ber060118bijl3.pdf
That is probably caused by bug #4030. What are the font warnings it gives you?
evince ber060118bijl3.pdf Error: could not create truetype face some font thing failed Error: could not create truetype face some font thing failed Will attach a backtrace...
Created attachment 4533 [details] Backtrace Crash on exit...
Any progress here?
committed.
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.