Query for default config without force initialization if absent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I ask if it exists a function to query for the current default configuration, without forcing its creation if it's found uninitialized. All functions seems to do lazy initialize a default configuration, including FcConfigGetCurrent[1]. Such function (tentative function name FcConfigGetCurrentDirect) would be useful to determine the configuration was already initialized or not and allow to set a custom default if no existing configuration was found. A more sophisticated API could allow to atomically set supplicated configuration as the default only if the latter it's found uninitialized (tentative function name FcConfigTrySetCurrent), flagging the caller if the the configuration was already initialized.

Regards,
Francesco

[1] https://gitlab.freedesktop.org/fontconfig/fontconfig/-/blob/main/src/fccfg.c#L595

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux