+2005-10-25 Patrick Lam <plam@mit.edu>
+ * src/fcfreetype.c (FcFreeTypeQuery):
+
+ Only add basename to patterns' FC_FILE element, not any part of
+ the dirname.
+
2005-10-22 Patrick Lam <plam@mit.edu>
* src/fcfreetype.c:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <libgen.h>
#include "fcint.h"
#include <ft2build.h>
#include FT_FREETYPE_H
printf ("Saving unique fullname %s\n", full);
}
- if (!FcPatternAddString (pat, FC_FILE, file))
+ if (!FcPatternAddString (pat, FC_FILE, (FcChar8 *)basename((char *)file)))
goto bail1;
if (!FcPatternAddInteger (pat, FC_INDEX, id))