diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2011-08-20 17:46:03 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:42:40 +0200 |
commit | f69ec6e0c038fe32cc5f91cc62cba52fe3934885 (patch) | |
tree | 9cc33785a996b0fe334db78941f218fef7991d77 /libass/ass_fontselect.h | |
parent | def7a0c702ad1e1ecb03045acd785bd16e8a71f1 (diff) | |
download | libass-f69ec6e0c038fe32cc5f91cc62cba52fe3934885.tar.bz2 libass-f69ec6e0c038fe32cc5f91cc62cba52fe3934885.tar.xz |
Memory font support
Allow memory fonts with the get_face_data callback. This feature is
used for embedded fonts, but can be used by any font provider.
Diffstat (limited to 'libass/ass_fontselect.h')
-rw-r--r-- | libass/ass_fontselect.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libass/ass_fontselect.h b/libass/ass_fontselect.h index 8e41c45..ec4c793 100644 --- a/libass/ass_fontselect.h +++ b/libass/ass_fontselect.h @@ -33,7 +33,7 @@ typedef struct font_info ASS_FontInfo; #include "ass_font.h" // get face data -typedef void *(*GetFaceFunc)(void *); +typedef void *(*GetFaceFunc)(void *, size_t *); // check for a glyph typedef int (*CheckGlyphFunc)(void *, uint32_t); @@ -69,7 +69,8 @@ ass_fontselect_init(ASS_Library *library, FT_Library ftlibrary, const char *family, const char *path, const char *config, int fc); char *ass_font_select(ASS_FontSelector *priv, ASS_Library *library, - ASS_Font *font, int *index, int *uid, uint32_t code); + ASS_Font *font, int *index, int *uid, ASS_Buffer *data, + uint32_t code); void ass_fontselect_free(ASS_FontSelector *priv); // Font provider functions |