*/
#define FC_MAJOR 2
-#define FC_MINOR 2
-#define FC_REVISION 98
+#define FC_MINOR 3
+#define FC_REVISION 2
#define FC_VERSION ((FC_MAJOR * 10000) + (FC_MINOR * 100) + (FC_REVISION))
#define FC_DPI "dpi" /* double */
#define FC_RGBA "rgba" /* Int */
#define FC_MINSPACE "minspace" /* Bool use minimum line spacing */
-#define FC_SOURCE "source" /* String (X11, freetype) */
+#define FC_SOURCE "source" /* String (deprecated) */
#define FC_CHARSET "charset" /* CharSet */
#define FC_LANG "lang" /* String RFC 3066 langs */
#define FC_FONTVERSION "fontversion" /* Int from 'head' table */
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 struct _FcObjectPtr {
+ FcStorage storage;
+ union {
+ int stat;
+ const FcChar8 * dyn;
+ } u;
+ FcChar32 hash;
+} FcObjectPtr;
+
typedef struct _FcValue {
FcType type;
union {
- const FcChar8 *s;
+ FcObjectPtr si;
int i;
FcBool b;
double d;
- const FcMatrix *m;
- const FcCharSet *c;
+ FcMatrixPtr mi;
+ FcCharSetPtr ci;
void *f;
const FcPattern *p;
- const FcLangSet *l;
+ FcLangSetPtr li;
} u;
} FcValue;
typedef struct _FcObjectSet {
int nobject;
int sobject;
- const char **objects;
+ FcObjectPtr *objects;
} FcObjectSet;
typedef enum _FcMatchKind {
void
FcMatrixShear (FcMatrix *m, double sh, double sv);
+FcMatrix *
+FcMatrixPtrU (FcMatrixPtr mi);
+
/* fcname.c */
FcBool