[cairo] patch for show_glyphs for strings consisting of all spaces

Vladimir Vukicevic vladimirv at gmail.com
Fri Aug 12 20:31:44 PDT 2005


If a string consisting of all spaces (or other blank characters with
either width or height 0), the call to
cairo_clip_intersect_to_rectangle() in _cairo_gstate_show_glyphs blows
up because, I believe, pixman returns an error due to the 0 width or
height region.  The attached patch just does an early exit from
show_glyphs if the extents are 0-width or 0-height.

     - Vlad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-show-space-glyphs.c
Type: application/octet-stream
Size: 0 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050812/e954a3da/cairo-show-space-glyphs.obj


More information about the cairo mailing list