From: Jason Rumney Date: Mon, 6 May 2002 14:21:16 +0000 (+0000) Subject: (w32_load_bdf_font): Set fonts_changed_p. X-Git-Tag: emacs-pretest-21.2.91~285 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=08ff677c8ce16dea4228f9a3b6a35ec1031e1a58;p=emacs.git (w32_load_bdf_font): Set fonts_changed_p. --- diff --git a/src/w32bdf.c b/src/w32bdf.c index aa79cb5c379..e67c3a0c23b 100644 --- a/src/w32bdf.c +++ b/src/w32bdf.c @@ -789,12 +789,19 @@ struct font_info *w32_load_bdf_font (struct frame *f, char *fontname, fontp->relative_compose = bdf_font->relative_compose; fontp->default_ascent = bdf_font->default_ascent; + /* Set global flag fonts_changed_p to non-zero if the font loaded + has a character with a smaller width than any other character + before, or if the font loaded has a smaller height than any + other font loaded before. If this happens, it will make a + glyph matrix reallocation necessary. */ + fonts_changed_p |= x_compute_min_glyph_bounds (f); + UNBLOCK_INPUT; dpyinfo->n_fonts++; return fontp; } -/* Check a file for an XFLD string describing it. */ +/* Check a file for an XLFD string describing it. */ int w32_BDF_to_x_font (char *file, char* xstr, int len) { HANDLE hfile, hfilemap;