Bug 24985 - When outputting Type 1 fonts to PS the fixed-content in the font should be used if available
Summary: When outputting Type 1 fonts to PS the fixed-content in the font should be us...
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-08 00:40 UTC by Adrian Johnson
Modified: 2009-11-15 10:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
PDF testcase (101.62 KB, image/pdf)
2009-11-08 00:40 UTC, Adrian Johnson
Details
patch (1.33 KB, patch)
2009-11-08 00:41 UTC, Adrian Johnson
Details | Splinter Review

Description Adrian Johnson 2009-11-08 00:40:43 UTC
Created attachment 31043 [details]
PDF testcase

When converting PDF to PS, if /Length3 of a Type 1 FontFile is not zero the fixed-content from the embedded font in the PDF should be used instead of outputting the generic 512 zeros and "cleartomark".

Some Type 1 fonts have some additional PostScript after the cleartomark. This should be included in the PS output.

The attached PDF file from OpenOffice contains the Nimbus Roman Type 1 font. This fixed-content portion of the font is included and /Length3 is not 0.

After converting to PS with pdftops the last few lines of the font in the PS output are:

0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
cleartomark
%%EndResource

it should be:

0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
cleartomark
{restore}if
%%EndResource
Comment 1 Adrian Johnson 2009-11-08 00:41:47 UTC
Created attachment 31044 [details] [review]
patch

Patch to fix this.
Comment 2 Albert Astals Cid 2009-11-15 10:45:59 UTC
Commited, as we spoke in IRC this is more a "doing it really right" thing that anything that really solves any rendering problem, so i've just commited it to master.


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.