* it means multiple copies of the font information.
*/
-#define FC_CACHE_VERSION "1"
+#define FC_CACHE_VERSION "2"
#define FcTrue 1
#define FcFalse 0
FcResultOutOfMemory
} FcResult;
-typedef enum _FcStorage {
- FcStorageStatic, FcStorageDynamic
-} FcStorage;
-
typedef struct _FcPattern FcPattern;
typedef struct _FcLangSet FcLangSet;
-typedef struct _FcMatrixPtr {
- FcStorage storage;
- union {
- int stat;
- FcMatrix *dyn;
- } u;
-} FcMatrixPtr;
-
-typedef struct _FcCharSetPtr {
- FcStorage storage;
- union {
- int stat;
- FcCharSet *dyn;
- } u;
-} FcCharSetPtr;
-
-typedef struct _FcLangSetPtr {
- FcStorage storage;
- union {
- int stat;
- FcLangSet *dyn;
- } u;
-} FcLangSetPtr;
-
-typedef int FcObjectPtr;
+#define FC_BANK_DYNAMIC 0
+#define FC_BANK_FIRST 1
typedef struct _FcValue {
FcType type;
union {
- FcObjectPtr si;
+ const FcChar8 *s;
+ int s_off;
int i;
FcBool b;
double d;
- FcMatrixPtr mi;
- FcCharSetPtr ci;
+ const FcMatrix *m;
+ const FcCharSet *c;
+ int c_off;
void *f;
const FcPattern *p;
- FcLangSetPtr li;
+ const FcLangSet *l;
+ int l_off; // this is a difference of char *s
} u;
} FcValue;
typedef struct _FcObjectSet {
int nobject;
int sobject;
- FcObjectPtr *objects;
+ const char **objects;
} FcObjectSet;
typedef enum _FcMatchKind {
FcBool force);
FcBool
-FcDirSave (FcFontSet *set, FcStrSet *dirs, const FcChar8 *dir);
+FcDirSave (FcFontSet *set, const FcChar8 *dir);
/* fcfreetype.c */
FcPattern *
void
FcMatrixShear (FcMatrix *m, double sh, double sv);
-FcMatrix *
-FcMatrixPtrU (FcMatrixPtr mi);
-
/* fcname.c */
FcBool