diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2017-09-12 16:43:33 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-09-12 17:17:05 -0400 |
commit | 27a6a299e0fefca9c244213784d3c78b34281cd5 (patch) | |
tree | 9d6a5bdee1df7904fc133384bc9221a899cb8585 /fontconfig | |
parent | c524522bb45f71dfeaa8fd1ec277537dd6e85afa (diff) | |
download | fontconfig-27a6a299e0fefca9c244213784d3c78b34281cd5.tar.gz |
Add FcFreeTypeQueryAll()
Like FcFreeTypeQuery(), but adds patterns for all fonts found, including named
instances of variable fonts. If id is -1, then all collection faces are queried.
Returns number of fonts added.
This merges the same face loop that was in fc-query. and fcdir.c.
Needs documentation update.
Diffstat (limited to 'fontconfig')
-rw-r--r-- | fontconfig/fontconfig.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h index ecc1d90..f085aa0 100644 --- a/fontconfig/fontconfig.h +++ b/fontconfig/fontconfig.h @@ -577,6 +577,9 @@ FcDirCacheUnload (FcCache *cache); FcPublic FcPattern * FcFreeTypeQuery (const FcChar8 *file, int id, FcBlanks *blanks, int *count); +FcPublic unsigned int +FcFreeTypeQueryAll(const FcChar8 *file, int id, FcBlanks *blanks, int *count, FcFontSet *set); + /* fcfs.c */ FcPublic FcFontSet * |