Bug 342525 – With PangoFc and PangoWin32, approximate digit width is not
authorBehdad Esfahbod <behdad@gnome.org>
Mon, 22 May 2006 20:25:54 +0000 (20:25 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Mon, 22 May 2006 20:25:54 +0000 (20:25 +0000)
commitd0ca71f5d17074f8ed87f3f2e5d7536ab207830d
tree9093028842c1862dc76088e1237f7df011e2edec
parentec8d35bf511a8dcdd612850917e1e9ae9b36e1d0
Bug 342525 – With PangoFc and PangoWin32, approximate digit width is not

2006-05-22  Behdad Esfahbod  <behdad@gnome.org>

        Bug 342525 – With PangoFc and PangoWin32, approximate digit width is
        not what it says

        * pango/pangocairo-win32font.c (max_glyph_width),
        (create_metrics_for_context): Use max digit width instead of average.

        Reverted the following changes:

        * pango/pangofc-font.c (pango_fc_font_create_metrics_for_context):
        Likewise for PangoFc.  Compute average instead of max.
        (max_glpyh_with): Now unused, drop.

        * pango/pangowin32.c (pango_win32_font_get_metrics): Calculate
        average digit width correctly, not as max of the digit
        widths. (#342525) Note that this code doesn't really get much used
        currently (instead the code in pangocairo-win32font.c is used),
        fixed only for completeness.
        (max_glpyh_with): Now unused, drop.
ChangeLog
pango/pangocairo-win32font.c
pango/pangofc-font.c
pango/pangowin32.c