fontconfig: Branch 'master'

[email protected] (Akira TAGOH)
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
 doc/fontconfig-user.sgml |    4 ++++
 src/fccfg.c              |    5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 730deada8cf609157d07b7c2bf2985672614c4c0
Author: Tom Anderson <[email protected]>
Date:   Tue Apr 24 11:15:58 2018 -0700

    Add FONTCONFIG_SYSROOT environment variable

diff --git a/doc/fontconfig-user.sgml b/doc/fontconfig-user.sgml
index 43ac957..f4f1c42 100644
--- a/doc/fontconfig-user.sgml
+++ b/doc/fontconfig-user.sgml
@@ -783,6 +783,10 @@ is used to override the default configuration file.
 is used to override the default configuration directory.
   </para>
   <para>
+<emphasis>FONTCONFIG_SYSROOT</emphasis>
+is used to set a default sysroot directory.
+  </para>
+  <para>
 <emphasis>FC_DEBUG</emphasis>
 is used to output the detailed debugging messages. see <link linkend="debug">Debugging Applications</link> section for more details.
   </para>
diff --git a/src/fccfg.c b/src/fccfg.c
index e35c451..e966e57 100644
--- a/src/fccfg.c
+++ b/src/fccfg.c
@@ -2408,7 +2408,10 @@ FcConfigGetSysRoot (const FcConfig *config)
 	    return NULL;
     }
 
-    return config->sysRoot;
+    if (config->sysRoot)
+        return config->sysRoot;
+
+    return (FcChar8 *) getenv ("FONTCONFIG_SYSROOT");
 }
 
 void
_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.