From e87063d873b88427ffad038fcfbbe7e7a0b7437d Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Wed, 24 Aug 2011 14:23:01 +0200 Subject: Use streamed access for memory fonts This is faster in many cases, and more suitable for Windows' GetFontData function. --- libass/ass_types.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libass/ass_types.h') 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 -- cgit v1.2.3