]> git.wh0rd.org - fontconfig.git/blame - doc/fcfreetype.fncs
Cleanup copyright notices to replace "Keith Packard" with "the author(s)"
[fontconfig.git] / doc / fcfreetype.fncs
CommitLineData
39381776 1/*
e690fbb2 2 * fontconfig/doc/fcfreetype.fncs
39381776 3 *
46b51147 4 * Copyright © 2003 Keith Packard
39381776
KP
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
5aaf466d 10 * documentation, and that the name of the author(s) not be used in
39381776 11 * advertising or publicity pertaining to distribution of the software without
5aaf466d 12 * specific, written prior permission. The authors make no
39381776
KP
13 * representations about the suitability of this software for any purpose. It
14 * is provided "as is" without express or implied warranty.
15 *
3074a73b 16 * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
39381776 17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3074a73b 18 * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
39381776
KP
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 <fcfreetype.h>
28@RET@ FT_UInt
29@FUNC@ FcFreeTypeCharIndex
61895ed1
KP
30@TYPE1@ FT_Face% @ARG1@ face
31@TYPE2@ FcChar32% @ARG2@ ucs4
39381776
KP
32@PURPOSE@ map Unicode to glyph id
33@DESC@
34Maps a Unicode char to a glyph index. This function uses information from
35several possible underlying encoding tables to work around broken fonts.
36As a result, this function isn't designed to be used in performance
37sensitive areas; results from this function are intended to be cached by
38higher level functions.
39@@
40
41@SYNOPSIS@
42#include <fontconfig.h>
43#include <fcfreetype.h>
44@RET@ FcCharSet *
45@FUNC@ FcFreeTypeCharSet
61895ed1 46@TYPE1@ FT_Face% @ARG1@ face
39381776
KP
47@TYPE2@ FcBlanks * @ARG2@ blanks
48@PURPOSE@ compute unicode coverage
49@DESC@
50Scans a FreeType face and returns the set of encoded Unicode chars. This scans
51several encoding tables to build as complete a list as possible.
52If 'blanks' is not 0, the glyphs in the font are examined and any blank glyphs
53not in 'blanks' are not placed in the returned FcCharSet.
54@@
55
56@SYNOPSIS@
57#include <fontconfig.h>
a190678e
KP
58#include <fcfreetype.h>
59@RET@ FcCharSet *
60@FUNC@ FcFreeTypeCharSetAndSpacing
61@TYPE1@ FT_Face% @ARG1@ face
62@TYPE2@ FcBlanks * @ARG2@ blanks
63@TYPE3@ int * @ARG3@ spacing
64@PURPOSE@ compute unicode coverage and spacing type
65@DESC@
66Scans a FreeType face and returns the set of encoded Unicode chars.
67This scans
68several encoding tables to build as complete a list as possible.
69If 'blanks' is not 0, the glyphs in the font are examined and any blank glyphs
70not in 'blanks' are not placed in the returned FcCharSet.
71<parameter>spacing</parameter> receives the computed spacing type of the
72font, one of FC_MONO for a font where all glyphs have the same width,
73FC_DUAL, where the font has glyphs in precisely two widths, one twice as
74wide as the other, or FC_PROPORTIONAL where the font has glyphs of many
75widths.
76@@
77
78@SYNOPSIS@
79#include &lt;fontconfig.h&gt;
39381776
KP
80#include &lt;fcfreetype.h&gt;
81@RET@ FcPattern *
82@FUNC@ FcFreeTypeQuery
f2772d6b 83@TYPE1@ const FcChar8 * @ARG1@ file
61895ed1 84@TYPE2@ int% @ARG2@ id
39381776
KP
85@TYPE3@ FcBlanks * @ARG3@ blanks
86@TYPE4@ int * @ARG4@ count
72ffe653 87@PURPOSE@ compute pattern from font file (and index)
39381776
KP
88@DESC@
89Constructs a pattern representing the 'id'th font in 'file'. The number
90of fonts in 'file' is returned in 'count'.
91@@
72ffe653
KP
92
93@SYNOPSIS@
94#include &lt;fontconfig.h&gt;
95#include &lt;fcfreetype.h&gt;
96@RET@ FcPattern *
97@FUNC@ FcFreeTypeQueryFace
61895ed1 98@TYPE1@ const FT_Face% @ARG1@ face
f2772d6b 99@TYPE2@ const FcChar8 * @ARG2@ file
61895ed1 100@TYPE3@ int% @ARG3@ id
72ffe653
KP
101@TYPE4@ FcBlanks * @ARG4@ blanks
102@PURPOSE@ compute pattern from FT_Face
103@DESC@
104Constructs a pattern representing 'face'. 'file' and 'id' are used solely as
105data for pattern elements (FC_FILE, FC_INDEX and sometimes FC_FAMILY).
106@@