1 /* Copyright (C) 1998, 1999 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: zchar2.c,v 1.4 2002/02/21 22:24:54 giles Exp $ */
18 /* Type 2 character display operator */
19 #include "ghost.h"
20 #include "oper.h"
21 #include "gxfixed.h"
22 #include "gxmatrix.h"
23 #include "gxfont.h"
24 #include "gxfont1.h"
25 #include "gxtype1.h"
26 #include "ichar1.h"
27
28 /* <font> <code|name> <name> <charstring> .type2execchar - */
29 private int
ztype2execchar(i_ctx_t * i_ctx_p)30 ztype2execchar(i_ctx_t *i_ctx_p)
31 {
32 return charstring_execchar(i_ctx_p, (1 << (int)ft_encrypted2));
33 }
34
35 /* ------ Initialization procedure ------ */
36
37 const op_def zchar2_op_defs[] =
38 {
39 {"4.type2execchar", ztype2execchar},
40 op_def_end(0)
41 };
42