FcConfigSetSysRoot(3)

FcConfigSetSysRoot3

Set the system root directory

Usage

#include <fontconfig/fontconfig.h>

void FcConfigSetSysRoot (FcConfig *config, const FcChar8 *sysroot);

Overview

Set 'sysroot' as the system root directory. All file paths used or created with this 'config' (including file properties in patterns) will be considered or made relative to this 'sysroot'. This allows a host to generate caches for targets at build time. This also allows a cache to be re-targeted to a different base directory if 'FcConfigGetSysRoot' is used to resolve file paths. When setting this on the current config this causes changing current config (calls FcConfigSetCurrent()).

Since

version 2.10.92

Releases

7 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8–9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

From fontconfig 2:2.18.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.