From: Keith Packard Date: Tue, 13 Nov 2007 23:11:35 +0000 (-0800) Subject: Document that Match calls FcFontRenderPrepare (bug 13162). X-Git-Tag: 2.5.0~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3fb38716aefef0fac300dee059403c04c1cbaa6c;p=fontconfig.git Document that Match calls FcFontRenderPrepare (bug 13162). The behaviour of FcFontMatch and FcFontSetMatch is hard to understand without knowing that they call FcFontRenderPrepare. --- diff --git a/doc/fcconfig.fncs b/doc/fcconfig.fncs index 468bb77..4a83f46 100644 --- a/doc/fcconfig.fncs +++ b/doc/fcconfig.fncs @@ -243,9 +243,13 @@ if the substitution cannot be performed (due to allocation failure). Otherwise r @TYPE3@ FcResult * @ARG3@ result @PURPOSE@ Return best font @DESC@ -Returns the font in config most close matching p. This function -should be called only after FcConfigSubstitute and FcDefaultSubstitute have -been called for p; otherwise the results will not be correct. +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 +p; otherwise the results will not be correct. @@ @RET@ FcFontSet * @@ -267,7 +271,7 @@ been called for p; otherwise the results will not be corr 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 p to -FcFontRenderPrepare which combines them into a complete pattern. +FcFontRenderPrepare which combines them into a complete pattern. The FcFontSet returned by FcFontSort is destroyed by caling FcFontSetDestroy. @@ diff --git a/doc/fcfontset.fncs b/doc/fcfontset.fncs index e9e1701..3e214aa 100644 --- a/doc/fcfontset.fncs +++ b/doc/fcfontset.fncs @@ -73,10 +73,14 @@ 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. +Returns NULL if an error occurs during this process. @@ @RET@ void @@ -116,7 +120,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. @@