Mercurial > emacs
comparison src/xfaces.c @ 49864:a2add8cdc33a
(try_alternative_families): Try all scalable fonts if
Vscalable_fonts_allowed is not Qt.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 19 Feb 2003 06:14:55 +0000 |
parents | 6d5c33f4dd05 |
children | b4b6ede28a6f |
comparison
equal
deleted
inserted
replaced
49863:6d5c33f4dd05 | 49864:a2add8cdc33a |
---|---|
6318 if (STRINGP (XCAR (alter))) | 6318 if (STRINGP (XCAR (alter))) |
6319 nfonts = font_list (f, Qnil, XCAR (alter), registry, fonts); | 6319 nfonts = font_list (f, Qnil, XCAR (alter), registry, fonts); |
6320 } | 6320 } |
6321 } | 6321 } |
6322 | 6322 |
6323 /* Try scalable fonts before giving up. */ | 6323 /* Try all scalable fonts before giving up. */ |
6324 if (nfonts == 0 && NILP (Vscalable_fonts_allowed)) | 6324 if (nfonts == 0 && ! EQ (Vscalable_fonts_allowed, Qt)) |
6325 { | 6325 { |
6326 int count = SPECPDL_INDEX (); | 6326 int count = SPECPDL_INDEX (); |
6327 specbind (Qscalable_fonts_allowed, Qt); | 6327 specbind (Qscalable_fonts_allowed, Qt); |
6328 nfonts = try_alternative_families (f, family, registry, fonts); | 6328 nfonts = try_alternative_families (f, family, registry, fonts); |
6329 unbind_to (count, Qnil); | 6329 unbind_to (count, Qnil); |