summaryrefslogtreecommitdiff
path: root/pango/pangoxft-fontmap.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2001-01-03 10:45:12 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-01-03 10:45:12 +0000
commitd5b358fe3e5123842533ea445460d8a337eced5d (patch)
treec51bb9232a7933ca280f68737a0c60b4c9b11250 /pango/pangoxft-fontmap.c
parentdc23b8bf572adc64cb57be39fdaf02732e50bb72 (diff)
downloadpango-d5b358fe3e5123842533ea445460d8a337eced5d.tar.gz
Update the default list of included modules for
2001-01-03 Alexander Larsson <alexl@redhat.com> * configure.in: Update the default list of included modules for --with-included-modules=yes to include all new modules. Split INCLUDED_MODULES and module-defs.c into per shaper engine type lists. * modules/arabic/Makefile.am: Build libpango-arabic-xft.la if INCLUDE_ARABIC_XFT. * modules/arabic/arabic-xft.c: Change module prefix to _pango_arabic_xft_ * modules/basic/Makefile.am: Build static libs for all included modules. * modules/basic/basic-ft2.c: Change module prefix to _pango_basic_ft2_ * modules/basic/basic-xft.c: Change module prefix to _pango_basic_xft_ * pango/Makefile.am: Include correct module-defs-XXX in libs. * pango/modules.h: Split _pango_included_modules[] into separate lists. * pango/pangox.c: * pango/pangoft2.c: * pango/pangoxft-fontmap.c: Register built in modules.
Diffstat (limited to 'pango/pangoxft-fontmap.c')
-rw-r--r--pango/pangoxft-fontmap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pango/pangoxft-fontmap.c b/pango/pangoxft-fontmap.c
index df1e31f7..ce81ba4d 100644
--- a/pango/pangoxft-fontmap.c
+++ b/pango/pangoxft-fontmap.c
@@ -22,6 +22,7 @@
#include "pango-fontmap.h"
#include "pangoxft.h"
#include "pangoxft-private.h"
+#include "modules.h"
#include "X11/Xft/XftFreetype.h"
@@ -183,9 +184,19 @@ pango_xft_get_context (Display *display,
int screen)
{
PangoContext *result;
+ int i;
+ static gboolean registered_modules = FALSE;
g_return_val_if_fail (display != NULL, NULL);
+ if (!registered_modules)
+ {
+ registered_modules = TRUE;
+
+ for (i = 0; _pango_included_xft_modules[i].list; i++)
+ pango_module_register (&_pango_included_xft_modules[i]);
+ }
+
result = pango_context_new ();
pango_context_add_font_map (result, pango_xft_get_font_map (display, screen));