diff options
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/w32font.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f9a137c290e..c67bd19a295 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-05-26 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32font.c (w32font_text_extents): Zero whole metrics struct first. | ||
| 4 | |||
| 1 | 2008-05-25 Kenichi Handa <handa@m17n.org> | 5 | 2008-05-25 Kenichi Handa <handa@m17n.org> |
| 2 | 6 | ||
| 3 | * w32term.c (x_draw_glyph_string): Fix calculation of underline | 7 | * w32term.c (x_draw_glyph_string): Fix calculation of underline |
diff --git a/src/w32font.c b/src/w32font.c index 273d98a40e3..22d8c26d069 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -358,10 +358,9 @@ w32font_text_extents (font, code, nglyphs, metrics) | |||
| 358 | { | 358 | { |
| 359 | struct w32font_info *w32_font = (struct w32font_info *) font; | 359 | struct w32font_info *w32_font = (struct w32font_info *) font; |
| 360 | 360 | ||
| 361 | metrics->width = 0; | 361 | bzero (metrics, sizeof (struct font_metrics)); |
| 362 | metrics->ascent = font->ascent; | 362 | metrics->ascent = font->ascent; |
| 363 | metrics->descent = font->descent; | 363 | metrics->descent = font->descent; |
| 364 | metrics->lbearing = 0; | ||
| 365 | 364 | ||
| 366 | for (i = 0; i < nglyphs; i++) | 365 | for (i = 0; i < nglyphs; i++) |
| 367 | { | 366 | { |