xenocara/lib/fontconfig/doc/FcFontMatch.3

26 lines
749 B
Groff

.\\" auto-generated by docbook2man-spec $Revision: 1.3 $
.TH "FcFontMatch" "3" "18 November 2009" "" ""
.SH NAME
FcFontMatch \- Return best font
.SH SYNOPSIS
.nf
\fB#include <fontconfig.h>
.sp
FcPattern * FcFontMatch(FcConfig *\fIconfig\fB);
(FcPattern *\fIp\fB);
(FcResult *\fIresult\fB);
\fR.fi
.SH "DESCRIPTION"
.PP
Finds the font in \fIsets\fR most closely matching
\fIpattern\fR and returns the result of
\fBFcFontRenderPrepare\fR for that font and the provided
pattern. This function should be called only after
\fBFcConfigSubstitute\fR and
\fBFcDefaultSubstitute\fR have been called for
\fIp\fR; otherwise the results will not be correct.
If \fIconfig\fR is NULL, the current configuration is used.
.SH "VERSION"
.PP
Fontconfig version 2.8.0