Hello community, here is the log from the commit of package pango checked in at Tue Apr 25 18:14:25 CEST 2006. -------- --- GNOME/pango/pango.changes 2006-01-25 21:32:36.000000000 +0100 +++ STABLE/pango/pango.changes 2006-04-24 23:34:52.000000000 +0200 @@ -1,0 +2,9 @@ +Mon Apr 24 23:34:37 CEST 2006 - federico@novell.com + +- Added pango-131128-font-extents-rounding.diff to fix + https://bugzilla.novell.com/show_bug.cgi?id=131128. This makes + PangoCairoFcFont round the font extents before exposing them to + callers, which produces better results with unhinted / + un-antialiased displays. + +------------------------------------------------------------------- New: ---- pango-131128-font-extents-rounding.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pango.spec ++++++ --- /var/tmp/diff_new_pack.N7yIih/_old 2006-04-25 18:12:20.000000000 +0200 +++ /var/tmp/diff_new_pack.N7yIih/_new 2006-04-25 18:12:20.000000000 +0200 @@ -5,7 +5,7 @@ # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild @@ -18,7 +18,7 @@ Group: System/Libraries Autoreqprov: on Version: 1.10.2 -Release: 6 +Release: 18 Summary: System for Layout and Rendering of Internationalised Text Source: ftp://ftp.gnome.org/pub/GNOME/sources/pango/1.10/%{name}-%{version}.tar.bz2 Source1: SuSEconfig.pango @@ -26,6 +26,7 @@ Patch: pango64.patch Patch1: pango-ottest.patch Patch2: bugzilla-53228-artificial-bold-and-italic.patch +Patch3: pango-131128-font-extents-rounding.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: filesystem /usr/bin/touch /bin/rm /bin/rmdir Requires: cairo @@ -90,6 +91,7 @@ %endif %patch1 %patch2 -p1 +%patch3 -p1 %build %{?suse_update_config:%{suse_update_config -f}} @@ -179,6 +181,12 @@ %{prefix}/share/gtk-doc/html/pango %changelog -n pango +* Mon Apr 24 2006 - federico@novell.com +- Added pango-131128-font-extents-rounding.diff to fix + https://bugzilla.novell.com/show_bug.cgi?id=131128. This makes + PangoCairoFcFont round the font extents before exposing them to + callers, which produces better results with unhinted / + un-antialiased displays. * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Wed Jan 11 2006 - sbrabec@suse.cz ++++++ pango-131128-font-extents-rounding.diff ++++++ --- pango/pango/pangocairo-fcfont.c.orig 2006-04-24 15:48:17.000000000 -0500 +++ pango/pango/pangocairo-fcfont.c 2006-04-24 15:52:16.000000000 -0500 @@ -72,6 +72,8 @@ GType pango_cairo_fc_font_get_type (void static cairo_font_face_t *pango_cairo_fc_font_get_font_face (PangoCairoFont *font); +#define PANGO_UNITS(Double) ((int)((Double) * PANGO_SCALE + 0.49999)) + /******************************* * Utility functions * *******************************/ @@ -183,9 +185,9 @@ compute_glyph_extents (PangoFont cairo_scaled_font_extents (scaled_font, &font_extents); logical_rect->x = 0; - logical_rect->y = - font_extents.ascent * PANGO_SCALE; + logical_rect->y = -PANGO_UNITS (font_extents.ascent); logical_rect->width = 0; - logical_rect->height = (font_extents.ascent + font_extents.descent) * PANGO_SCALE; + logical_rect->height = PANGO_UNITS (font_extents.ascent + font_extents.descent); if (glyph) { @@ -196,12 +198,12 @@ compute_glyph_extents (PangoFont cairo_scaled_font_glyph_extents (scaled_font, &cairo_glyph, 1, &extents); - ink_rect->x = extents.x_bearing * PANGO_SCALE; - ink_rect->y = extents.y_bearing * PANGO_SCALE; - ink_rect->width = extents.width * PANGO_SCALE; - ink_rect->height = extents.height * PANGO_SCALE; + ink_rect->x = PANGO_UNITS (extents.x_bearing); + ink_rect->y = PANGO_UNITS (extents.y_bearing); + ink_rect->width = PANGO_UNITS (extents.width); + ink_rect->height = PANGO_UNITS (extents.height); - logical_rect->width = extents.x_advance * PANGO_SCALE; + logical_rect->width = PANGO_UNITS (extents.x_advance); } } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...