.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "FcFontSetMatch" "3" "08 March 2024" "Fontconfig 2.15.0" "" .SH NAME FcFontSetMatch \- Return the best font from a set of font sets .SH SYNOPSIS .sp \fB#include .sp FcPattern * FcFontSetMatch (FcConfig *\fIconfig\fB, FcFontSet **\fIsets\fB, int\fInsets\fB, FcPattern *\fIpattern\fB, FcResult *\fIresult\fB); \fR .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 \fIpattern\fR; otherwise the results will not be correct. If \fIconfig\fR is NULL, the current configuration is used. Returns NULL if an error occurs during this process.