2 fontconfig/doc/func.sgml
4 Copyright © 2003 Keith Packard
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.
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.
24 <refentry id="FcMatrixInit">
26 <refentrytitle>FcMatrixInit</refentrytitle>
27 <manvolnum>3</manvolnum>
28 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
31 <refname>FcMatrixInit</refname>
32 <refpurpose>initialize an FcMatrix structure</refpurpose>
37 #include <fontconfig/fontconfig.h>
40 <funcdef>void <function>FcMatrixInit</function></funcdef>
41 <paramdef>FcMatrix *<parameter>matrix</parameter></paramdef>
45 <refsect1><title>Description</title>
47 <function>FcMatrixInit</function> initializes <parameter>matrix</parameter>
48 to the identity matrix.
53 fontconfig/doc/func.sgml
55 Copyright © 2003 Keith Packard
57 Permission to use, copy, modify, distribute, and sell this software and its
58 documentation for any purpose is hereby granted without fee, provided that
59 the above copyright notice appear in all copies and that both that
60 copyright notice and this permission notice appear in supporting
61 documentation, and that the name of the author(s) not be used in
62 advertising or publicity pertaining to distribution of the software without
63 specific, written prior permission. The authors make no
64 representations about the suitability of this software for any purpose. It
65 is provided "as is" without express or implied warranty.
67 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
68 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
69 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
70 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
71 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
72 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
73 PERFORMANCE OF THIS SOFTWARE.
75 <refentry id="FcMatrixCopy">
77 <refentrytitle>FcMatrixCopy</refentrytitle>
78 <manvolnum>3</manvolnum>
79 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
82 <refname>FcMatrixCopy</refname>
83 <refpurpose>Copy a matrix</refpurpose>
88 #include <fontconfig/fontconfig.h>
91 <funcdef>void <function>FcMatrixCopy</function></funcdef>
92 <paramdef>const FcMatrix *<parameter>matrix</parameter></paramdef>
96 <refsect1><title>Description</title>
98 <function>FcMatrixCopy</function> allocates a new FcMatrix
99 and copies <parameter>mat</parameter> into it.
104 fontconfig/doc/func.sgml
106 Copyright © 2003 Keith Packard
108 Permission to use, copy, modify, distribute, and sell this software and its
109 documentation for any purpose is hereby granted without fee, provided that
110 the above copyright notice appear in all copies and that both that
111 copyright notice and this permission notice appear in supporting
112 documentation, and that the name of the author(s) not be used in
113 advertising or publicity pertaining to distribution of the software without
114 specific, written prior permission. The authors make no
115 representations about the suitability of this software for any purpose. It
116 is provided "as is" without express or implied warranty.
118 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
119 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
120 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
121 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
122 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
123 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
124 PERFORMANCE OF THIS SOFTWARE.
126 <refentry id="FcMatrixEqual">
128 <refentrytitle>FcMatrixEqual</refentrytitle>
129 <manvolnum>3</manvolnum>
130 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
133 <refname>FcMatrixEqual</refname>
134 <refpurpose>Compare two matrices</refpurpose>
139 #include <fontconfig/fontconfig.h>
142 <funcdef>void <function>FcMatrixEqual</function></funcdef>
143 <paramdef>const FcMatrix *<parameter>matrix1</parameter></paramdef>
144 <paramdef>const FcMatrix *<parameter>matrix2</parameter></paramdef>
148 <refsect1><title>Description</title>
150 <function>FcMatrixEqual</function> compares <parameter>matrix1</parameter>
151 and <parameter>matrix2</parameter> returning FcTrue when they are equal and
152 FcFalse when they are not.
157 fontconfig/doc/func.sgml
159 Copyright © 2003 Keith Packard
161 Permission to use, copy, modify, distribute, and sell this software and its
162 documentation for any purpose is hereby granted without fee, provided that
163 the above copyright notice appear in all copies and that both that
164 copyright notice and this permission notice appear in supporting
165 documentation, and that the name of the author(s) not be used in
166 advertising or publicity pertaining to distribution of the software without
167 specific, written prior permission. The authors make no
168 representations about the suitability of this software for any purpose. It
169 is provided "as is" without express or implied warranty.
171 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
172 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
173 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
174 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
175 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
176 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
177 PERFORMANCE OF THIS SOFTWARE.
179 <refentry id="FcMatrixMultiply">
181 <refentrytitle>FcMatrixMultiply</refentrytitle>
182 <manvolnum>3</manvolnum>
183 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
186 <refname>FcMatrixMultiply</refname>
187 <refpurpose>Multiply matrices</refpurpose>
192 #include <fontconfig/fontconfig.h>
195 <funcdef>void <function>FcMatrixMultiply</function></funcdef>
196 <paramdef>FcMatrix *<parameter>result</parameter></paramdef>
197 <paramdef>const FcMatrix *<parameter>matrix1</parameter></paramdef>
198 <paramdef>const FcMatrix *<parameter>matrix2</parameter></paramdef>
202 <refsect1><title>Description</title>
204 <function>FcMatrixMultiply</function> multiplies
205 <parameter>matrix1</parameter> and <parameter>matrix2</parameter> storing
206 the result in <parameter>result</parameter>.
211 fontconfig/doc/func.sgml
213 Copyright © 2003 Keith Packard
215 Permission to use, copy, modify, distribute, and sell this software and its
216 documentation for any purpose is hereby granted without fee, provided that
217 the above copyright notice appear in all copies and that both that
218 copyright notice and this permission notice appear in supporting
219 documentation, and that the name of the author(s) not be used in
220 advertising or publicity pertaining to distribution of the software without
221 specific, written prior permission. The authors make no
222 representations about the suitability of this software for any purpose. It
223 is provided "as is" without express or implied warranty.
225 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
226 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
227 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
228 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
229 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
230 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
231 PERFORMANCE OF THIS SOFTWARE.
233 <refentry id="FcMatrixRotate">
235 <refentrytitle>FcMatrixRotate</refentrytitle>
236 <manvolnum>3</manvolnum>
237 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
240 <refname>FcMatrixRotate</refname>
241 <refpurpose>Rotate a matrix</refpurpose>
246 #include <fontconfig/fontconfig.h>
249 <funcdef>void <function>FcMatrixRotate</function></funcdef>
250 <paramdef>FcMatrix *<parameter>matrix</parameter></paramdef>
251 <paramdef>double <parameter>cos</parameter></paramdef>
252 <paramdef>double <parameter>sin</parameter></paramdef>
256 <refsect1><title>Description</title>
258 <function>FcMatrixRotate</function> rotates <parameter>matrix</parameter>
259 by the angle who's sine is <parameter>sin</parameter> and cosine is
260 <parameter>cos</parameter>. This is done by multiplying by the
270 fontconfig/doc/func.sgml
272 Copyright © 2003 Keith Packard
274 Permission to use, copy, modify, distribute, and sell this software and its
275 documentation for any purpose is hereby granted without fee, provided that
276 the above copyright notice appear in all copies and that both that
277 copyright notice and this permission notice appear in supporting
278 documentation, and that the name of the author(s) not be used in
279 advertising or publicity pertaining to distribution of the software without
280 specific, written prior permission. The authors make no
281 representations about the suitability of this software for any purpose. It
282 is provided "as is" without express or implied warranty.
284 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
285 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
286 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
287 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
288 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
289 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
290 PERFORMANCE OF THIS SOFTWARE.
292 <refentry id="FcMatrixScale">
294 <refentrytitle>FcMatrixScale</refentrytitle>
295 <manvolnum>3</manvolnum>
296 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
299 <refname>FcMatrixScale</refname>
300 <refpurpose>Scale a matrix</refpurpose>
305 #include <fontconfig/fontconfig.h>
308 <funcdef>void <function>FcMatrixScale</function></funcdef>
309 <paramdef>FcMatrix *<parameter>matrix</parameter></paramdef>
310 <paramdef>double <parameter>sx</parameter></paramdef>
311 <paramdef>double <parameter>dy</parameter></paramdef>
315 <refsect1><title>Description</title>
317 <function>FcMatrixScale</function> multiplies <parameter>matrix</parameter>
318 x values by <parameter>sx</parameter> and y values by
319 <parameter>dy</parameter>. This is done by multiplying by
329 fontconfig/doc/func.sgml
331 Copyright © 2003 Keith Packard
333 Permission to use, copy, modify, distribute, and sell this software and its
334 documentation for any purpose is hereby granted without fee, provided that
335 the above copyright notice appear in all copies and that both that
336 copyright notice and this permission notice appear in supporting
337 documentation, and that the name of the author(s) not be used in
338 advertising or publicity pertaining to distribution of the software without
339 specific, written prior permission. The authors make no
340 representations about the suitability of this software for any purpose. It
341 is provided "as is" without express or implied warranty.
343 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
344 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
345 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
346 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
347 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
348 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
349 PERFORMANCE OF THIS SOFTWARE.
351 <refentry id="FcMatrixShear">
353 <refentrytitle>FcMatrixShear</refentrytitle>
354 <manvolnum>3</manvolnum>
355 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
358 <refname>FcMatrixShear</refname>
359 <refpurpose>Shear a matrix</refpurpose>
364 #include <fontconfig/fontconfig.h>
367 <funcdef>void <function>FcMatrixShear</function></funcdef>
368 <paramdef>FcMatrix *<parameter>matrix</parameter></paramdef>
369 <paramdef>double <parameter>sh</parameter></paramdef>
370 <paramdef>double <parameter>sv</parameter></paramdef>
374 <refsect1><title>Description</title>
376 <function>FcMatrixShare</function> shears <parameter>matrix</parameter>
377 horizontally by <parameter>sh</parameter> and vertically by
378 <parameter>sv</parameter>. This is done by multiplying by