Move fonts-related code to a separate file.
[mplayer.git] / libass / ass_cache.h
index 107da73..4fd5f79 100644 (file)
@@ -38,10 +38,13 @@ typedef struct ass_font_s {
        char* path;
        int index;
        FT_Face face;
+       FT_Matrix m; // current transformation
+       FT_Vector v; // current shift
+       int size;
 } ass_font_t;
 
 void ass_font_cache_init(void);
-int ass_new_font(FT_Library library, void* fontconfig_priv, ass_font_desc_t* desc, /*out*/ FT_Face* face);
+ass_font_t* ass_new_font(FT_Library library, void* fontconfig_priv, ass_font_desc_t* desc);
 void ass_font_cache_done(void);