From 2e4e321dadb8249860c7ae5b853573a5d94f8d7d Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 25 Jun 2010 11:40:32 +0100 Subject: [PATCH] Detail the font-name value in the font settings debug note --- clutter/clutter-settings.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-settings.c b/clutter/clutter-settings.c index 34f838877..2a6aeed54 100644 --- a/clutter/clutter-settings.c +++ b/clutter/clutter-settings.c @@ -133,15 +133,17 @@ settings_update_font_options (ClutterSettings *self) cairo_font_options_set_antialias (options, antialias_mode); CLUTTER_NOTE (BACKEND, "New font options:\n" + " - font-name: %s\n" " - antialias: %d\n" " - hinting: %d\n" " - hint-style: %s\n" " - rgba: %s\n" " - dpi: %.2f", + self->font_name != NULL ? self->font_name : DEFAULT_FONT_NAME, self->xft_antialias, self->xft_hinting, - self->xft_hint_style, - self->xft_rgba, + self->xft_hint_style != NULL ? self->font_name : "", + self->xft_rgba != NULL ? self->xft_rgba : "", self->resolution); clutter_backend_set_font_options (self->backend, options);