1 /* Copyright (C) 1995, 1998 artofcode LLC. All rights reserved.
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU General Public License as published by the
5 Free Software Foundation; either version 2 of the License, or (at your
6 option) any later version.
7
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
12
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 59 Temple Place, Suite 330, Boston, MA, 02111-1307.
16
17 */
18
19 /*$Id: icfontab.c,v 1.2.6.1.2.1 2003/01/17 00:49:04 giles Exp $ */
20 /* Table of compiled fonts */
21 #include "ccfont.h"
22
23 /*
24 * This is compiled separately and linked with the fonts themselves,
25 * in a shared library when applicable.
26 */
27
28 #undef font_
29 #define font_(fname, fproc, zfproc) extern ccfont_proc(fproc);
30 #ifndef GCONFIGF_H
31 # include "gconfigf.h"
32 #else
33 # include GCONFIGF_H
34 #endif
35
36 private const ccfont_fproc fprocs[] = {
37 #undef font_
38 #define font_(fname, fproc, zfproc) fproc, /* fname, zfproc are not needed */
39 #ifndef GCONFIGF_H
40 # include "gconfigf.h"
41 #else
42 # include GCONFIGF_H
43 #endif
44 0
45 };
46
47 int
ccfont_fprocs(int * pnum_fprocs,const ccfont_fproc ** pfprocs)48 ccfont_fprocs(int *pnum_fprocs, const ccfont_fproc ** pfprocs)
49 {
50 *pnum_fprocs = countof(fprocs) - 1;
51 *pfprocs = &fprocs[0];
52 return ccfont_version; /* for compatibility checking */
53 }
54