diff options
author | Akira TAGOH <akira@tagoh.org> | 2019-10-21 16:17:42 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2019-10-21 20:46:09 +0900 |
commit | cd51cb241aad7b362b793200ca7d42595c14f52b (patch) | |
tree | 0cc2bbc5469cdb103eb8fa9873bae83a816da1da /doc | |
parent | 75eadca26648abf69497691ff0f4c7803b9ff23c (diff) |
Take effect sysroot functionality to the default config file
When loading the default config file with FONTCONFIG_SYSROOT,
it fails if no /etc/fonts/fonts.conf is available, even if it is
there where is based on sysroot.
To address this, FcConfig is required to determine the sysroot.
therefore, this change makes FcConfigFilename() deprecated,
use FcConfigGetFilename() instead.
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/181
Diffstat (limited to 'doc')
-rw-r--r-- | doc/fcconfig.fncs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/fcconfig.fncs b/doc/fcconfig.fncs index 5f1ef43..82769d5 100644 --- a/doc/fcconfig.fncs +++ b/doc/fcconfig.fncs @@ -344,6 +344,15 @@ to be up to date, and used. @TYPE1@ const FcChar8 * @ARG1@ name @PURPOSE@ Find a config file @DESC@ +This function is deprecated and is replaced by <function>FcConfigGetFilename</function>. +@@ + +@RET@ FcChar8 * +@FUNC@ FcConfigGetFilename +@TYPE1@ FcConfig * @ARG1@ config +@TYPE2@ const FcChar8 * @ARG2@ name +@PURPOSE@ Find a config file +@DESC@ Given the specified external entity name, return the associated filename. This provides applications a way to convert various configuration file references into filename form. @@ -355,6 +364,8 @@ refers to a file in the current users home directory. Otherwise if the name doesn't start with '/', it refers to a file in the default configuration directory; the built-in default directory can be overridden with the FONTCONFIG_PATH environment variable. + </para><para> +The result of this function is affected by the FONTCONFIG_SYSROOT environment variable or equivalent functionality. @@ @RET@ FcBool |