| 1 |
/* |
| 2 |
* fontconfig/doc/fcfontations.fncs |
| 3 |
* |
| 4 |
* Copyright © 2025 Google LLC. |
| 5 |
* |
| 6 |
* Permission to use, copy, modify, distribute, and sell this software and its |
| 7 |
* documentation for any purpose is hereby granted without fee, provided that |
| 8 |
* the above copyright notice appear in all copies and that both that |
| 9 |
* copyright notice and this permission notice appear in supporting |
| 10 |
* documentation, and that the name of the author(s) not be used in |
| 11 |
* advertising or publicity pertaining to distribution of the software without |
| 12 |
* specific, written prior permission. The authors make no |
| 13 |
* representations about the suitability of this software for any purpose. It |
| 14 |
* is provided "as is" without express or implied warranty. |
| 15 |
* |
| 16 |
* THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
| 17 |
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO |
| 18 |
* EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
| 19 |
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, |
| 20 |
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 21 |
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 22 |
* PERFORMANCE OF THIS SOFTWARE. |
| 23 |
*/ |
| 24 |
|
| 25 |
@SYNOPSIS@ |
| 26 |
#include <fontconfig.h> |
| 27 |
#include <fcfontations.h> |
| 28 |
@RET@ unsigned int |
| 29 |
@FUNC@ FcFontationsQueryAll |
| 30 |
@TYPE1@ const FcChar8 * @ARG1@ file |
| 31 |
@TYPE2@ int% @ARG2@ id |
| 32 |
@TYPE3@ FcBlanks * @ARG3@ blanks |
| 33 |
@TYPE4@ int * @ARG4@ count |
| 34 |
@TYPE5@ FcFontSet * @ARG5@ set |
| 35 |
@PURPOSE@ compute all patterns from font file (and index) |
| 36 |
@DESC@ |
| 37 |
UNSTABLE feature. Constructs patterns found in 'file'. Currently pattern is incomplete |
| 38 |
compared to FcFreeTypeQueryAll() and may deviate from what FreeType indexing produces. |
| 39 |
Not supported yet, but will follow: If id is -1, then all patterns found |
| 40 |
in 'file' are added to 'set'. |
| 41 |
Otherwise, this function works exactly like FcFreeTypeQueryAll()/FcFreeTypeQuery(). |
| 42 |
The number of faces in 'file' is returned in 'count'. |
| 43 |
The number of patterns added to 'set' is returned. |
| 44 |
FcBlanks is deprecated, <parameter>blanks</parameter> is ignored and |
| 45 |
accepted only for compatibility with older code. |
| 46 |
@SINCE@ 2.17.0 |
| 47 |
@@ |