Bug 485536 – underline_position can be zero
authorBehdad Esfahbod <behdad@gnome.org>
Fri, 30 Nov 2007 04:29:58 +0000 (04:29 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Fri, 30 Nov 2007 04:29:58 +0000 (04:29 +0000)
2007-11-29  Behdad Esfahbod  <behdad@gnome.org>

        Bug 485536 – underline_position can be zero

        * pango/pango-utils.c (pango_cairo_quantize_line_geometry):
        Document that returned position may be zero.

        * pango/pangocairo-win32font.c
        (pango_cairo_win32_font_create_metrics_for_context):
        * pango/pangofc-font.c (get_face_metrics):
        Handle case of underline_position==0 after rounding.

src/harfbuzz-impl.c

index 79b837d..4ba70ed 100644 (file)
@@ -65,5 +65,7 @@ _hb_free( HB_Pointer  block )
 HB_INTERNAL HB_Error
 _hb_err (HB_Error code)
 {
+  static int numerr = 0;
+  numerr++;
   return code;
 }