annotate libass/ass_font.h @ 21277:0603972f083c

Move fonts-related code to a separate file.
author eugeni
date Sun, 26 Nov 2006 22:49:27 +0000
parents
children dcfd069efd8f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21277
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
1 // -*- c-basic-offset: 8; indent-tabs-mode: t -*-
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
2 // vim:ts=8:sw=8:noet:ai:
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
3 /*
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
4 Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
5
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
6 This program is free software; you can redistribute it and/or modify
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
8 the Free Software Foundation; either version 2 of the License, or
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
9 (at your option) any later version.
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
10
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
11 This program is distributed in the hope that it will be useful,
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
14 GNU General Public License for more details.
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
15
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
17 along with this program; if not, write to the Free Software
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
18 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
19 */
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
20
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
21 #ifndef __ASS_FONT_H__
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
22 #define __ASS_FONT_H__
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
23
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
24 #include <ft2build.h>
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
25 #include FT_FREETYPE_H
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
26 #include FT_STROKER_H
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
27 #include FT_GLYPH_H
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
28
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
29 #include "ass_bitmap.h"
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
30 #include "ass_cache.h"
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
31
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
32 int ass_font_init(FT_Library ftlibrary, void* fc_priv, ass_font_t* font, ass_font_desc_t* desc);
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
33 void ass_font_set_transform(ass_font_t* font, FT_Matrix* m, FT_Vector* v);
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
34 void ass_font_set_size(ass_font_t* font, int size);
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
35 FT_Glyph ass_font_get_glyph(void* fontconfig_priv, ass_font_t* font, uint32_t ch);
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
36 void ass_font_free(ass_font_t* font);
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
37
0603972f083c Move fonts-related code to a separate file.
eugeni
parents:
diff changeset
38 #endif