From 310f54293756bd06b7cb28ebfec4448956ee10b8 Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Sun, 12 Aug 2012 12:20:51 +0200 Subject: [PATCH] libi3/font: Log the used font --- libi3/font.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libi3/font.c b/libi3/font.c index d9683e54..0688bdbc 100644 --- a/libi3/font.c +++ b/libi3/font.c @@ -39,7 +39,15 @@ static bool load_pango_font(i3Font *font, const char *desc) { /* Load the font description */ font->specific.pango_desc = pango_font_description_from_string(desc); if (!font->specific.pango_desc) + { + ELOG("Could not open font %s with Pango, fallback to X font.\n", desc); return false; + } + + LOG("Using Pango font %s, size %d", + pango_font_description_get_family(font->specific.pango_desc), + pango_font_description_get_size(font->specific.pango_desc) + ); /* We cache root_visual_type here, since you must call * load_pango_font before any other pango function @@ -178,6 +186,8 @@ i3Font load_font(const char *pattern, const bool fallback) { } } + LOG("Using X font %s", pattern); + /* Get information (height/name) for this font */ if (!(font.specific.xcb.info = xcb_query_font_reply(conn, info_cookie, NULL))) errx(EXIT_FAILURE, "Could not load font \"%s\"", pattern); -- 2.39.5