1 /* Copyright (C) 2001-2012 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied,
8    modified or distributed except as expressly authorized under the terms
9    of the license contained in the file LICENSE in this distribution.
10 
11    Refer to licensing information at http://www.artifex.com or contact
12    Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134, San Rafael,
13    CA  94903, U.S.A., +1(415)492-9861, for further information.
14 */
15 
16 
17 /* Interface to gsfont0c.c */
18 
19 #ifndef gxfont0c_INCLUDED
20 #  define gxfont0c_INCLUDED
21 
22 #include "gxfont0.h"
23 #include "gxfcid.h"
24 
25 /* Exported by gsfont0c.c */
26 
27 /*
28  * Create a Type 0 font wrapper for a CIDFont.
29  * psmat == NULL means use the identity matrix.
30  */
31 int gs_font_type0_from_cidfont(gs_font_type0 **ppfont0, gs_font *font,
32                                int wmode, const gs_matrix *psmat,
33                                gs_memory_t *mem);
34 
35 /*
36  * Create a Type 0 font wrapper for a Type 42 font (converted to a Type 2
37  * CIDFont), optionally using the TrueType cmap as the CMap.
38  * See gs_cmap_from_type42_cmap below for details.
39  */
40 int gs_font_type0_from_type42(gs_font_type0 **ppfont0, gs_font_type42 *pfont42,
41                               int wmode, bool use_cmap, gs_memory_t *mem);
42 
43 /* Exported by gsfcid2.c */
44 
45 /*
46  * Create a Type 2 CIDFont from a Type 42 font.
47  */
48 int gs_font_cid2_from_type42(gs_font_cid2 **ppfcid, gs_font_type42 *pfont42,
49                              int wmode, gs_memory_t *mem);
50 
51 /*
52  * Create a CMap from a TrueType cmap (Platform 3, Encoding 1, Format 4 only).
53  * The resulting CMap is marked as being Unicode-based.
54  */
55 int gs_cmap_from_type42_cmap(gs_cmap_t **ppcmap, gs_font_type42 *pfont42,
56                              int wmode, gs_memory_t *mem);
57 
58 #endif /* gxfont0c_INCLUDED */
59