xenocara/lib/fontconfig/doc/FcPatternBuild.3

51 lines
1.5 KiB
Groff
Raw Normal View History

.\\" auto-generated by docbook2man-spec $Revision: 1.3 $
.TH "FcPatternBuild" "3" "18 November 2009" "" ""
2006-11-25 11:41:30 -07:00
.SH NAME
FcPatternBuild, FcPatternVaBuild, FcPatternVapBuild \- Create patterns from arguments
2006-11-25 11:41:30 -07:00
.SH SYNOPSIS
.nf
2006-11-25 11:41:30 -07:00
\fB#include <fontconfig.h>
.sp
FcPattern * FcPatternBuild(FcPattern *\fIpattern\fB);
(\&...\fI\fB);
2006-11-25 11:41:30 -07:00
.sp
FcPattern * FcPatternVaBuild(FcPattern *\fIpattern\fB);
(va_list \fIva\fB);
.sp
void FcPatternVapBuild(FcPattern *\fIresult\fB);
(FcPattern *\fIpattern\fB);
(va_list \fIva\fB);
\fR.fi
2006-11-25 11:41:30 -07:00
.SH "DESCRIPTION"
.PP
Builds a pattern using a list of objects, types and values. Each
2006-11-25 11:41:30 -07:00
value to be entered in the pattern is specified with three arguments:
.IP 1.
2006-11-25 11:41:30 -07:00
Object name, a string describing the property to be added.
.IP 2.
2006-11-25 11:41:30 -07:00
Object type, one of the FcType enumerated values
.IP 3.
2006-11-25 11:41:30 -07:00
Value, not an FcValue, but the raw type as passed to any of the
FcPatternAdd<type> functions. Must match the type of the second
2006-11-25 11:41:30 -07:00
argument.
.PP
The argument list is terminated by a null object name, no object type nor
value need be passed for this. The values are added to `pattern', if
`pattern' is null, a new pattern is created. In either case, the pattern is
2006-11-25 11:41:30 -07:00
returned. Example
.PP
.sp
2006-11-25 11:41:30 -07:00
.nf
pattern = FcPatternBuild (0, FC_FAMILY, FcTypeString, "Times", (char *) 0);
.sp
2006-11-25 11:41:30 -07:00
.fi
.PP
FcPatternVaBuild is used when the arguments are already in the form of a
varargs value. FcPatternVapBuild is a macro version of FcPatternVaBuild
which returns its result directly in the \fIresult\fR
variable.
.PP
2006-11-25 11:41:30 -07:00
.SH "VERSION"
.PP
Fontconfig version 2.8.0