aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-17 15:56:25 +0000
committerGerd Moellmann2001-01-17 15:56:25 +0000
commita86110a8e3be545fd163ed1d9f7fa08cffa1a616 (patch)
treea865352b2abc3d23911fbe2bbc34f67003e1ce17 /src
parentd26d6fd91601e02e2fe38d371933a22b041c8cf8 (diff)
downloademacs-a86110a8e3be545fd163ed1d9f7fa08cffa1a616.tar.gz
emacs-a86110a8e3be545fd163ed1d9f7fa08cffa1a616.zip
(x_face_list_fonts): Don't BLOCK_INPUT around the
call to x_list_fonts. Call x_list_fonts with SIZE -1 only if SCALABLE_FONTS_P is set.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xfaces.c13
2 files changed, 8 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 01f3772db32..107cba684d3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12001-01-17 Gerd Moellmann <gerd@gnu.org> 12001-01-17 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
4 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5 if SCALABLE_FONTS_P is set.
6
3 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1, 7 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
4 so that scalable fonts are included. 8 so that scalable fonts are included.
5 9
diff --git a/src/xfaces.c b/src/xfaces.c
index 2275a928ecf..51cb455e95a 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -2281,12 +2281,7 @@ sort_fonts (f, fonts, nfonts, cmpfn)
2281 2281
2282 For all fonts found, set FONTS[i].name to the name of the font, 2282 For all fonts found, set FONTS[i].name to the name of the font,
2283 allocated via xmalloc, and split font names into fields. Ignore 2283 allocated via xmalloc, and split font names into fields. Ignore
2284 fonts that we can't parse. Value is the number of fonts found. 2284 fonts that we can't parse. Value is the number of fonts found. */
2285
2286 This is similar to x_list_fonts. The differences are:
2287
2288 1. It avoids consing.
2289 2. It never calls XLoadQueryFont. */
2290 2285
2291static int 2286static int
2292x_face_list_fonts (f, pattern, fonts, nfonts, try_alternatives_p, 2287x_face_list_fonts (f, pattern, fonts, nfonts, try_alternatives_p,
@@ -2307,13 +2302,13 @@ x_face_list_fonts (f, pattern, fonts, nfonts, try_alternatives_p,
2307 lpattern = build_string (pattern); 2302 lpattern = build_string (pattern);
2308 2303
2309 /* Get the list of fonts matching PATTERN. */ 2304 /* Get the list of fonts matching PATTERN. */
2310 BLOCK_INPUT;
2311#ifdef WINDOWSNT 2305#ifdef WINDOWSNT
2306 BLOCK_INPUT;
2312 lfonts = w32_list_fonts (f, lpattern, 0, nfonts); 2307 lfonts = w32_list_fonts (f, lpattern, 0, nfonts);
2308 UNBLOCK_INPUT;
2313#else 2309#else
2314 lfonts = x_list_fonts (f, lpattern, -1, nfonts); 2310 lfonts = x_list_fonts (f, lpattern, scalable_fonts_p ? -1 : 0, nfonts);
2315#endif 2311#endif
2316 UNBLOCK_INPUT;
2317 2312
2318 /* Make a copy of the font names we got from X, and 2313 /* Make a copy of the font names we got from X, and
2319 split them into fields. */ 2314 split them into fields. */