← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 373917] Re: Freetype module does not exist

 

FWIW, I have no file "/usr/lib/xorg/modules/fonts/libfreetype.so" but I
do have "/usr/lib/libfreetype.so" and the latter ships in
libfreetype6-dev package. Also, I ran "grep freetype" in savage source
package and that returned nothing. However, searching through the
xserver sources does return a bunch of hits for "freetype" (including
some in the changelog). One thing that changed between intrepid and
jaunty is that the X server build dependency on the libfreetype6-dev was
dropped.

I looked momentarily at this X server code:

    /* Process list of font backends separately to include only required ones */
    elist = LoaderListDirs(fsubdirs, NULL);
    if (elist) {
        for (el = elist; *el; el++) {
            XF86LoadPtr module;

            module = xf86confcalloc(1, sizeof(XF86LoadRec));
            module->load_name = *el;

            /* Add only those font backends which are referenced by fontpath */
            /* 'strstr(dFP,"/dir")' is meant as 'dFP =~ m(/dir\W)' */
            if (defaultFontPath && (
                (strcmp(*el, "freetype")  == 0 &&
                 strstr(defaultFontPath, "/TTF")) ||
                (strcmp(*el, "type1")  == 0 &&
                 strstr(defaultFontPath, "/Type1")))) 
                ptr->mod_load_lst = (XF86LoadPtr)xf86addListItem(
                                        (glp)ptr->mod_load_lst, (glp)module);
        }
        xfree(elist);
    }

Previously in the X server code the following definition has been made:

    const char *fsubdirs[] = {
        "fonts",
        NULL
    };

This didn't really ring a bell though... you're of course free to dig
around some yourself if you want. Maybe put some breakpoints in there
and see if you want figure out what's going on. It will be interesting
to see your xorg.conf/log as well I suppose...

-- 
Freetype module does not exist
https://bugs.launchpad.net/bugs/373917
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-video-savage in ubuntu.



References