[Fontconfig] Adding a font directory scanned non-recursively
Akira TAGOH
akira at tagoh.org
Mon Apr 3 08:27:25 UTC 2023
Hi,
Unfortunately not. fontconfig will add a sub directory into the queue
when they find it and scan them recursively.
So we need a new API to do it.
On Sun, Apr 2, 2023 at 10:21 AM Jean Abou Samra <jean at abou-samra.fr> wrote:
>
> Hi,
>
> Is there a way to do something like FcConfigAppFontAddDir, but only looking
> for font files in the directory itself, not recursing into subdirectories?
>
> For background, LilyPond, which uses Fontconfig to search for fonts, has its
> own include path for LilyPond files. Since there is tooling (IDE) support built
> around that, it would be nice to make LilyPond search for fonts in that path.
> I tried adding all the directories it contains with FcConfigAppFontAddDir,
> and it kind of works, but then, if I run LilyPond in, say, my home folder,
> it hangs, because it's scanning the tens of thousands of directories inside for
> font files...
>
> Thanks,
>
> Jean
>
--
Akira TAGOH
More information about the Fontconfig
mailing list