[Haskell-cafe] Problem with PDF/PS backend in GTK2HS

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sun Oct 28 12:57:46 EDT 2007

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
> below.
> I'm using Windows, and GTK2HS version 0.9.12 from
> http://www.haskell.org/gtk2hs
> 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.


More information about the Haskell-Cafe mailing list