mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 06:17:34 +00:00
(w32font_text_extents): Zero whole metrics struct first.
This commit is contained in:
parent
5a11e947cc
commit
ba93d6842e
2 changed files with 5 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2008-05-26 Jason Rumney <jasonr@gnu.org>
|
||||
|
||||
* w32font.c (w32font_text_extents): Zero whole metrics struct first.
|
||||
|
||||
2008-05-25 Kenichi Handa <handa@m17n.org>
|
||||
|
||||
* w32term.c (x_draw_glyph_string): Fix calculation of underline
|
||||
|
|
|
|||
|
|
@ -358,10 +358,9 @@ w32font_text_extents (font, code, nglyphs, metrics)
|
|||
{
|
||||
struct w32font_info *w32_font = (struct w32font_info *) font;
|
||||
|
||||
metrics->width = 0;
|
||||
bzero (metrics, sizeof (struct font_metrics));
|
||||
metrics->ascent = font->ascent;
|
||||
metrics->descent = font->descent;
|
||||
metrics->lbearing = 0;
|
||||
|
||||
for (i = 0; i < nglyphs; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue