Disallow the modification of teletext properties when the tv demuxer is
[mplayer/greg.git] / libass / ass_fontconfig.h
blobe9a1ce15674eba81155a47400e90e90220ae3559
1 // -*- c-basic-offset: 8; indent-tabs-mode: t -*-
2 // vim:ts=8:sw=8:noet:ai:
3 /*
4 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
6 * This file is part of libass.
8 * libass is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * libass is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with libass; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef LIBASS_FONTCONFIG_H
24 #define LIBASS_FONTCONFIG_H
26 #include <stdint.h>
27 #include "ass_types.h"
28 #include <ft2build.h>
29 #include FT_FREETYPE_H
31 #ifdef CONFIG_FONTCONFIG
32 #include <fontconfig/fontconfig.h>
33 #endif
35 typedef struct fc_instance_s fc_instance_t;
37 fc_instance_t* fontconfig_init(ass_library_t* library, FT_Library ftlibrary, const char* family, const char* path, int fc);
38 char* fontconfig_select(fc_instance_t* priv, const char* family, unsigned bold, unsigned italic, int* index, uint32_t code);
39 void fontconfig_done(fc_instance_t* priv);
41 #endif /* LIBASS_FONTCONFIG_H */