comparison libass/ass_font.h @ 21321:7b7627ff1937

Move ass_font_desc_t and ass_font_t declarations to ass_font.h.
author eugeni
date Mon, 27 Nov 2006 17:50:05 +0000
parents dcfd069efd8f
children 578fc5ca6a4f
comparison
equal deleted inserted replaced
21320:4a7e96f1eebf 21321:7b7627ff1937
24 #include <ft2build.h> 24 #include <ft2build.h>
25 #include FT_FREETYPE_H 25 #include FT_FREETYPE_H
26 #include FT_STROKER_H 26 #include FT_STROKER_H
27 #include FT_GLYPH_H 27 #include FT_GLYPH_H
28 28
29 #include "ass_bitmap.h" 29 typedef struct ass_font_desc_s {
30 #include "ass_cache.h" 30 char* family;
31 unsigned bold;
32 unsigned italic;
33 } ass_font_desc_t;
34
35 typedef struct ass_font_s {
36 ass_font_desc_t desc;
37 char* path;
38 int index;
39 FT_Face face;
40 FT_Matrix m; // current transformation
41 FT_Vector v; // current shift
42 int size;
43 } ass_font_t;
31 44
32 ass_font_t* ass_font_new(FT_Library ftlibrary, void* fc_priv, ass_font_desc_t* desc); 45 ass_font_t* ass_font_new(FT_Library ftlibrary, void* fc_priv, ass_font_desc_t* desc);
33 void ass_font_set_transform(ass_font_t* font, FT_Matrix* m, FT_Vector* v); 46 void ass_font_set_transform(ass_font_t* font, FT_Matrix* m, FT_Vector* v);
34 void ass_font_set_size(ass_font_t* font, int size); 47 void ass_font_set_size(ass_font_t* font, int size);
35 FT_Glyph ass_font_get_glyph(void* fontconfig_priv, ass_font_t* font, uint32_t ch); 48 FT_Glyph ass_font_get_glyph(void* fontconfig_priv, ass_font_t* font, uint32_t ch);