1 // -*- c-basic-offset: 8; indent-tabs-mode: t -*-
2 // vim:ts=8:sw=8:noet:ai:
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
27 #include "ass_types.h"
29 #include FT_FREETYPE_H
31 #ifdef CONFIG_FONTCONFIG
32 #include <fontconfig/fontconfig.h>
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
, int treat_family_as_pattern
, unsigned bold
, unsigned italic
, int* index
, uint32_t code
);
39 void fontconfig_done(fc_instance_t
* priv
);
41 #endif /* LIBASS_FONTCONFIG_H */