Bug 485536 – underline_position can be zero

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.
This commit is contained in:
Behdad Esfahbod 2007-11-30 04:29:58 +00:00 committed by Behdad Esfahbod
parent e58278fedb
commit 3f05da638c
1 changed files with 2 additions and 0 deletions

View File

@ -65,5 +65,7 @@ _hb_free( HB_Pointer block )
HB_INTERNAL HB_Error HB_INTERNAL HB_Error
_hb_err (HB_Error code) _hb_err (HB_Error code)
{ {
static int numerr = 0;
numerr++;
return code; return code;
} }