1 /* Copyright (C) 1995, 1998 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: icfontab.c,v 1.4 2002/02/21 22:24:53 giles Exp $ */
18 /* Table of compiled fonts */
19 #include "ccfont.h"
20
21 /*
22 * This is compiled separately and linked with the fonts themselves,
23 * in a shared library when applicable.
24 */
25
26 #undef font_
27 #define font_(fname, fproc, zfproc) extern ccfont_proc(fproc);
28 #ifndef GCONFIGF_H
29 # include "gconfigf.h"
30 #else
31 # include GCONFIGF_H
32 #endif
33
34 private const ccfont_fproc fprocs[] = {
35 #undef font_
36 #define font_(fname, fproc, zfproc) fproc, /* fname, zfproc are not needed */
37 #ifndef GCONFIGF_H
38 # include "gconfigf.h"
39 #else
40 # include GCONFIGF_H
41 #endif
42 0
43 };
44
45 int
ccfont_fprocs(int * pnum_fprocs,const ccfont_fproc ** pfprocs)46 ccfont_fprocs(int *pnum_fprocs, const ccfont_fproc ** pfprocs)
47 {
48 *pnum_fprocs = countof(fprocs) - 1;
49 *pfprocs = &fprocs[0];
50 return ccfont_version; /* for compatibility checking */
51 }
52