59 lines
2.0 KiB
HTML
59 lines
2.0 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of FcFontSort</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>FcFontSort</H1>
|
|
Section: (3)<BR>Updated: 06 April 2020<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<P>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
FcFontSort - Return list of matching fonts
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<B>#include <<A HREF="file:///usr/include/fontconfig/fontconfig.h">fontconfig/fontconfig.h</A>>
|
|
<P>
|
|
FcFontSet * FcFontSort (FcConfig *</B><I>config</I><B>, FcPattern *</B><I>p</I><B>, FcBool </B><I>trim</I><B>, FcCharSet **</B><I>csp</I><B>, FcResult *</B><I>result</I><B>);
|
|
</B>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
Returns the list of fonts sorted by closeness to <I>p</I>. If <I>trim</I> is FcTrue,
|
|
elements in the list which don't include Unicode coverage not provided by
|
|
earlier elements in the list are elided. The union of Unicode coverage of
|
|
all of the fonts is returned in <I>csp</I>, if <I>csp</I> is not NULL. This function
|
|
should be called only after FcConfigSubstitute and FcDefaultSubstitute have
|
|
been called for <I>p</I>; otherwise the results will not be correct.
|
|
<P>
|
|
|
|
The returned FcFontSet references FcPattern structures which may be shared
|
|
by the return value from multiple FcFontSort calls, applications must not
|
|
modify these patterns. Instead, they should be passed, along with <I>p</I> to
|
|
<B>FcFontRenderPrepare</B> which combines them into a complete pattern.
|
|
<P>
|
|
|
|
The FcFontSet returned by FcFontSort is destroyed by calling FcFontSetDestroy.
|
|
If <I>config</I> is NULL, the current configuration is used.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:41 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|