+2008-12-03 Kenichi Handa <handa@m17n.org>
+
+ * fontset.c (face_for_char): Handle invalid charset property
+ correctly.
+ (font_for_char): Likewise.
+
2008-12-03 Chong Yidong <cyd@stupidchicken.com>
* font.c (Fopen_font): Compute pixel size correctly.
else
{
charset = Fget_char_property (make_number (pos), Qcharset, object);
- if (NILP (charset))
- id = -1;
- else if (CHARSETP (charset))
+ if (CHARSETP (charset))
{
Lisp_Object val;
charset = XCDR (val);
id = XINT (CHARSET_SYMBOL_ID (charset));
}
+ else
+ id = -1;
}
font_deferred_log ("font for", Fcons (make_number (c), charset), Qnil);
else
{
charset = Fget_char_property (make_number (pos), Qcharset, object);
- if (NILP (charset))
- id = -1;
- else if (CHARSETP (charset))
+ if (CHARSETP (charset))
{
Lisp_Object val;
charset = XCDR (val);
id = XINT (CHARSET_SYMBOL_ID (charset));
}
+ else
+ id = -1;
}
font_deferred_log ("font for", Fcons (make_number (c), charset), Qnil);