On Sun, 2007-10-28 at 15:07 +0100, Peter Verswyvelen wrote:
> I have a strange problem, which is so elementary that I think I must
> be missing something...
> In GTK2HS, when I draw text using using textPath, the text is located
> at different locations depending on which backend is used. I'm not
> talking about a difference of a couple of pixels , but in my case it's
> half a page off. The PNG and Win32 backend work fine, but the PDF/PS
> backends get it wrong.
> For example, I modified the Text.hs demo in the demos/Cairo
> subdirectory so it also outputs PDF. Here the text is also at
> different locations, so I guess it's not just my code. Code is pasted
> I'm using Windows, and GTK2HS version 0.9.12 from
> Maybe someone could give this a quick test on Linux?
> I guess this is most likely a Cairo problem, and has nothing to do
> with the Haskell wrapper? Still this is hard to believe, since these
> kinds of bugs would be quickly found.
Yes, I get the same. It works fine on Linux and the text has the wrong
position on Windows. I'm doing a new Gtk2Hs build soon for compatibility
with ghc-6.8 and I can try with a more recent version of cairo then and
see if the bug has been fixed.
From: Felipe Lessa <felipe.lessa@gm...> - 2007-10-28 17:31:47
On 10/28/07, Duncan Coutts <duncan.coutts@...> wrote:
> Yes, I get the same. It works fine on Linux and the text has the wrong
> position on Windows. I'm doing a new Gtk2Hs build soon for compatibility
> with ghc-6.8 and I can try with a more recent version of cairo then and
> see if the bug has been fixed.
I don't know if this is the same bug, bug I've ran into a similar one
as well. It should be fixed on a new version (
), but mine is a bit older than that so I can't confirm.