summaryrefslogtreecommitdiffstats
path: root/libass/ass_types.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_types.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_types.h')
-rw-r--r--libass/ass_types.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libass/ass_types.h b/libass/ass_types.h
index 01e7306..f52e537 100644
--- a/libass/ass_types.h
+++ b/libass/ass_types.h
@@ -46,13 +46,13 @@ typedef struct font_provider ASS_FontProvider;
/* Font Provider */
-typedef void *(*GetFaceFunc)(void *, size_t *);
-typedef int (*CheckGlyphFunc)(void *, uint32_t);
-typedef void (*DestroyFontFunc)(void *);
-typedef void (*DestroyProviderFunc)(void *);
+typedef size_t (*GetDataFunc)(void *, unsigned char*, size_t, size_t);
+typedef int (*CheckGlyphFunc)(void *, uint32_t);
+typedef void (*DestroyFontFunc)(void *);
+typedef void (*DestroyProviderFunc)(void *);
typedef struct font_provider_funcs {
- GetFaceFunc get_face; // callback for memory fonts
+ GetDataFunc get_data; // callback for memory fonts
CheckGlyphFunc check_glyph; // test codepoint for coverage
DestroyFontFunc destroy_font; // destroy a single font
DestroyProviderFunc destroy_provider; // destroy provider only