xref: /plan9/sys/src/cmd/gs/src/gxcoord.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1994 Aladdin Enterprises.  All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: gxcoord.h,v 1.5 2002/06/16 08:45:43 lpd Exp $ */
18 /* Internal graphics state CTM procedures */
19 /* Requires gxmatrix.h and gzstate.h */
20 
21 #ifndef gxcoord_INCLUDED
22 #  define gxcoord_INCLUDED
23 
24 #include "gscoord.h"
25 
26 /* Set the translation to a fixed value, and translate any existing path. */
27 /* Used by gschar.c to prepare for a BuildChar or BuildGlyph procedure. */
28 int gx_translate_to_fixed(gs_state *, fixed, fixed);
29 
30 /* Scale the CTM and character matrix for oversampling. */
31 int gx_scale_char_matrix(gs_state *, int, int);
32 
33 /* Compute the coefficients for fast fixed-point distance transformations */
34 /* from a transformation matrix. */
35 int gx_matrix_to_fixed_coeff(const gs_matrix *, fixed_coeff *, int);
36 
37 #endif /* gxcoord_INCLUDED */
38