10l: comparison of char* ptrs with string literals
[mplayer.git] / libass / ass_fontconfig.h
bloba296bcef3eba3fb96d84e6162d24f08505f20d2e
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 program 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 This program 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
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __ASS_FONTCONFIG_H__
22 #define __ASS_FONTCONFIG_H__
24 #ifdef HAVE_FONTCONFIG
25 #include <fontconfig/fontconfig.h>
26 #endif
28 typedef struct fc_instance_s fc_instance_t;
30 fc_instance_t* fontconfig_init(ass_library_t* library, FT_Library ftlibrary, const char* family, const char* path);
31 char* fontconfig_select(fc_instance_t* priv, const char* family, unsigned bold, unsigned italic, int* index);
32 void fontconfig_done(fc_instance_t* priv);
34 #ifdef HAVE_FONTCONFIG
35 char* fontconfig_select_with_charset(fc_instance_t* priv, const char* family, unsigned bold, unsigned italic, int* index, FcCharSet* charset);
36 #endif
38 #endif