summaryrefslogtreecommitdiff
blob: e0d8f8f09d111b01212f6032a988c79dde9a8af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- xc/lib/Xft/Xft.h.orig	2002-10-02 00:40:59.000000000 +0200
+++ xc/lib/Xft/Xft.h	2002-10-02 00:35:07.000000000 +0200
@@ -108,6 +108,51 @@
 
 typedef FcValue	XftValue;
 
+/*
+ * Unfortunately Xft-1.1 is not 100% compadible with
+ * Xft-1.0, as it do not define its internal workings
+ * publically.  We thus add this tempory hack until
+ * pango and co change to work with this without
+ * patching.
+ *
+ * The following is taken from fcint.h from the
+ * fontconfig package.
+ *
+ * <azarah@gentoo.org> (02 Oct 2002)
+ * 
+ */
+
+#undef FcValueBinding
+#undef FcValueList
+#undef FcPatternElt
+#undef FcPattern
+
+typedef enum _FcValueBinding {
+    FcValueBindingWeak, FcValueBindingStrong
+} FcValueBinding;
+
+typedef struct _FcValueList {
+    struct _FcValueList    *next;
+    FcValue         value;
+    FcValueBinding      binding;
+} FcValueList;
+
+typedef struct _FcPatternElt {
+    const char      *object;
+    FcValueList     *values;
+} FcPatternElt;
+
+
+struct _FcPattern {
+    int         num;
+    int         size;
+    FcPatternElt    *elts;
+    int         ref;
+};
+
+/*
+ * End of Gentoo hack
+ */
 
 typedef FcPattern XftPattern;