From: Andrew Innes Date: Sat, 21 Oct 2000 13:30:33 +0000 (+0000) Subject: (w32_load_bdf_font): Call w32_cache_char_metrics. X-Git-Tag: emacs-pretest-21.0.90~702 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0042231086aecd834b0828865e814b509f37dfcf;p=emacs.git (w32_load_bdf_font): Call w32_cache_char_metrics. --- diff --git a/src/w32bdf.c b/src/w32bdf.c index f9a717a26a8..8008e8b4b4e 100644 --- a/src/w32bdf.c +++ b/src/w32bdf.c @@ -64,7 +64,7 @@ search_file_line(char *key, char *start, int len, char **val, char **next) { if ((*start != ' ') && (*start != '\t')) break; } - linelen = p - start + 1; + linelen = (char *) p - start + 1; *next = p + 1; if (strncmp(start, key, min(strlen(key), linelen)) == 0) { @@ -717,6 +717,7 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname, if (!bdf_font) return NULL; font = (XFontStruct *) xmalloc (sizeof (XFontStruct)); + bzero (font, sizeof (*font)); font->bdf = bdf_font; font->hfont = 0; @@ -724,6 +725,8 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname, /* NTEMACS_TODO: Recognize DBCS fonts. */ font->double_byte_p = 0; + w32_cache_char_metrics (font); + /* Do we need to create the table? */ if (dpyinfo->font_table_size == 0) {