Raise LIBASS_VERSION, forgotten in r31293.
[mplayer/glamo.git] / libass / ass_fontconfig.h
blobad5b9f0e46fe220b0b7d943f9eceedffd53313be
1 /*
2 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
4 * This file is part of libass.
6 * libass is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * libass is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with libass; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef LIBASS_FONTCONFIG_H
22 #define LIBASS_FONTCONFIG_H
24 #include <stdint.h>
25 #include "ass_types.h"
26 #include "ass.h"
27 #include <ft2build.h>
28 #include FT_FREETYPE_H
30 #ifdef CONFIG_FONTCONFIG
31 #include <fontconfig/fontconfig.h>
32 #endif
34 typedef struct fc_instance FCInstance;
36 FCInstance *fontconfig_init(ASS_Library *library,
37 FT_Library ftlibrary, const char *family,
38 const char *path, int fc, const char *config,
39 int update);
40 char *fontconfig_select(ASS_Library *library, FCInstance *priv,
41 const char *family, int treat_family_as_pattern,
42 unsigned bold, unsigned italic, int *index,
43 uint32_t code);
44 void fontconfig_done(FCInstance *priv);
45 int fontconfig_update(FCInstance *priv);
47 #endif /* LIBASS_FONTCONFIG_H */