cheshirekow
v0.1.0
|
#include <cpp_fontconfig/Config.h>
Public Types | |
typedef FcConfig * | cobjptr |
typedef ConfigDelegate | Delegate |
typedef FcConfig * | Storage |
Static Public Member Functions | |
static RefPtr< Config > | create () |
Create a configuration. More... | |
static bool | enableHome (bool enable) |
controls use of the home directory. More... | |
static Char8_t * | filename (const Char8_t *url) |
Find a config file. More... | |
static RefPtr< Config > | getCurrent () |
Return current configuration. More... | |
static Char8_t * | home (void) |
return the current home directory. More... | |
typedef FcConfig* fontconfig::Config::cobjptr |
typedef FcConfig* fontconfig::Config::Storage |
Create a configuration.
Creates an empty configuration.
|
static |
controls use of the home directory.
If enable is FcTrue, then Fontconfig will use various files which are specified relative to the user's home directory (using the ~ notation in the configuration). When enable is FcFalse, then all use of the home directory in these contexts will be disabled. The previous setting of the value is returned.
Find a config file.
Given the specified external entity name, return the associated filename. This provides applications a way to convert various configuration file references into filename form.
A null or empty name indicates that the default configuration file should be used; which file this references can be overridden with the FONTCONFIG_FILE environment variable. Next, if the name starts with ~, it 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.
Return current configuration.
Returns the current default configuration.
|
static |
return the current home directory.
Return the current user's home directory, if it is available, and if using it is enabled, and NULL otherwise. See also FcConfigEnableHome).