Openoffice can draw no text on git cairo. Bisection shows the first bad commit is, ben@mercury /opt/exp/cairo $ git bisect bad a30209402c7160af257e1ea027e9e2cdab5b5aec is first bad commit commit a30209402c7160af257e1ea027e9e2cdab5b5aec Author: Behdad Esfahbod <behdad@behdad.org> Date: Sat May 24 14:57:56 2008 -0400 [cairo-gstate] Drop glyphs out of surface boundaries in show_glyphs()
Created attachment 16880 [details] Screenshot of openoffice with no text
I see this myself but didn't get to debug. Will look into it tonight.
Ughh... It's openoffice.org lying about the size of drawable. Always passes 1x1: + cairo_surface_t *surface = rCairo.xlib_surface_create_with_xrender_format (pDisplay, + hDrawable_, DefaultScreenOfDisplay(pDisplay), pVisualFormat, 1, 1); In this function: http://www.google.com/codesearch?hl=en&q=+X11SalGraphics::DrawCairoAAFontString+show:_B6qrHMJ8tY:DJOsiSbA1JE:_B6qrHMJ8tY&sa=N&cd=1&ct=rc&cs_p=svn://svn.gnome.org/svn/ooo-build/trunk&cs_f=patches/src680/ooo85470.workspace.cairotext01.diff#l329 ughh.. Going to special-case it or something :(.
From what I can see debugging, the clip region it sets is bogus too. I'm getting 1x1 surface extents, and 0x0 intersection of surface and clip extents.
Are you going to open an openoffice bug? This seems like a pretty serious abuse of the API.
(In reply to comment #5) > Are you going to open an openoffice bug? This seems like a pretty serious abuse > of the API. This seems to be coming from the ooo-build tree, not "upstream". I already wrote to our ooo hacker at Red Hat. I'm sure he'll take some care of it. Will update here. Which distro are you using? I'm hoping that this is new enough to be easy to get fixed and propagated in time.
I'm on Gentoo with a few packages from git/svn/[insert vcs here].
What is the status of this? (In reply to comment #7) > I'm on Gentoo with a few packages from git/svn/[insert vcs here]. >
I think Fedora 9 has got a fixed OO.o package. It's really hard to work around it in cairo. Bug your OO.o maintainer to check the Fedora OO.o package out. The code in question is OO.o 3 code that distros have backported to 2.
Time has passed and with new OO.o packages available and no further reports of distress, I feel safe in finally closing this bug report...
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.