summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-05-31 21:28:25 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-05-31 21:28:25 +0000
commit41b9a6435cbb1eadacd29701226700dc66eb2115 (patch)
treea4d6438979e98e8d7947154aca986d4e67dcaa39 /pango/pango-layout.c
parent4487e7d59164952f03af104d63d631a5dd12661b (diff)
downloadpango-41b9a6435cbb1eadacd29701226700dc66eb2115.tar.gz
Improve docs.
2007-05-31 Behdad Esfahbod <behdad@gnome.org> * pango/pango-layout.c: Improve docs. svn path=/trunk/; revision=2325
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index df2b7698..606d27c6 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -2513,6 +2513,11 @@ pango_layout_get_extents (PangoLayout *layout,
* Computes the logical and ink extents of @layout in device units.
* This function just calls pango_layout_get_extents() followed by
* pango_extents_to_pixels().
+ *
+ * See pango_extents_to_pixels() for details of how ink and logical rectangles
+ * are rounded to pixels. In certain situations you may want to use
+ * pango_layout_get_extents() directly and pass the resulting logical
+ * rectangle to pango_extents_to_pixels() as an ink rectangle().
**/
void
pango_layout_get_pixel_extents (PangoLayout *layout,