From: Axel S. <Axe...@en...> - 2009-01-31 11:26:41
|
On Jan 30, 2009, at 14:20, Peter Verswyvelen wrote: > I'm trying to change the FontOptions in a PangoContext using > > Graphics.UI.Gtk.Cairo.cairoContextSetFontOptions:: PangoContext -> > FontOptions -> IO () > > However, all the FontOptions stuff is inside the Render monad. > I've generalised all functions in Cairo to use MonadIO m => ... -> m () if possible, so that they can be used in the IO as well as in the Render monad. This should not break any code. I also added a function setFontOptions. I hope it does what its name promises. This patch should make it into the release since it's unlikely to cause any build failures. Cheers, Axel. |