summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2014-07-24 15:03:13 -0400
committerBehdad Esfahbod <behdad@behdad.org>2014-07-24 15:03:13 -0400
commit424008bd763abfa881ea8c6fac669062cbcfa83d (patch)
tree96bdb856600d6bea3919a92c251f3a2648a35bcc
parent8aa4afb3c2700279efb057bb7ad63c613ec20387 (diff)
downloadpango-424008bd763abfa881ea8c6fac669062cbcfa83d.tar.gz
Accept PANGOCAIRO_BACKEND=fc as alias to fontconfig
-rw-r--r--pango/pangocairo-fontmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c
index 2a46d715..4d06dfe0 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 fontconfig, win32, and quartz.
+ * based on your build, are fc (fontconfig), win32, and quartz.
* If requested type is not available, NULL is returned. Ie.
* this is only useful for testing, when at least two backends
* are compiled in.
@@ -87,7 +87,8 @@ pango_cairo_font_map_new (void)
if (!backend || 0 == strcmp (backend, "win32"))
return g_object_new (PANGO_TYPE_CAIRO_WIN32_FONT_MAP, NULL);
#elif defined(HAVE_CAIRO_FREETYPE)
- if (!backend || 0 == strcmp (backend, "fontconfig"))
+ if (!backend || 0 == strcmp (backend, "fc")
+ || 0 == strcmp (backend, "fontconfig"))
return g_object_new (PANGO_TYPE_CAIRO_FC_FONT_MAP, NULL);
#endif
if (!backend)