[Fontconfig] editing FcConfig in code

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Wed Apr 12 23:15:32 UTC 2023


On Wed, 12 Apr 2023 08:33:08 +0200, Jean Abou Samra wrote:

> FcConfigParseAndLoad(NULL, (FcChar8 *) "your-config-file.conf",
> FcTrue); ```
> 
> or
> 
> ```
> FcConfigParseAndLoadFromMemory(NULL, (FcChar8 *) "<the string of
> Fontconfig XML code that you would put in a file>", FcTrue); ```

Unfortunately, if these calls detect something wrong with the
configuration they read, they only print messages to stderr, without
returning any indication of what went wrong.


More information about the Fontconfig mailing list