mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
Move ass_font_t to header.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21282 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -31,14 +31,6 @@
|
||||
#include "ass_bitmap.h"
|
||||
#include "ass_cache.h"
|
||||
|
||||
|
||||
typedef struct ass_font_s {
|
||||
ass_font_desc_t desc;
|
||||
char* path;
|
||||
int index;
|
||||
FT_Face face;
|
||||
} ass_font_t;
|
||||
|
||||
#define MAX_FONT_CACHE_SIZE 100
|
||||
|
||||
static ass_font_t* font_cache;
|
||||
|
||||
@@ -33,6 +33,13 @@ typedef struct ass_font_desc_s {
|
||||
unsigned italic;
|
||||
} ass_font_desc_t;
|
||||
|
||||
typedef struct ass_font_s {
|
||||
ass_font_desc_t desc;
|
||||
char* path;
|
||||
int index;
|
||||
FT_Face face;
|
||||
} 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);
|
||||
void ass_font_cache_done(void);
|
||||
|
||||
Reference in New Issue
Block a user