---
name: "FcConfigSetFontSetFilter"
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/FcConfigSetFontSetFilter"
---

# FcConfigSetFontSetFilter(3)

Set a predicate function to filter fontsets

## NAME

FcConfigSetFontSetFilter - Set a predicate function to filter fontsets

## SYNOPSIS

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

**FcConfig \* FcConfigSetFontSetFilter (FcConfig \****config***, FcFilterFontSetFunc** *filter\_func***, FcDestroyFunc** *destroy\_data\_func***, void \****user\_data***);**

## DESCRIPTION

Sets *filter\_func* as a predicate function and filter out fontsets in *config* as desired. *filter\_func* will be called with a font pattern and *user\_data* only when loading caches. When *config* is going to be destroyed, *user\_data* will be destroyed through *destroy\_data\_func* if it is set.

## SINCE

version 2.16.0
