Bug 18034

Summary: cairo_scaled_font_create with NULL options
Product: cairo Reporter: Geoff Richards <geoff>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.8.0   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Geoff Richards 2008-10-12 17:16:09 UTC
The 'cairo_scaled_font_create' function is documented as accepting NULL for it's cairo_font_options_t parameter.  The doc comments above it say:

   "... A %NULL pointer will be interpreted as meaning the default options."

but actually a NULL value will cause it to return an object in an error state, because it calls 'cairo_font_options_status' which returns a CAIRO_STATUS_NULL_POINTER error.
Comment 1 Chris Wilson 2008-10-13 15:41:20 UTC
Thankyou for the bug report. We did indeed forget to correct the documentation after the aborted attempt to modify its behaviour during 1.7 (or was it 1.5?).

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.