annotate libass/ass_fontconfig.h @ 22506:72fbf66a9429

add vcd:// for win32, patch by zuxy meng split up into the following commits r22523, r22524, r22526
author compn
date Mon, 12 Mar 2007 15:48:13 +0000
parents 62bd8e0d3a0f
children 3f0d00abc073
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20008
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
1 // -*- c-basic-offset: 8; indent-tabs-mode: t -*-
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
2 // vim:ts=8:sw=8:noet:ai:
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
3 /*
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
4 Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
5
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
6 This program is free software; you can redistribute it and/or modify
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
7 it under the terms of the GNU General Public License as published by
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
8 the Free Software Foundation; either version 2 of the License, or
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
9 (at your option) any later version.
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
10
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
11 This program is distributed in the hope that it will be useful,
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
14 GNU General Public License for more details.
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
15
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
16 You should have received a copy of the GNU General Public License
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
17 along with this program; if not, write to the Free Software
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
19 */
fa122b7c71c6 Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents: 18937
diff changeset
20
18937
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
21 #ifndef __ASS_FONTCONFIG_H__
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
22 #define __ASS_FONTCONFIG_H__
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
23
21351
c611dfc4cb85 If a glyph is not found in the current font, switch to another one.
eugeni
parents: 20008
diff changeset
24 #ifdef HAVE_FONTCONFIG
c611dfc4cb85 If a glyph is not found in the current font, switch to another one.
eugeni
parents: 20008
diff changeset
25 #include <fontconfig/fontconfig.h>
c611dfc4cb85 If a glyph is not found in the current font, switch to another one.
eugeni
parents: 20008
diff changeset
26 #endif
c611dfc4cb85 If a glyph is not found in the current font, switch to another one.
eugeni
parents: 20008
diff changeset
27
18937
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
28 typedef struct fc_instance_s fc_instance_t;
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
29
21460
62bd8e0d3a0f Open embedded fonts directly from memory.
eugeni
parents: 21458
diff changeset
30 fc_instance_t* fontconfig_init(ass_library_t* library, FT_Library ftlibrary, const char* family, const char* path);
18937
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
31 char* fontconfig_select(fc_instance_t* priv, const char* family, unsigned bold, unsigned italic, int* index);
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
32 void fontconfig_done(fc_instance_t* priv);
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
33
21351
c611dfc4cb85 If a glyph is not found in the current font, switch to another one.
eugeni
parents: 20008
diff changeset
34 #ifdef HAVE_FONTCONFIG
c611dfc4cb85 If a glyph is not found in the current font, switch to another one.
eugeni
parents: 20008
diff changeset
35 char* fontconfig_select_with_charset(fc_instance_t* priv, const char* family, unsigned bold, unsigned italic, int* index, FcCharSet* charset);
18937
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
36 #endif
9e95ac641e77 Initial libass release (without mencoder support).
eugeni
parents:
diff changeset
37
21351
c611dfc4cb85 If a glyph is not found in the current font, switch to another one.
eugeni
parents: 20008
diff changeset
38 #endif
c611dfc4cb85 If a glyph is not found in the current font, switch to another one.
eugeni
parents: 20008
diff changeset
39