Re: question about pango_cairo_update_layout



Wilfried Holzke wrote:
> Hi,
> 
> currently I create:
> 
> cairoSurface = cairo_image_surface_create_for_data(...)
> cr = cairo_create(cairoSurface);
> PangoLayout = pango_cairo_create_layout(cr);
> 
> 
> Sometimes I have to resize the cairoSurface, so I need to create a new
> cr (e.g. crB).
> 
> my question: do i need to create a new PangoLayout, or is it possible to
> call
> 
> pango_cairo_update_layout(cr)
> 
> with new cr?

Calling pango_cairo_update_layout() is enough.

> regards
> 
>  Wilfried



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