aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfont.c')
-rw-r--r--src/xfont.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/xfont.c b/src/xfont.c
index 92370d4b15d..544088bce36 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -509,7 +509,10 @@ xfont_open (f, entity, pixel_size)
509 font. */ 509 font. */
510 registry = AREF (entity, FONT_REGISTRY_INDEX); 510 registry = AREF (entity, FONT_REGISTRY_INDEX);
511 if (font_registry_charsets (registry, &encoding, &repertory) < 0) 511 if (font_registry_charsets (registry, &encoding, &repertory) < 0)
512 return Qnil; 512 {
513 font_add_log (" x:unknown registry", registry, Qnil);
514 return Qnil;
515 }
513 516
514 if (XINT (AREF (entity, FONT_SIZE_INDEX)) != 0) 517 if (XINT (AREF (entity, FONT_SIZE_INDEX)) != 0)
515 pixel_size = XINT (AREF (entity, FONT_SIZE_INDEX)); 518 pixel_size = XINT (AREF (entity, FONT_SIZE_INDEX));
@@ -522,7 +525,10 @@ xfont_open (f, entity, pixel_size)
522 } 525 }
523 len = font_unparse_xlfd (entity, pixel_size, name, 256); 526 len = font_unparse_xlfd (entity, pixel_size, name, 256);
524 if (len <= 0) 527 if (len <= 0)
525 return Qnil; 528 {
529 font_add_log (" x:unparse failed", entity, Qnil);
530 return Qnil;
531 }
526 532
527 BLOCK_INPUT; 533 BLOCK_INPUT;
528 x_catch_errors (display); 534 x_catch_errors (display);
@@ -562,7 +568,10 @@ xfont_open (f, entity, pixel_size)
562 UNBLOCK_INPUT; 568 UNBLOCK_INPUT;
563 569
564 if (! xfont) 570 if (! xfont)
565 return Qnil; 571 {
572 font_add_log (" x:open failed", build_string (name), Qnil);
573 return Qnil;
574 }
566 575
567 font_object = font_make_object (VECSIZE (struct xfont_info), 576 font_object = font_make_object (VECSIZE (struct xfont_info),
568 entity, pixel_size); 577 entity, pixel_size);