Relicense to ISC
[libass.git] / libass / ass_fontconfig.h
blob396fb72d0d3c5e15dd82437d8a1c731b6bfc589f
1 /*
2 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
4 * This file is part of libass.
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 #ifndef LIBASS_FONTCONFIG_H
20 #define LIBASS_FONTCONFIG_H
22 #include <stdint.h>
23 #include "ass_types.h"
24 #include "ass.h"
25 #include <ft2build.h>
26 #include FT_FREETYPE_H
28 #ifdef CONFIG_FONTCONFIG
29 #include <fontconfig/fontconfig.h>
30 #endif
32 typedef struct fc_instance FCInstance;
34 FCInstance *fontconfig_init(ASS_Library *library,
35 FT_Library ftlibrary, const char *family,
36 const char *path, int fc, const char *config,
37 int update);
38 char *fontconfig_select(ASS_Library *library, FCInstance *priv,
39 const char *family, int treat_family_as_pattern,
40 unsigned bold, unsigned italic, int *index,
41 uint32_t code);
42 void fontconfig_done(FCInstance *priv);
43 int fontconfig_update(FCInstance *priv);
45 #endif /* LIBASS_FONTCONFIG_H */