Mercurial > emacs
diff src/w32bdf.c @ 59331:35ab85a2d8f2
(w32_load_bdf_font): Set fontp->average_width and
fontp->space_width to FONT_WIDTH so they are valid.
| author | Jason Rumney <jasonr@gnu.org> |
|---|---|
| date | Mon, 03 Jan 2005 22:52:01 +0000 |
| parents | 8787289602d1 |
| children | 7378cb12a687 cb67264d6096 |
line wrap: on
line diff
--- a/src/w32bdf.c Mon Jan 03 22:05:12 2005 +0000 +++ b/src/w32bdf.c Mon Jan 03 22:52:01 2005 +0000 @@ -774,7 +774,10 @@ fontp->name = (char *) xmalloc (strlen (fontname) + 1); bcopy (fontname, fontp->name, strlen (fontname) + 1); fontp->full_name = fontp->name; - fontp->size = FONT_WIDTH (font); + /* FIXME: look at BDF spec to see if there are better ways of finding + average_width and space_width, hopefully that don't involve working out + the values for ourselves from the data. */ + fontp->size = fontp->average_width = fontp->space_width = FONT_WIDTH (font); fontp->height = FONT_HEIGHT (font); /* The slot `encoding' specifies how to map a character
