+1999-11-26 Gerd Moellmann <gerd@gnu.org>
+
+ * xfaces.c (set_lface_from_font_name): Fix previous change.
+ (recompute_basic_faces): Change assert to abort.
+
1999-11-25 Dave Love <fx@gnu.org>
* fns.c (Fnthcdr, Fnreverse): Inline cdr.
1999-11-25 Gerd Moellmann <gerd@gnu.org>
* xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
- Callers changed. If specified font name is bogus, and mail_fail_p
+ Callers changed. If specified font name is bogus, and may_fail_p
is not set, try to use a reasonable default.
* dispnew.c (direct_output_for_insert): Set glyph row's
{
if (FRAME_FACE_CACHE (f))
{
- int realized_p;
clear_face_cache (0);
- realized_p = realize_basic_faces (f);
- xassert (realized_p);
+ if (!realize_basic_faces (f))
+ abort ();
}
}
else
{
font.name = STRDUPA (font_name);
- if (!split_font_name (f, &font, 1))
+ if (split_font_name (f, &font, 1))
+ have_font_p = 1;
+ else
{
/* The font name may be something like `6x13'. Make
sure we use the full name. */
BLOCK_INPUT;
font_info = fs_load_font (f, FRAME_X_FONT_TABLE (f),
CHARSET_ASCII, font_name, -1);
- UNBLOCK_INPUT;
-
if (font_info)
{
font.name = STRDUPA (font_info->full_name);
split_font_name (f, &font, 1);
have_font_p = 1;
}
+
+ UNBLOCK_INPUT;
}
}