Bug 11442

Summary: PS output optimizations
Product: cairo Reporter: Ken Herron <kherron+cairo>
Component: postscript backendAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: low CC: ajohnson, krh
Version: 1.5.1   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch v1

Description Ken Herron 2007-07-01 12:02:37 UTC
the PS backend defines a series of command aliases, like "M" for "moveto", to reduce the size of the generated postscript. However, it doesn't actually use these aliases.

Also, fonts are selected using a findfont/makefont/setfont operator series. Level 2 PS includes a more efficient operator called selectfont.
Comment 1 Ken Herron 2007-07-01 12:05:47 UTC
Created attachment 10541 [details] [review]
Patch v1

This patches cairo-ps-surface.c to use the aliases for moveto, lineto, curveto, and closepath. It also uses selectfont to select fonts.
Comment 2 Adrian Johnson 2007-09-16 04:04:35 UTC
Patch has been committed

http://gitweb.freedesktop.org/?p=cairo;a=commit;h=03f7a51f47717af45afbc439ce2178789449ab32

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.