| 1 |
/* |
| 2 |
* |
| 3 |
* Copyright 1999 SuSE, Inc. |
| 4 |
* |
| 5 |
* Permission to use, copy, modify, distribute, and sell this software and its |
| 6 |
* documentation for any purpose is hereby granted without fee, provided that |
| 7 |
* the above copyright notice appear in all copies and that both that |
| 8 |
* copyright notice and this permission notice appear in supporting |
| 9 |
* documentation, and that the name of SuSE not be used in advertising or |
| 10 |
* publicity pertaining to distribution of the software without specific, |
| 11 |
* written prior permission. SuSE makes no representations about the |
| 12 |
* suitability of this software for any purpose. It is provided "as is" |
| 13 |
* without express or implied warranty. |
| 14 |
* |
| 15 |
* SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL |
| 16 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE |
| 17 |
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 18 |
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
| 19 |
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
| 20 |
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 21 |
* |
| 22 |
* Author: Keith Packard, SuSE, Inc. |
| 23 |
*/ |
| 24 |
|
| 25 |
#include <X11/Xdefs.h> |
| 26 |
#include <X11/fonts/font.h> |
| 27 |
#include <X11/fonts/fontxlfd.h> |
| 28 |
#include <X11/fonts/fntfil.h> |
| 29 |
#include <X11/fonts/fntfilio.h> |
| 30 |
#include <X11/fonts/fntfilst.h> |
| 31 |
|
| 32 |
typedef struct _BuiltinFile { |
| 33 |
const char *name; |
| 34 |
int len; |
| 35 |
const char *bits; |
| 36 |
} BuiltinFileRec, *BuiltinFilePtr; |
| 37 |
|
| 38 |
typedef struct _BuiltinDir { |
| 39 |
const char *file_name; |
| 40 |
char *font_name; |
| 41 |
} BuiltinDirRec, *BuiltinDirPtr; |
| 42 |
|
| 43 |
typedef struct _BuiltinAlias { |
| 44 |
char *alias_name; |
| 45 |
char *font_name; |
| 46 |
} BuiltinAliasRec, *BuiltinAliasPtr; |
| 47 |
|
| 48 |
extern const BuiltinFileRec builtin_files[]; |
| 49 |
extern const int builtin_files_count; |
| 50 |
|
| 51 |
extern const BuiltinDirRec builtin_dir[]; |
| 52 |
extern const int builtin_dir_count; |
| 53 |
|
| 54 |
extern const BuiltinAliasRec builtin_alias[]; |
| 55 |
extern const int builtin_alias_count; |
| 56 |
|
| 57 |
extern FontFilePtr BuiltinFileOpen (const char *); |
| 58 |
extern int BuiltinFileClose (BufFilePtr, int); |
| 59 |
extern int BuiltinReadDirectory (const char *, FontDirectoryPtr *); |
| 60 |
extern void BuiltinRegisterFontFileFunctions (void); |
| 61 |
|
| 62 |
extern void BuiltinRegisterFpeFunctions (void); |