+2008-07-10 Kenichi Handa <handa@m17n.org>
+
+ * xfont.c (xfont_open): Log the reason of failure.
+
2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
* fontset.c (fontset_get_font_group):
font. */
registry = AREF (entity, FONT_REGISTRY_INDEX);
if (font_registry_charsets (registry, &encoding, &repertory) < 0)
- return Qnil;
+ {
+ font_add_log (" x:unknown registry", registry, Qnil);
+ return Qnil;
+ }
if (XINT (AREF (entity, FONT_SIZE_INDEX)) != 0)
pixel_size = XINT (AREF (entity, FONT_SIZE_INDEX));
}
len = font_unparse_xlfd (entity, pixel_size, name, 256);
if (len <= 0)
- return Qnil;
+ {
+ font_add_log (" x:unparse failed", entity, Qnil);
+ return Qnil;
+ }
BLOCK_INPUT;
x_catch_errors (display);
UNBLOCK_INPUT;
if (! xfont)
- return Qnil;
+ {
+ font_add_log (" x:open failed", build_string (name), Qnil);
+ return Qnil;
+ }
font_object = font_make_object (VECSIZE (struct xfont_info),
entity, pixel_size);