Bug 2938

Summary: Size zero font badness
Product: cairo Reporter: Owen Taylor <otaylor>
Component: pdf backendAssignee: Kristian Høgsberg <krh>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high CC: jwatt
Version: 0.9.3   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Test case
Proposed patch - just skip size zero (and near) fonts

Description Owen Taylor 2005-04-08 13:26:43 UTC
The attached program results in a PDF file with 'nan' in some of 
it's matrices and runs Xpdf out of memory. 

It also goes up to 680megs when run, which is a Cairo bug somewhere,
though possibly not in the PDF backend.
Comment 1 Owen Taylor 2005-04-08 13:27:44 UTC
Created attachment 2354 [details]
Test case
Comment 2 Owen Taylor 2005-08-19 12:58:40 UTC
Created attachment 2934 [details] [review]
Proposed patch - just skip size zero (and near) fonts
Comment 3 Owen Taylor 2005-08-19 12:59:40 UTC
I dont' get NaN in the output any more, but it still causes xpdf to go
into a memory allocation fit, so here's a patch that just omits any
fonts below 0.001 pt.
Comment 4 Owen Taylor 2005-08-19 14:04:44 UTC
2005-08-19  Owen Taylor  <otaylor@redhat.com>

        * src/cairo-pdf-surface.c (_cairo_pdf_surface_show_glyphs):
        Ignore really small fonts, since size zero fonts give xpdf
        fits. (#2938)
Comment 5 Carl Worth 2005-08-22 17:15:53 UTC
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version.

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.