FcConfigGetFilename(3)
π NAME π
Okay bestie, welcome to the FcConfigGetFilename(3) page β manual name FcConfigGetFilename, section 3, and she's all about finding a config file π₯.
FcConfigGetFilename β find a config file π
β¨ SYNOPSIS β¨
Include this, bestie:
#include <fontconfig/fontconfig.h>
FcChar8 * FcConfigGetFilename (FcConfig *config, const FcChar8 *name);
πΈ DESCRIPTION πΈ
Okay so picture this: you give this function the specified external entity name, and it returns the associated filename. Itβs literally giving applications a way to convert various configuration file references into filename form. Slay π₯.
If name is null or empty, that means the default configuration file should be used. Which file that references can be overridden with the FONTCONFIG_FILE environment variable. Not me knowing all the env vars π
.
Next up: if name starts with ~, it refers to a file in the current users home directory. Otherwise, if 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. Periodt π.
And heads up, bestie: the result of this function is affected by the FONTCONFIG_SYSROOT environment variable or equivalent functionality. Keep that in mind, iykyk π«Ά.
Byeee bestie π β this page is from Fontconfig 2.17.0, dated 27 June 2025. Mwah π
π¦ 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