[cairo-bugs] [Bug 73441] New: Cairo generates PDFs with wrong font names

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 9 08:39:29 PST 2014


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

          Priority: medium
            Bug ID: 73441
          Assignee: chris at chris-wilson.co.uk
           Summary: Cairo generates PDFs with wrong font names
        QA Contact: cairo-bugs at cairographics.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: mkasik at redhat.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: cairo

Created attachment 91766
  --> https://bugs.freedesktop.org/attachment.cgi?id=91766&action=edit
Generate PDFs with correct font names

Cairo exports font names in their original form. But these can be wrong, they
can sometimes contain white space characters or PDF/PostScript delimiter
characters. Such fonts are not common but they appear.

This can cause a problem when you are printing such file in evince. The
printing fails during processing of an intermediate PDF because there are
delimiter characters where they shouldn't be.

Attached patch escapes PostScript names of fonts (ps_name variable) right after
these are loaded. It was already case for TrueType and OpenType fonts but not
for pure CFF fonts. Type1 fonts were just shortened to the last correct
character.

Marek

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20140109/2567d5a4/attachment.html>


More information about the cairo-bugs mailing list