Re: GtkPrint PangoLayout extents



On Thu, 2006-08-17 at 09:27 -0400, Francisco Moraes wrote:
> Hi,
> 
> I am trying to use the new GtkPrint from GTK 2.10. I am creating a pango
> layout from the cairo reference, setting the font and text and calling
> pango_layout_get_pixel_extents. This seems to work well, except that the
> 
> returned width seems to be about twice of what it is printed either on
> preview or in the output page in the printer.
> 
> Is this correct or is there a better way to figure out the text extents when
> using Pango?

try using the ink extents variant.





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