Bug 8987

Summary: text_extents error with empty string
Product: pycairo Reporter: Dave Smith <dd>
Component: generalAssignee: Steve Chaplin <d74n5pohf9>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:

Description Dave Smith 2006-11-11 09:12:11 UTC
We found a bug when u call function text_extents with empty string.
print ctx.text_extents('')[2:4]
Same problem is with function show_text. 
This results in MemoryError on Windows system.
I was using cairo 1.2.6 and pycario 1.2.2-2
This works fine on linux systems.
Comment 1 Steve Chaplin 2006-11-12 19:18:53 UTC
Can you provide a minimal test program which works on Linux and fails on Windows.
Comment 2 Behdad Esfahbod 2007-01-29 13:14:35 UTC
This may have been a bug in cairo.  Should be fixed with latest 1.3.x snapshots.
Comment 3 Steve Chaplin 2007-01-29 19:10:42 UTC
Close bug, assuming it was a cairo bug which has been fixed.

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.