---
name: "FcConfigSubstituteWithPat"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcConfigSubstituteWithPat"
---

# FcConfigSubstituteWithPat(3)

Execute substitutions

## NAME

FcConfigSubstituteWithPat - Execute substitutions

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**FcBool FcConfigSubstituteWithPat (FcConfig \****config***, FcPattern \****p***, FcPattern \****p\_pat***, FcMatchKind** *kind***);**

## DESCRIPTION

Performs the sequence of pattern modification operations, if *kind* is FcMatchPattern, then those tagged as pattern operations are applied, else if *kind* is FcMatchFont, those tagged as font operations are applied and p\_pat is used for \<test\> elements with target=pattern. Returns FcFalse if the substitution cannot be performed (due to allocation failure). Otherwise returns FcTrue. If *config* is NULL, the current configuration is used.
