summaryrefslogtreecommitdiffstats
path: root/libass/ass_font.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2011-08-20 17:46:03 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-07-10 10:42:40 +0200
commitf69ec6e0c038fe32cc5f91cc62cba52fe3934885 (patch)
tree9cc33785a996b0fe334db78941f218fef7991d77 /libass/ass_font.h
parentdef7a0c702ad1e1ecb03045acd785bd16e8a71f1 (diff)
downloadlibass-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_font.h')
-rw-r--r--libass/ass_font.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libass/ass_font.h b/libass/ass_font.h
index 693cabf..06519c6 100644
--- a/libass/ass_font.h
+++ b/libass/ass_font.h
@@ -26,6 +26,7 @@
typedef struct ass_font ASS_Font;
typedef struct ass_font_desc ASS_FontDesc;
+typedef struct ass_buffer ASS_Buffer;
#include "ass.h"
#include "ass_types.h"
@@ -58,6 +59,11 @@ struct ass_font {
double size;
};
+struct ass_buffer {
+ void *buf;
+ size_t len;
+};
+
void charmap_magic(ASS_Library *library, FT_Face face);
ASS_Font *ass_font_new(Cache *font_cache, ASS_Library *library,
FT_Library ftlibrary, ASS_FontSelector *fontsel,