[pango] Accept PANGOCAIRO_BACKEND=fc as alias to fontconfig
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Accept PANGOCAIRO_BACKEND=fc as alias to fontconfig
- Date: Thu, 24 Jul 2014 19:03:30 +0000 (UTC)
commit 424008bd763abfa881ea8c6fac669062cbcfa83d
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu Jul 24 15:03:13 2014 -0400
Accept PANGOCAIRO_BACKEND=fc as alias to fontconfig
pango/pangocairo-fontmap.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c
index 2a46d71..4d06dfe 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]