diff options
Diffstat (limited to 'src/fontfile/register.c')
-rw-r--r-- | src/fontfile/register.c | 44 |
1 files changed, 34 insertions, 10 deletions
diff --git a/src/fontfile/register.c b/src/fontfile/register.c index dd4a04b..cb74c7c 100644 --- a/src/fontfile/register.c +++ b/src/fontfile/register.c @@ -35,7 +35,10 @@ in this Software without prior written authorization from The Open Group. #ifdef HAVE_CONFIG_H #include <config.h> +#else +#define XFONT_BITMAP 1 #endif + #include <X11/fonts/fontmisc.h> #include <X11/fonts/fntfilst.h> #include <X11/fonts/bitmap.h> @@ -44,29 +47,50 @@ in this Software without prior written authorization from The Open Group. #include <X11/fonts/fontmod.h> #endif +/* + * Translate monolithic build symbols to modular build symbols. + * I chose to make the modular symbols 'canonical' because they + * are prefixed with XFONT_, neatly avoiding name collisions + * with other packages. + */ + +#ifndef CRAY +# ifdef BUILD_SPEEDO +# define XFONT_SPEEDO 1 +# endif +# ifdef BUILD_TYPE1 +# define XFONT_TYPE1 1 +# endif +#endif + +#ifdef BUILD_CID +# define XFONT_CID 1 +#endif +#ifdef BUILD_FREETYPE +# define XFONT_FREETYPE 1 +#endif + void FontFileRegisterFpeFunctions(void) { #ifndef LOADABLEFONTS - BitmapRegisterFontFileFunctions (); - -#ifndef CRAY -#ifdef BUILD_SPEEDO +#ifdef XFONT_BITMAP + BitmapRegisterFontFileFunctions (); +#endif +#ifdef XFONT_SPEEDO SpeedoRegisterFontFileFunctions (); #endif -#ifdef BUILD_TYPE1 +#ifdef XFONT_TYPE1 Type1RegisterFontFileFunctions(); #endif -#endif -#ifdef BUILD_CID +#ifdef XFONT_CID CIDRegisterFontFileFunctions(); #endif -#ifdef BUILD_FREETYPE +#ifdef XFONT_FREETYPE FreeTypeRegisterFontFileFunctions(); #endif - #else { int i; @@ -79,7 +103,7 @@ FontFileRegisterFpeFunctions(void) } } #endif - + FontFileRegisterLocalFpeFunctions (); } |