~alcinnz/fontconfig-pure

ref: b4f50b899d7bdc31953ee467b88ba795596635d1 fontconfig-pure/cbits/pattern.c -rw-r--r-- 609 bytes
b4f50b89 — Adrian Cochrane Correct FcConfig memory handling & exception throwing. 2 years ago
                                                                                
24a77a5f Adrian Cochrane
21f288ec Adrian Cochrane
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
#include <fontconfig/fontconfig.h>

int my_FcCHARSET_MAP_SIZE() {
    return FC_CHARSET_MAP_SIZE;
}

FcBool my_FcPatternAdd(FcPattern *p, const char *object,
        FcBool binding, FcBool append, FcValue *value) {
    if (binding) {
        return FcPatternAdd(p, object, *value, append);
    } else {
        return FcPatternAddWeak(p, object, *value, append);
    }
}

int size_value() {
    return sizeof(FcValue);
}
int size_matrix() {
    return sizeof(FcMatrix);
}
int size_PatternIter() {
    return sizeof(FcPatternIter);
}

int size_ConfigFileInfoIter() {
    return sizeof(FcConfigFileInfoIter);
}