X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=doc%2Ffcfontset.fncs;h=57005fdd06d79e653e997578535d93244ccc4268;hb=2e44cbe1b9bf466718167e9e05077743df36ab21;hp=bcf4bd3e7fa979fd0e40b119d9f999c9807adf99;hpb=a190678e3c4497870679808dde418191407be91d;p=fontconfig.git diff --git a/doc/fcfontset.fncs b/doc/fcfontset.fncs index bcf4bd3..57005fd 100644 --- a/doc/fcfontset.fncs +++ b/doc/fcfontset.fncs @@ -1,5 +1,5 @@ /* - * $Id$ + * fontconfig/doc/fcfontset.fncs * * Copyright © 2003 Keith Packard * @@ -13,9 +13,9 @@ * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * - * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO - * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR @@ -45,7 +45,8 @@ well. @PURPOSE@ Add to a font set @DESC@ Adds a pattern to a font set. Note that the pattern is not copied before -being inserted into the set. +being inserted into the set. Returns FcFalse if the pattern cannot be +inserted into the set (due to allocation failure). Otherwise returns FcTrue. @@ @RET@ FcFontSet * @@ -61,6 +62,8 @@ Selects fonts matching pattern from sets, creates patterns from those fonts containing only the objects in object_set and returns the set of unique such patterns. +If config is NULL, the default configuration is checked +to be up to date, and used. @@ @RET@ FcPattern * @@ -72,10 +75,15 @@ the set of unique such patterns. @TYPE5@ FcResult * @ARG5@ result @PURPOSE@ Return the best font from a set of font sets @DESC@ -Returns the font in sets most close matching -pattern. This function should be called only after -FcConfigSubstitute and FcDefaultSubstitute have been called for +Finds the font in sets most closely matching +pattern and returns the result of +FcFontRenderPrepare for that font and the provided +pattern. This function should be called only after +FcConfigSubstitute and +FcDefaultSubstitute have been called for pattern; otherwise the results will not be correct. +If config is NULL, the current configuration is used. +Returns NULL if an error occurs during this process. @@ @RET@ void @@ -115,7 +123,7 @@ The returned FcFontSet references FcPattern structures which may be shared by the return value from multiple FcFontSort calls, applications cannot modify these patterns. Instead, they should be passed, along with pattern to -FcFontRenderPrepare which combines them into a complete pattern. +FcFontRenderPrepare which combines them into a complete pattern. The FcFontSet returned by FcFontSetSort is destroyed by caling FcFontSetDestroy. @@