aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2005-01-03 22:52:01 +0000
committerJason Rumney2005-01-03 22:52:01 +0000
commita4d75ad7ceda7ed78eb6143b075e812a2ebb5eb1 (patch)
tree698a17bc60d8318df4e0776639a3cf10ea329204 /src
parent1b60b25ac3554a6b70f553f8d227acac9255b6e1 (diff)
downloademacs-a4d75ad7ceda7ed78eb6143b075e812a2ebb5eb1.tar.gz
emacs-a4d75ad7ceda7ed78eb6143b075e812a2ebb5eb1.zip
(w32_load_bdf_font): Set fontp->average_width and
fontp->space_width to FONT_WIDTH so they are valid.
Diffstat (limited to 'src')
-rw-r--r--src/w32bdf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/w32bdf.c b/src/w32bdf.c
index 04739b8e846..092aff306dc 100644
--- a/src/w32bdf.c
+++ b/src/w32bdf.c
@@ -774,7 +774,10 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname,
774 fontp->name = (char *) xmalloc (strlen (fontname) + 1); 774 fontp->name = (char *) xmalloc (strlen (fontname) + 1);
775 bcopy (fontname, fontp->name, strlen (fontname) + 1); 775 bcopy (fontname, fontp->name, strlen (fontname) + 1);
776 fontp->full_name = fontp->name; 776 fontp->full_name = fontp->name;
777 fontp->size = FONT_WIDTH (font); 777 /* FIXME: look at BDF spec to see if there are better ways of finding
778 average_width and space_width, hopefully that don't involve working out
779 the values for ourselves from the data. */
780 fontp->size = fontp->average_width = fontp->space_width = FONT_WIDTH (font);
778 fontp->height = FONT_HEIGHT (font); 781 fontp->height = FONT_HEIGHT (font);
779 782
780 /* The slot `encoding' specifies how to map a character 783 /* The slot `encoding' specifies how to map a character