summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-01-22 02:08:36 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-01-22 02:08:36 +0000
commit792cb2621ea727020f361675f7637ce1207734c9 (patch)
treedd9fcd088ee4b6451939b385eae1899268cba0ca /ChangeLog
parent8eb3f4c814f512aaae70b080ec7d9acff1495f5b (diff)
downloadpango-792cb2621ea727020f361675f7637ce1207734c9.tar.gz
Bug 508002 – change pango_layout_pixel_extents() to round logical rect
2008-01-21 Behdad Esfahbod <behdad@gnome.org> Bug 508002 – change pango_layout_pixel_extents() to round logical rect to be inclusive * pango/pango-layout.c (pango_layout_get_pixel_extents), (pango_layout_line_get_pixel_extents): Round extents to pixels inclusively. That is, pass both ink_rect and logical_rect as first argument to pango_extents_to_pixels(). * pango/pango-matrix.c (pango_matrix_transform_pixel_rectangle): Fix rounding. * pango/pango-types.h: * docs/tmpl/glyphs.sgml: * pango/pango-utils.c (pango_extents_to_pixels): Rename pango_extents_to_pixels() function arguments from @ink_rect and @logical_rect to @inclusive and @nearest. Given that this API is a fairly new addition and not commonly used, language bindings are encouraged to update their argument names accordingly. Moreover, they are encouraged to wrap this function as two different calls: extents_to_pixels_inclusive() and extents_to_pixels_nearest(), or similar conventions that best reflect their native language. svn path=/trunk/; revision=2548
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog24
1 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bdd3e2e0..45008911 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
+2008-01-21 Behdad Esfahbod <behdad@gnome.org>
+
+ Bug 508002 – change pango_layout_pixel_extents() to round logical rect
+ to be inclusive
+
+ * pango/pango-layout.c (pango_layout_get_pixel_extents),
+ (pango_layout_line_get_pixel_extents): Round extents to pixels
+ inclusively. That is, pass both ink_rect and logical_rect as first
+ argument to pango_extents_to_pixels().
+
+ * pango/pango-matrix.c (pango_matrix_transform_pixel_rectangle):
+ Fix rounding.
+
+ * pango/pango-types.h:
+ * docs/tmpl/glyphs.sgml:
+ * pango/pango-utils.c (pango_extents_to_pixels):
+ Rename pango_extents_to_pixels() function arguments from @ink_rect and
+ @logical_rect to @inclusive and @nearest. Given that this API is a
+ fairly new addition and not commonly used, language bindings are
+ encouraged to update their argument names accordingly. Moreover, they
+ are encouraged to wrap this function as two different calls:
+ extents_to_pixels_inclusive() and extents_to_pixels_nearest(), or
+ similar conventions that best reflect their native language.
+
2008-01-16 Behdad Esfahbod <behdad@gnome.org>
* pango/opentype/Makefile.am: Remove COPYING.GPL and COPYING.FTL that