[Poppler-bugs] [Bug 29380] New: cannot see text that uses fonts that were embedded after pdf generation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 3 05:21:47 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29380

           Summary: cannot see text that uses fonts that were embedded
                    after pdf generation
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: carlosgc at gnome.org


Bug forwarded from Evince: https://bugzilla.gnome.org/show_bug.cgi?id=607780

"Hi,
  I cannot see some text in pdf files were fonts were embedded after the pdf
creation.


How to replicate:

echo "50 600 moveto /Courier findfont 30 scalefont setfont (the quick brown
fox) show" | ps2pdf - test.pdf


embed fonts using Enfocus PitStop Server 9


opne with xpdf ----> ok
open with evince --> fail
  Error: could not create type1 face
  some font thing failed

open with okular --> fail
  Error: Couldn't create a font for 'Courier'



I am attaching an archive containing:

test.pdf: fonts NOT embedded

test-p.pdf: fonts embedded by PitStop Server (evince cannot see text)

test-g.pdf: fonts embedded by ghostscript (evince sees the text)


Some info:

$ evince --version
GNOME Document Viewer 2.28.1

$ gs --version
8.70"

I can confirm FT_New_Memory_Face returns an error code (3,
Invalid_File_Format). It works with xpdf that saves the font into a temp file,
so I don't think the font is invalid. Acroread doesn't fail either. Maybe we
are doing something wrong in GfxFont::readEmbFontFile() or it's a bug in
freetype. 

Test cases can be found attached to the original bug report.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list