FcConfigSetSysRoot(3)
okay bestie, you clicked into the FcConfigSetSysRoot(3) manual page and it's giving βset the system root directoryβ energy π
β¨
πΈ NAME πΈ
FcConfigSetSysRoot β set the system root directory π
π¦ SYNOPSIS π¦
Here's the include and the signature, exactly as they are, no cap:
#include <fontconfig/fontconfig.h>
void FcConfigSetSysRoot (FcConfig *config, const FcChar8 *sysroot);
π DESCRIPTION π
okay so this is the part where you set sysroot as the system root directory. Like, that's the whole assignment, and it ate π
.
Every file path that's used or created with this config β and yup, that includes file properties in patterns β will be considered relative to this sysroot, or made relative to it. No weirdness, just everything sitting under that root vibe π.
This is lowkey iconic because it lets a host generate caches for targets at build time. (Build-time cache generation? Obsessed.) π«Ά
It also means a cache can be re-targeted to a different base directory β but only if FcConfigGetSysRoot is used to resolve file paths. That's the catch, bestie, don't forget it π.
And when you set this on the current config, that causes changing the current config, which means it calls FcConfigSetCurrent(). So yeah, it's making moves on the current config fr fr.
π SINCE π
version 2.10.92 β¨ β she's been around.
xoxo, Fontconfig 2.17.0 β’ 27 June 2025 β’ catch u on FcConfigSetSysRoot(3) again ππ«Ά
π¦ where this page comes from
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms