Bug 2938 - Size zero font badness
Summary: Size zero font badness
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: pdf backend (show other bugs)
Version: 0.9.3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Kristian Høgsberg
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 13:26 UTC by Owen Taylor
Modified: 2005-08-22 00:15 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Test case (589 bytes, text/plain)
2005-04-08 13:27 UTC, Owen Taylor
Details
Proposed patch - just skip size zero (and near) fonts (1.72 KB, patch)
2005-08-19 12:58 UTC, Owen Taylor
Details | Splinter Review

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.