Created attachment 100679 [details] example pdf Originally reported at https://bugs.launchpad.net/ubuntu/+source/evince/+bug/485745 in the 7th comment, and still reproducible with evince 3.10.3-0ubuntu10 and poppler 0.24.5-2ubuntu4. The text in the attached file is badly misrendered. See the screenshot attached in the next comment.
Created attachment 100680 [details] screenshot showing text misrendering
That PDF uses the hebrew chars of the arial font, but the font is not embedded: ./utils/pdffonts -subst HW4.pdf name object ID substitute font substitute font file ------------------------------------ --------- ------------------------------------ ------------------------------------ Courier 5 0 Nimbus Mono L /usr/share/fonts/type1/gsfonts/n022003l.pfb Arial,Bold 8 0 Liberation Sans Bold /usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf Calibri,Bold 10 0 DejaVu Sans Bold /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf Arial 12 0 Liberation Sans /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf Times-Roman 13 0 Nimbus Roman No9 L /usr/share/fonts/type1/gsfonts/n021003l.pfb Times-Italic 14 0 Nimbus Roman No9 L Regular Italic /usr/share/fonts/type1/gsfonts/n021023l.pfb Symbol 15 0 Symbol /usr/share/fonts/X11/Type1/Symbol.pfb Arial,Bold 20 0 Liberation Sans Bold /usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf Therefore You need the unicode version of the arial font (and also arial bold) and configure fontconfig to use this/these font/s, or You should force the PDF generator to include the fonts! Poppler doesn't deliver any fonts!
Oh, I forgot: I even haven't installed the unicode version of these fonts, so on my system I got the same output with the fonts of comment 2. But I can render it on my windows system, where I have the MS fonts installed!
This file would be fixed by my patch in bug 93299. It provides fontconfig some hints about the character encoding so it can do better at choosing an appropriate font.
(In reply to Jason Crain from comment #4) > This file would be fixed by my patch in bug 93299. It provides fontconfig > some hints about the character encoding so it can do better at choosing an > appropriate font. May You have a look at bug 43488 and bug 41104 if Your patch of bug 93299 fixes them, too? And mark them as duplicate if so?
(In reply to Thomas Freitag from comment #5) > May You have a look at bug 43488 and bug 41104 if Your patch of bug 93299 > fixes them, too? And mark them as duplicate if so? No, my patch does not fix either of those. The files in both of those bugs directly use the glyph IDs to look up glyphs. Which is completely insane for a non-embedded font because glyph IDs are not in any way portable. To get them to work you could install the exact same Arial font. Not just a similar or compatible font like Liberation Sans, but Microsoft's own Arial font. Installing msttcorefonts should work. Might have to also add a fontconfig rule to match ArialMT to Arial.
*** This bug has been marked as a duplicate of bug 93299 ***
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.