diff options
author | Grigori Goronzy <greg@blackbox> | 2011-06-07 17:03:30 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2011-06-07 17:10:30 +0200 |
commit | 988166104ed0cc6c27edee8ca60fbd549369d13c (patch) | |
tree | 092745a7075f17b70331ccac082426560d8e09e9 /libass/ass_font.h | |
parent | 07ce715629e3b5b39e4a4def724d649222f53f2f (diff) | |
download | libass-988166104ed0cc6c27edee8ca60fbd549369d13c.tar.bz2 libass-988166104ed0cc6c27edee8ca60fbd549369d13c.tar.xz |
Much improved cache/hashmap implementation
- less code, cleaner
- decoupled from ASS_Library
- better data encapsulation
- simpler interface
- avoids a nasty hack
Diffstat (limited to 'libass/ass_font.h')
-rw-r--r-- | libass/ass_font.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libass/ass_font.h b/libass/ass_font.h index ab40548..a0d6660 100644 --- a/libass/ass_font.h +++ b/libass/ass_font.h @@ -48,8 +48,9 @@ typedef struct { double size; } ASS_Font; -// FIXME: passing the hashmap via a void pointer is very ugly. -ASS_Font *ass_font_new(void *font_cache, ASS_Library *library, +#include "ass_cache.h" + +ASS_Font *ass_font_new(Cache *font_cache, ASS_Library *library, FT_Library ftlibrary, void *fc_priv, ASS_FontDesc *desc); void ass_font_set_transform(ASS_Font *font, double scale_x, |