Bug 354941

Summary: cairo ps and pdf output broken - _cairo_ps_surface_emit_truetype_font_subsets problem???
Product: [Fedora] Fedora Reporter: John Ellson <john.ellson>
Component: cairoAssignee: Behdad Esfahbod <behdad>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cairo-1.4.14-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-21 20:19:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
bad postscript output generated on fc8
none
good postscript output generated on fc7
none
test graph none

Description John Ellson 2007-10-26 21:43:10 UTC
Description of problem:
Using identical graphviz sources from cvs, building on fc7 and todays rawhide. 
fc7s version works, fc8's not.   Problem can be reproduced with versions of
graphviz in distros, but the problem still exists if the graphviz version is the
same, so the problem is more likely to be in cairo.

Version-Release number of selected component (if applicable):
cairo-1.4.10-2.fc8.x86_64             <<< bad???
graphviz-2.14.1-3.fc8.x86_64

cairo-1.4.10-1.fc7.x86_64
graphviz-2.12-8.fc7.x86_64

How reproducible:
200%.    Problem was reported to the graphviz developers by another user

Steps to Reproduce:
1. On fc8:   dot -Tps:cairo appl.dot >appl.fc8.ps
2. On fc7:   dot -Tps:cairo appl.dot >appl.fc7.ps
3.
  
Actual results:
appl.fc7.ps is ok, appl.fc8.ps is bad.

Diffing the ps output shows significant changes, starting with:
    @@ -20,359 +20,758 @@
    /xyS{xyshow}bind def
    %%EndProlog
    % _cairo_ps_surface_emit_font_subsets
   -% _cairo_ps_surface_emit_truetype_font_subset
   -11 dict begin
   -/FontType 42 def
   -/FontName /CairoFont-0-0 def
   -/PaintType 0 def
   -/FontMatrix [ 1 0 0 1 0 0 ] def
    ...

Expected results:
viewable postscript


Additional info:

Comment 1 John Ellson 2007-10-26 21:43:10 UTC
Created attachment 239621 [details]
bad postscript output generated on fc8

Comment 2 John Ellson 2007-10-26 21:44:14 UTC
Created attachment 239631 [details]
good postscript output generated on fc7

Comment 3 John Ellson 2007-10-26 21:45:40 UTC
Created attachment 239641 [details]
test graph

Comment 4 John Ellson 2007-10-26 21:49:39 UTC
Problem can be fixed on fc8 by downgrading to cairo-1.4.10-1.fc7.x86_64.rpm
from fc7 updates.

Comment 5 John Ellson 2008-02-21 20:19:20 UTC
Not sure when this was fixed, but I can't reproduce this bug now using:
  graphviz-2.14.1-3.fc8
  cairo-1.4.14-1.fc8.