summaryrefslogtreecommitdiffstats
path: root/libass/ass_font.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-06-20 22:50:34 +0200
committerGrigori Goronzy <greg@blackbox>2011-06-20 22:50:34 +0200
commite5704aa76a2712782442156986f74b8766077ee1 (patch)
tree755509f7c315f4b542b6bd8b2c5e190206cdf355 /libass/ass_font.h
parent3a0055a7bd1d6378aece89db0d17cc0ac804a89b (diff)
downloadlibass-e5704aa76a2712782442156986f74b8766077ee1.tar.bz2
libass-e5704aa76a2712782442156986f74b8766077ee1.tar.xz
Convert outline processing and caching from glyphs to bare outlines
This introduces functions to use and copy pointered outline objects easily and uses these instead of glyphs everywhere. Previously the glyph cache was abused for caching vector clipping masks, but this isn't possible anymore (nor desirable), thus vector clipping cache has been disabled for the moment.
Diffstat (limited to 'libass/ass_font.h')
-rw-r--r--libass/ass_font.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libass/ass_font.h b/libass/ass_font.h
index 6f16821..af40ce2 100644
--- a/libass/ass_font.h
+++ b/libass/ass_font.h
@@ -22,6 +22,8 @@
#include <stdint.h>
#include <ft2build.h>
#include FT_GLYPH_H
+#include FT_OUTLINE_H
+
#include "ass.h"
#include "ass_types.h"
@@ -63,5 +65,7 @@ FT_Glyph ass_font_get_glyph(void *fontconfig_priv, ASS_Font *font,
FT_Vector ass_font_get_kerning(ASS_Font *font, uint32_t c1, uint32_t c2);
void ass_font_free(ASS_Font *font);
void fix_freetype_stroker(FT_Outline *outline, int border_x, int border_y);
+void outline_copy(FT_Library lib, FT_Outline *source, FT_Outline **dest);
+void outline_free(FT_Library lib, FT_Outline *outline);
#endif /* LIBASS_FONT_H */