Re: distance in pixels between 2 GtkTextIters

On 9/7/07, Nick Gravgaard <me nickgravgaard com> wrote:
> Hi,
> I'm trying to figure out how to get the distance in pixels between 2
> GtkTextIters. At the moment I'm using gtk_text_iter_get_slice() to get
> a char pointer, and then using gtk_widget_create_pango_layout() and
> getting the width from that using pango_layout_get_pixel_size(). The
> problem with this approach is that it doesn't take into account any
> bold and/or italic text that might occur between the 2 GtkTextIters.
> What's the solution to this problem?


- Owen

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