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 /fc-scan | |
parent | c524522bb45f71dfeaa8fd1ec277537dd6e85afa (diff) |
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 'fc-scan')
-rw-r--r-- | fc-scan/fc-scan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fc-scan/fc-scan.c b/fc-scan/fc-scan.c index 1f18e800..58a0b152 100644 --- a/fc-scan/fc-scan.c +++ b/fc-scan/fc-scan.c @@ -150,9 +150,7 @@ main (int argc, char **argv) for (i = 0; i < fs->nfont; i++) { - FcPattern *pat; - - pat = fs->fonts[i]; + FcPattern *pat = fs->fonts[i]; if (format) { |