Skip to content

Commit

Permalink
Remove loadable renderer support.
Browse files Browse the repository at this point in the history
  • Loading branch information
nwnk committed Jan 21, 2009
1 parent 423d0a2 commit 732191d
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 72 deletions.
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ libXfontinclude_HEADERS = \
include/X11/fonts/fntfilst.h \
include/X11/fonts/fontencc.h \
include/X11/fonts/fontmisc.h \
include/X11/fonts/fontmod.h \
include/X11/fonts/fontshow.h \
include/X11/fonts/fontutil.h \
include/X11/fonts/fontxlfd.h \
Expand Down
8 changes: 0 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,6 @@ if test "x$XFONT_FONTFILE" = xyes; then
AC_DEFINE(XFONT_FONTFILE,1,[Support fonts in files])
fi

AC_ARG_ENABLE(loadable-font-modules,
AC_HELP_STRING([--disable-loadable-font-modules],
[support dynamically loaded font modules (default is enabled)]),
[LOADABLE_FONTS=$enableval], [LOADABLE_FONTS=yes])
if test "x$LOADABLE_FONTS" = xyes; then
AC_DEFINE(LOADABLEFONTS,1,[Support dynamically loaded font modules])
fi

#
# Support connection to font servers?
#
Expand Down
16 changes: 0 additions & 16 deletions include/X11/fonts/fontmod.h

This file was deleted.

33 changes: 2 additions & 31 deletions src/fontfile/ffcheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ in this Software without prior written authorization from The Open Group.
#endif
#include <X11/fonts/fntfilst.h>
#include <X11/fonts/bitmap.h>
#include <X11/fonts/fontmod.h>

/*
* Map FPE functions to renderer functions
Expand Down Expand Up @@ -114,46 +113,18 @@ FontFileCheckListNextFontOrAlias(pointer client, FontPathElementPtr fpe,
return BadFontName;
}

/* Font renderers to initialize when not linked into something like
Xorg that provides its own module configuration options */
static const FontModule builtinFontModuleList[] = {
#ifdef XFONT_FREETYPE
{
FreeTypeRegisterFontFileFunctions,
"freetype",
NULL
},
#endif
/* List terminator - must be last entry */
{ NULL, NULL, NULL }
};

void
FontFileCheckRegisterFpeFunctions (void)
{
const FontModule *fmlist = builtinFontModuleList;

#ifdef XFONT_BITMAP
/* bitmap is always builtin to libXfont now */
BitmapRegisterFontFileFunctions ();
#endif

#ifdef LOADABLEFONTS
if (FontModuleList) {
fmlist = FontModuleList;
}
#ifdef XFONT_FREETYPE
FreeTypeRegisterFontFileFunctions();
#endif

if (fmlist) {
int i;

for (i = 0; fmlist[i].name; i++) {
if (fmlist[i].initFunc) {
fmlist[i].initFunc();
}
}
}

RegisterFPEFunctions(FontFileNameCheck,
FontFileInitFPE,
FontFileFreeFPE,
Expand Down
1 change: 0 additions & 1 deletion src/fontfile/register.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ in this Software without prior written authorization from The Open Group.
#include <X11/fonts/fontmisc.h>
#include <X11/fonts/fntfilst.h>
#include <X11/fonts/bitmap.h>
#include <X11/fonts/fontmod.h>

/*
* Translate monolithic build symbols to modular build symbols.
Expand Down
1 change: 0 additions & 1 deletion src/stubs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ libstubs_la_SOURCES = \
errorf.c \
fatalerror.c \
findoldfnt.c \
fontmod.c \
getcres.c \
getdefptsize.c \
getnewfntcid.c \
Expand Down
14 changes: 0 additions & 14 deletions src/stubs/fontmod.c

This file was deleted.

0 comments on commit 732191d

Please # to comment.