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

# FcDirScan(3)

scan a font directory without caching it

## NAME

FcDirScan - scan a font directory without caching it

## SYNOPSIS

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

**FcBool FcDirScan (FcFontSet \****set***, FcStrSet \****dirs***, FcFileCache \****cache***, FcBlanks \****blanks***, const FcChar8 \****dir***, FcBool** *force***);**

## DESCRIPTION

If *cache* is not zero or if *force* is FcFalse, this function currently returns FcFalse.  Otherwise, it scans an entire directory and adds all fonts found to *set*. Any subdirectories found are added to *dirs*.  Calling this function does not create any cache files.  Use FcDirCacheRead() if caching is desired.
