Re: Pango::Layout::create ({ImageSurface Cairo Context})



On Wed, 2007-11-14 at 05:35 +0000, Dale Mellor wrote:
> I'm trying to use pango to write text into a PNG file.  I have a
> Cairo::Context on a Cairo::ImageSurface which works perfectly well with
> graphics, but when I do Pango::Layout::create from this I get a NULL
> object.
> 
> I have seen in the cairofontmap.h header file that the wrapping around
> pango_cairo_font_map_get_default is commented out, so I can't use that
> from which to create a Pango::Context.
> 
> Ideas anybody?
> Thanks in advance.

If you could provide a minimal test case to illustrate the issue, that might help people respond more easily.

-- 
Jonner



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]