Bug 8987 - text_extents error with empty string
Summary: text_extents error with empty string
Status: RESOLVED INVALID
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Windows (All)
: high normal
Assignee: Steve Chaplin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-11 09:12 UTC by Dave Smith
Modified: 2007-01-29 19:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.