67
67
FontFilePtr /* file */ );
68
68
} BitmapFileFunctionsRec, *BitmapFileFunctionsPtr;
70
static int BitmapGetRenderIndex(FontRendererPtr renderer);
72
73
* the readers[] and renderers[] arrays must be in the same order,
77
78
#if XFONT_PCFFORMAT
78
79
{ pcfReadFont, pcfReadFontInfo} ,
79
80
{ pcfReadFont, pcfReadFontInfo} ,
80
#ifdef X_GZIP_FONT_COMPRESSION
81
{ pcfReadFont, pcfReadFontInfo} ,
81
# ifdef X_GZIP_FONT_COMPRESSION
82
{ pcfReadFont, pcfReadFontInfo} ,
84
# ifdef X_BZIP2_FONT_COMPRESSION
85
{ pcfReadFont, pcfReadFontInfo} ,
84
88
#if XFONT_SNFFORMAT
85
89
{ snfReadFont, snfReadFontInfo},
86
90
{ snfReadFont, snfReadFontInfo},
87
#ifdef X_GZIP_FONT_COMPRESSION
88
{ snfReadFont, snfReadFontInfo} ,
91
# ifdef X_GZIP_FONT_COMPRESSION
92
{ snfReadFont, snfReadFontInfo} ,
94
# ifdef X_BZIP2_FONT_COMPRESSION
95
{ snfReadFont, snfReadFontInfo} ,
91
98
#if XFONT_BDFFORMAT
92
99
{ bdfReadFont, bdfReadFontInfo} ,
93
100
{ bdfReadFont, bdfReadFontInfo} ,
94
#ifdef X_GZIP_FONT_COMPRESSION
95
{ bdfReadFont, bdfReadFontInfo} ,
99
{ pmfReadFont, pcfReadFontInfo} ,
101
# ifdef X_GZIP_FONT_COMPRESSION
102
{ bdfReadFont, bdfReadFontInfo} ,
104
# ifdef X_BZIP2_FONT_COMPRESSION
105
{ bdfReadFont, bdfReadFontInfo} ,
177
184
{ ".pcf.Z", 6, BitmapOpenBitmap, BitmapOpenScalable,
178
185
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
180
#ifdef X_GZIP_FONT_COMPRESSION
187
# ifdef X_GZIP_FONT_COMPRESSION
182
BitmapOpenBitmap, BitmapOpenScalable,
183
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
189
BitmapOpenBitmap, BitmapOpenScalable,
190
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
193
# ifdef X_BZIP2_FONT_COMPRESSION
195
BitmapOpenBitmap, BitmapOpenScalable,
196
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
187
200
#if XFONT_SNFFORMAT
188
201
{ ".snf", 4, BitmapOpenBitmap, BitmapOpenScalable,
191
204
{ ".snf.Z", 6, BitmapOpenBitmap, BitmapOpenScalable,
192
205
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
194
#ifdef X_GZIP_FONT_COMPRESSION
207
# ifdef X_GZIP_FONT_COMPRESSION
195
208
{ ".snf.gz", 7, BitmapOpenBitmap, BitmapOpenScalable,
196
209
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
212
# ifdef X_BZIP2_FONT_COMPRESSION
213
{ ".snf.bz2", 8, BitmapOpenBitmap, BitmapOpenScalable,
214
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
200
218
#if XFONT_BDFFORMAT
201
219
{ ".bdf", 4, BitmapOpenBitmap, BitmapOpenScalable,
204
222
{ ".bdf.Z", 6, BitmapOpenBitmap, BitmapOpenScalable,
205
223
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
207
#ifdef X_GZIP_FONT_COMPRESSION
225
# ifdef X_GZIP_FONT_COMPRESSION
208
226
{ ".bdf.gz", 7, BitmapOpenBitmap, BitmapOpenScalable,
209
227
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
214
{ ".pmf", 4, BitmapOpenBitmap, BitmapOpenScalable,
230
# ifdef X_BZIP2_FONT_COMPRESSION
231
{ ".bdf.bz2", 8, BitmapOpenBitmap, BitmapOpenScalable,
215
232
BitmapGetInfoBitmap, BitmapGetInfoScalable, 0,
233
251
* the font info reader, and the bitmap scaling routine. All users
234
252
* of this routine must be kept in step with the renderer array.
237
255
BitmapGetRenderIndex(FontRendererPtr renderer)
239
257
return renderer - renderers;