diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2014-07-29 11:36:30 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2014-07-29 11:36:51 -0400 |
commit | f60fbff29c729244bae42712b2b3a7fd2a11f5a1 (patch) | |
tree | 71be44e22551e1bc1150dfa293a487cb08882f89 /pango/pangocairo-fontmap.c | |
parent | 4866be2c7b252182ec81ba2880fd2740afa20633 (diff) | |
download | pango-f60fbff29c729244bae42712b2b3a7fd2a11f5a1.tar.gz |
Bug 733898 - Fix build of pangocairo-fontmap.c
Diffstat (limited to 'pango/pangocairo-fontmap.c')
-rw-r--r-- | pango/pangocairo-fontmap.c | 15 |
1 files changed, 9 insertions, 6 deletions
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; } |