summaryrefslogtreecommitdiffstats
path: root/libass/ass_font.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2011-08-24 14:23:01 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-07-10 10:42:40 +0200
commite87063d873b88427ffad038fcfbbe7e7a0b7437d (patch)
tree3e85316d76dda496da80e9df3eb6a6f9a828c761 /libass/ass_font.h
parent4f2309430ae2f8086e2b46a45fd4f264a2e0a668 (diff)
downloadlibass-e87063d873b88427ffad038fcfbbe7e7a0b7437d.tar.bz2
libass-e87063d873b88427ffad038fcfbbe7e7a0b7437d.tar.xz
Use streamed access for memory fonts
This is faster in many cases, and more suitable for Windows' GetFontData function.
Diffstat (limited to 'libass/ass_font.h')
-rw-r--r--libass/ass_font.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libass/ass_font.h b/libass/ass_font.h
index 06519c6..fb6462b 100644
--- a/libass/ass_font.h
+++ b/libass/ass_font.h
@@ -26,7 +26,7 @@
typedef struct ass_font ASS_Font;
typedef struct ass_font_desc ASS_FontDesc;
-typedef struct ass_buffer ASS_Buffer;
+typedef struct ass_font_stream ASS_FontStream;
#include "ass.h"
#include "ass_types.h"
@@ -59,9 +59,9 @@ struct ass_font {
double size;
};
-struct ass_buffer {
- void *buf;
- size_t len;
+struct ass_font_stream {
+ GetDataFunc func;
+ void *priv;
};
void charmap_magic(ASS_Library *library, FT_Face face);