Imported Upstream version 2.12.1
[platform/upstream/fontconfig.git] / doc / FcConfigAppFontAddDir.3
1 .\" auto-generated by docbook2man-spec from docbook-utils package
2 .TH "FcConfigAppFontAddDir" "3" "05 8月 2016" "Fontconfig 2.12.1" ""
3 .SH NAME
4 FcConfigAppFontAddDir \- Add fonts from directory to font database
5 .SH SYNOPSIS
6 .nf
7 \fB#include <fontconfig/fontconfig.h>
8 .sp
9 FcBool FcConfigAppFontAddDir (FcConfig *\fIconfig\fB, const FcChar8 *\fIdir\fB);
10 .fi\fR
11 .SH "DESCRIPTION"
12 .PP
13 Scans the specified directory for fonts, adding each one found to the
14 application-specific set of fonts. Returns FcFalse
15 if the fonts cannot be added (due to allocation failure).
16 Otherwise returns FcTrue. If \fIconfig\fR is NULL,
17 the current configuration is used.