Mercurial > mplayer.hg
annotate libass/ass_fontconfig.h @ 35073:cae3fc699368
Merge declaration and initialization.
author | reimar |
---|---|
date | Tue, 11 Sep 2012 21:23:00 +0000 |
parents | 88eebbbbd6a0 |
children |
rev | line source |
---|---|
20008
fa122b7c71c6
Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents:
18937
diff
changeset
|
1 /* |
26723 | 2 * Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com> |
3 * | |
26738
588ce97b44f2
Speak of libass instead of MPlayer in the libass license headers.
diego
parents:
26723
diff
changeset
|
4 * This file is part of libass. |
26723 | 5 * |
34011 | 6 * Permission to use, copy, modify, and distribute this software for any |
7 * purpose with or without fee is hereby granted, provided that the above | |
8 * copyright notice and this permission notice appear in all copies. | |
26723 | 9 * |
34011 | 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
26723 | 17 */ |
20008
fa122b7c71c6
Add copyright notice and vim/emacs comments to libass and vf_ass.c.
eugeni
parents:
18937
diff
changeset
|
18 |
25897
aaebaf255b23
Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents:
25535
diff
changeset
|
19 #ifndef LIBASS_FONTCONFIG_H |
aaebaf255b23
Consistently give all libass multiple inclusion guards a LIBASS_ prefix.
diego
parents:
25535
diff
changeset
|
20 #define LIBASS_FONTCONFIG_H |
18937 | 21 |
26138
74055622161d
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
25897
diff
changeset
|
22 #include <stdint.h> |
74055622161d
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
25897
diff
changeset
|
23 #include "ass_types.h" |
30200 | 24 #include "ass.h" |
26138
74055622161d
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
25897
diff
changeset
|
25 #include <ft2build.h> |
74055622161d
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
25897
diff
changeset
|
26 #include FT_FREETYPE_H |
74055622161d
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
25897
diff
changeset
|
27 |
27393 | 28 #ifdef CONFIG_FONTCONFIG |
21351
c611dfc4cb85
If a glyph is not found in the current font, switch to another one.
eugeni
parents:
20008
diff
changeset
|
29 #include <fontconfig/fontconfig.h> |
c611dfc4cb85
If a glyph is not found in the current font, switch to another one.
eugeni
parents:
20008
diff
changeset
|
30 #endif |
c611dfc4cb85
If a glyph is not found in the current font, switch to another one.
eugeni
parents:
20008
diff
changeset
|
31 |
30200 | 32 typedef struct fc_instance FCInstance; |
18937 | 33 |
30200 | 34 FCInstance *fontconfig_init(ASS_Library *library, |
35 FT_Library ftlibrary, const char *family, | |
36 const char *path, int fc, const char *config, | |
37 int update); | |
38 char *fontconfig_select(ASS_Library *library, FCInstance *priv, | |
39 const char *family, int treat_family_as_pattern, | |
40 unsigned bold, unsigned italic, int *index, | |
41 uint32_t code); | |
42 void fontconfig_done(FCInstance *priv); | |
43 int fontconfig_update(FCInstance *priv); | |
18937 | 44 |
30200 | 45 #endif /* LIBASS_FONTCONFIG_H */ |