]> granicus.if.org Git - libass/commitdiff
Move ass_font_desc_t and ass_font_t declarations to ass_font.h.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 27 Nov 2006 17:50:05 +0000 (17:50 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 27 Nov 2006 17:50:05 +0000 (17:50 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21337 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_cache.h
libass/ass_font.c
libass/ass_font.h

index fb99e3418bd1e4335298731b89b312db60d04c90..12f4293458131390f89469250edd272c16cef159 100644 (file)
 #include FT_STROKER_H
 #include FT_GLYPH_H
 
-// font cache
-typedef struct ass_font_desc_s {
-       char* family;
-       unsigned bold;
-       unsigned italic;
-} ass_font_desc_t;
-
-typedef struct ass_font_s {
-       ass_font_desc_t desc;
-       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);
 ass_font_t* ass_font_cache_find(ass_font_desc_t* desc);
 void ass_font_cache_add(ass_font_t* font);
index 9f2d131b918be4c6f6193f55c3c5188bc0dcab22..990ea56baf0bebdc05195724e13ce3cc7d9b3b40 100644 (file)
@@ -27,6 +27,8 @@
 #include FT_GLYPH_H
 
 #include "ass_font.h"
+#include "ass_bitmap.h"
+#include "ass_cache.h"
 #include "ass_fontconfig.h"
 #include "mputils.h"
 
index 4fa31d0b0df65a815d827530c3821891033a6ea4..ed3c438d740d2cc4083373b9bcc089156e6dbd58 100644 (file)
 #include FT_STROKER_H
 #include FT_GLYPH_H
 
-#include "ass_bitmap.h"
-#include "ass_cache.h"
+typedef struct ass_font_desc_s {
+       char* family;
+       unsigned bold;
+       unsigned italic;
+} ass_font_desc_t;
+
+typedef struct ass_font_s {
+       ass_font_desc_t desc;
+       char* path;
+       int index;
+       FT_Face face;
+       FT_Matrix m; // current transformation
+       FT_Vector v; // current shift
+       int size;
+} ass_font_t;
 
 ass_font_t* ass_font_new(FT_Library ftlibrary, void* fc_priv, ass_font_desc_t* desc);
 void ass_font_set_transform(ass_font_t* font, FT_Matrix* m, FT_Vector* v);