aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes2000-10-21 13:30:33 +0000
committerAndrew Innes2000-10-21 13:30:33 +0000
commit0042231086aecd834b0828865e814b509f37dfcf (patch)
tree4c78c5bb084333c1942e18cc6a4a0eded546994b /src
parentc6be38602145fbc6a7813c3cb073723a8dd55968 (diff)
downloademacs-0042231086aecd834b0828865e814b509f37dfcf.tar.gz
emacs-0042231086aecd834b0828865e814b509f37dfcf.zip
(w32_load_bdf_font): Call w32_cache_char_metrics.
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 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)
64 { 64 {
65 if ((*start != ' ') && (*start != '\t')) break; 65 if ((*start != ' ') && (*start != '\t')) break;
66 } 66 }
67 linelen = p - start + 1; 67 linelen = (char *) p - start + 1;
68 *next = p + 1; 68 *next = p + 1;
69 if (strncmp(start, key, min(strlen(key), linelen)) == 0) 69 if (strncmp(start, key, min(strlen(key), linelen)) == 0)
70 { 70 {
@@ -717,6 +717,7 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname,
717 if (!bdf_font) return NULL; 717 if (!bdf_font) return NULL;
718 718
719 font = (XFontStruct *) xmalloc (sizeof (XFontStruct)); 719 font = (XFontStruct *) xmalloc (sizeof (XFontStruct));
720 bzero (font, sizeof (*font));
720 721
721 font->bdf = bdf_font; 722 font->bdf = bdf_font;
722 font->hfont = 0; 723 font->hfont = 0;
@@ -724,6 +725,8 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname,
724 /* NTEMACS_TODO: Recognize DBCS fonts. */ 725 /* NTEMACS_TODO: Recognize DBCS fonts. */
725 font->double_byte_p = 0; 726 font->double_byte_p = 0;
726 727
728 w32_cache_char_metrics (font);
729
727 /* Do we need to create the table? */ 730 /* Do we need to create the table? */
728 if (dpyinfo->font_table_size == 0) 731 if (dpyinfo->font_table_size == 0)
729 { 732 {