+2008-10-09 Kenichi Handa <handa@m17n.org>
+
+ * fontset.c (face_for_char): If face->fontset is negative, just
+ return ascii_face.
+
+ * font.c (font_delete_unmatched): Fix previous change. Don't
+ reject an entity if DPI and AVGWIDTH of an entity are 0.
+
2008-10-09 Martin Rudalics <rudalics@gmx.at>
* frame.c (Fraise_frame): On text-only terminals select frame in
int face_id;
int id;
- if (ASCII_CHAR_P (c))
+ /* If face->fontset is negative (that happens when no font is found
+ for face), just return face->ascii_face because we can't do
+ anything. Perhaps, we should fix the callers to assure
+ that face->fontset is always valid. */
+ if (ASCII_CHAR_P (c) || face->fontset < 0)
return face->ascii_face->id;
xassert (fontset_id_valid_p (face->fontset));