~alcinnz/fontconfig-pure

ref: a7c384b2408f2a512ecaee9d1287a9bbf5d41290 fontconfig-pure/cbits/fontconfig-wrap.h -rw-r--r-- 2.3 KiB
a7c384b2 — Adrian Cochrane Improve handling of invalid FontConfig data. 6 months ago
                                                                                
bea597e7 Adrian Cochrane
9aee49dd Adrian Cochrane
bea597e7 Adrian Cochrane
9aee49dd Adrian Cochrane
bea597e7 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
29
30
31
32
33
34
35
36
37
38
39
#include <fontconfig/fontconfig.h>
#include <fontconfig/fcfreetype.h>
#include <stdint.h>
#include <stdbool.h>

int fcPatternEqualSubset(uint8_t *data, size_t length);
uint8_t *fcDefaultSubstitute(uint8_t *data, size_t in_length, size_t *length);
uint8_t *fcNameParse(char *name, size_t *length);
char *fcNameUnparse(uint8_t *data, size_t length);
char *fcNameFormat(uint8_t *data, size_t length, char *format);
uint8_t *fcFontSetList(FcConfig *config, uint8_t *sets, size_t sets_length,
        uint8_t *pat, size_t pat_length, uint8_t *objects, size_t objs_length, size_t *length);
uint8_t *fcFontSetMatch(FcConfig *config, uint8_t *sets, size_t sets_length,
        uint8_t *pat, size_t pat_length, size_t *length);
uint8_t *fcFontSetSort(FcConfig *config, uint8_t *sets, size_t sets_length,
        uint8_t *pat, size_t pat_length, bool trim, size_t *length);
unsigned int fcFreeTypeCharIndex(FT_Face *face, uint32_t ucs4);
uint8_t *fcFreeTypeCharSet(FT_Face *face, size_t *length);
uint8_t *fcFreeTypeCharSetAndSpacing(FT_Face *face, size_t *length);
uint8_t *fcFreeTypeQuery(char *file, int id, size_t *length);
uint8_t *fcFreeTypeQueryAll(char *file, size_t *length);
uint8_t *fcFreeTypeQueryFace(FT_Face *face, char *file, int id, size_t *length);
int fcLangSetCompare(uint8_t *langset, size_t length);
int fcLangSetHasLang(uint8_t *langset, size_t length, const char *lang);
uint8_t *fcGetDefaultLangs(size_t *length);
uint8_t *fcGetLangs(size_t *length);
char *fcLangNormalize(char *lang);
uint8_t *fcLangGetCharSet(const char *lang, size_t *length);
uint8_t *fcConfigGetConfigDirs(FcConfig *conf, size_t *length);
uint8_t *fcConfigGetFontDirs(FcConfig *conf, size_t *length);
uint8_t *fcConfigGetConfigFiles(FcConfig *conf, size_t *length);
uint8_t *fcConfigGetCacheDirs(FcConfig *conf, size_t *length);
uint8_t *fcConfigGetFonts(FcConfig *conf, bool system, size_t *length);
uint8_t *fcConfigSubstituteWithPat(FcConfig *conf, uint8_t *data, size_t in_length, bool isFont, size_t *length);
uint8_t *fcFontMatch(FcConfig *conf, uint8_t *data, size_t in_length, size_t *length);
uint8_t *fcFontSort(FcConfig *conf, uint8_t *data, size_t in_length, bool trim, size_t *length);
uint8_t *fcFontRenderPrepare(FcConfig *conf, uint8_t *data, size_t in_length, size_t *length);
uint8_t *fcFontList(FcConfig *conf, uint8_t *data, size_t in_length, size_t *length);