Re: distance in pixels between 2 GtkTextIters
- From: "Owen Taylor" <otaylor redhat com>
- To: "Nick Gravgaard" <me nickgravgaard com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: distance in pixels between 2 GtkTextIters
- Date: Fri, 7 Sep 2007 09:53:08 -0400
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?
gtk_text_view_get_iter_location()
- Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]