[cairo] Unable to view Pango Cairo Layout
rabia.sirhindi at nu.edu.pk
Sun Jun 28 22:07:55 PDT 2009
Thanks for clarifying. Actually, I have to use Pango independently of a
higher level library like GTK. Does pango-with-cairo support opentype fonts?
On Fri, Jun 26, 2009 at 5:12 PM, M Joonas Pihlaja
<jpihlaja at cc.helsinki.fi>wrote:
> On Fri, 26 Jun 2009, Rabia Sirhindi wrote:
> > I am working on pango and using cairo as a rendering backend. I wrote a
> > small program using some pango-cairo layout functions. The problem is
> > even when I am able to compile the program successfully on an FC5
> > it does not show anything on screen. below is the code.
> [snip code]
> > cairo_surface_t *surface =
> This line creates an image surface without any width or height. An
> image surface represents an array of pixels in memory only and it is
> never displayed by cairo onto a screen or window. You probably want a
> platform specific surface such as an xlib surface or something
> similar. For example, GDK has a gdk_cairo_create() function to create
> a cairo context for a window. Alternately, you could use
> cairo_surface_write_to_png() at the end of your code and use an image
> viewer to display the rendered results.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo