diff options
| author | Jason Rumney | 2003-10-11 22:18:29 +0000 |
|---|---|---|
| committer | Jason Rumney | 2003-10-11 22:18:29 +0000 |
| commit | f78f8eccb6693ae22bb4066a3779f893ef722970 (patch) | |
| tree | 0e4fad3d4d0b3937198668c6fe9147bbc5120dcf /src | |
| parent | 74e6e6705d27e0c77bdb355624a1bdc30e139ed3 (diff) | |
| download | emacs-f78f8eccb6693ae22bb4066a3779f893ef722970.tar.gz emacs-f78f8eccb6693ae22bb4066a3779f893ef722970.zip | |
(w32_load_bdf_font): Clear font_info before filling.
encoding becomes encoding_type.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32bdf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32bdf.c b/src/w32bdf.c index 254eeaeb71b..256310d2d35 100644 --- a/src/w32bdf.c +++ b/src/w32bdf.c | |||
| @@ -201,7 +201,7 @@ set_bdf_font_info(bdffont *fontp) | |||
| 201 | else if (search_file_line("CHARSET_ENCODING", start, len, | 201 | else if (search_file_line("CHARSET_ENCODING", start, len, |
| 202 | (char **)&p, (char **)&q) == 1) | 202 | (char **)&p, (char **)&q) == 1) |
| 203 | { | 203 | { |
| 204 | fontp->encoding = get_quoted_string(p, q); | 204 | fontp->encoding = get_quoted_string(p, q); |
| 205 | } | 205 | } |
| 206 | else if (search_file_line("SLANT", start, len, | 206 | else if (search_file_line("SLANT", start, len, |
| 207 | (char **)&p, (char **)&q) == 1) | 207 | (char **)&p, (char **)&q) == 1) |
| @@ -768,6 +768,7 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname, | |||
| 768 | 768 | ||
| 769 | /* Now fill in the slots of *FONTP. */ | 769 | /* Now fill in the slots of *FONTP. */ |
| 770 | BLOCK_INPUT; | 770 | BLOCK_INPUT; |
| 771 | bzero (fontp, sizeof (*fontp)); | ||
| 771 | fontp->font = font; | 772 | fontp->font = font; |
| 772 | fontp->font_idx = dpyinfo->n_fonts; | 773 | fontp->font_idx = dpyinfo->n_fonts; |
| 773 | fontp->name = (char *) xmalloc (strlen (fontname) + 1); | 774 | fontp->name = (char *) xmalloc (strlen (fontname) + 1); |
| @@ -785,7 +786,7 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname, | |||
| 785 | uses this font. So, we set informatoin in fontp->encoding[1] | 786 | uses this font. So, we set informatoin in fontp->encoding[1] |
| 786 | which is never used by any charset. If mapping can't be | 787 | which is never used by any charset. If mapping can't be |
| 787 | decided, set FONT_ENCODING_NOT_DECIDED. */ | 788 | decided, set FONT_ENCODING_NOT_DECIDED. */ |
| 788 | fontp->encoding[1] = FONT_ENCODING_NOT_DECIDED; | 789 | fontp->encoding_type = FONT_ENCODING_NOT_DECIDED; |
| 789 | fontp->baseline_offset = bdf_font->yoffset; | 790 | fontp->baseline_offset = bdf_font->yoffset; |
| 790 | fontp->relative_compose = bdf_font->relative_compose; | 791 | fontp->relative_compose = bdf_font->relative_compose; |
| 791 | fontp->default_ascent = bdf_font->default_ascent; | 792 | fontp->default_ascent = bdf_font->default_ascent; |