Imported Upstream version 2.14.2
[platform/upstream/fontconfig.git] / doc / FcPatternAdd.3
1 .\" auto-generated by docbook2man-spec from docbook-utils package
2 .TH "FcPatternAdd" "3" "27 1月 2023" "Fontconfig 2.14.2" ""
3 .SH NAME
4 FcPatternAdd \- Add a value to a pattern
5 .SH SYNOPSIS
6 .nf
7 \fB#include <fontconfig/fontconfig.h>
8 .sp
9 FcBool FcPatternAdd (FcPattern *\fIp\fB, const char *\fIobject\fB, FcValue \fIvalue\fB, FcBool \fIappend\fB);
10 .fi\fR
11 .SH "DESCRIPTION"
12 .PP
13 Adds a single value to the list of values associated with the property named
14 `object\fI\&. If `append\fR is FcTrue, the value is added at the end of any
15 existing list, otherwise it is inserted at the beginning. `value' is saved
16 (with FcValueSave) when inserted into the pattern so that the library
17 retains no reference to any application-supplied data structure.