Bug 18034 - cairo_scaled_font_create with NULL options
Summary: cairo_scaled_font_create with NULL options
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.8.0
Hardware: All All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-12 17:16 UTC by Geoff Richards
Modified: 2008-10-13 15:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.