From f60fbff29c729244bae42712b2b3a7fd2a11f5a1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 29 Jul 2014 11:36:30 -0400 Subject: Bug 733898 - Fix build of pangocairo-fontmap.c --- pango/pangocairo-fontmap.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'pango') diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c index 004b0dec..1a529fca 100644 --- a/pango/pangocairo-fontmap.c +++ b/pango/pangocairo-fontmap.c @@ -60,7 +60,7 @@ pango_cairo_font_map_default_init (PangoCairoFontMapIface *iface) * * You can override the type of backend returned by using an * environment variable %PANGOCAIRO_BACKEND. Supported types, - * based on your build, are fc (fontconfig), win32, and quartz. + * based on your build, are fc (fontconfig), win32, and coretext. * If requested type is not available, NULL is returned. Ie. * this is only useful for testing, when at least two backends * are compiled in. @@ -93,17 +93,20 @@ pango_cairo_font_map_new (void) || 0 == strcmp (backend, "fontconfig")) return g_object_new (PANGO_TYPE_CAIRO_FC_FONT_MAP, NULL); #endif - g_error ("Unknown $PANGOCAIRO_BACKEND value. Available backends are:" + { + const char backends[] = "" #if defined(HAVE_CORE_TEXT) && defined (HAVE_CAIRO_QUARTZ) - " coretext" + " coretext" #endif #if defined(HAVE_CAIRO_WIN32) - " win32" + " win32" #endif #if defined(HAVE_CAIRO_FREETYPE) - " fontconfig" + " fontconfig" #endif - ); + ; + g_error ("Unknown $PANGOCAIRO_BACKEND value.\n Available backends are:%s", backends); + } return NULL; } -- cgit v1.2.1