distance in pixels between 2 GtkTextIters
- From: "Nick Gravgaard" <me nickgravgaard com>
- To: gtk-app-devel-list gnome org
- Subject: distance in pixels between 2 GtkTextIters
- Date: Thu, 6 Sep 2007 02:54:51 +0200
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?
Thanks,
Nick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]