summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache.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_cache.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_cache.h')
-rw-r--r--libass/ass_cache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libass/ass_cache.h b/libass/ass_cache.h
index 68449cf..cf2c400 100644
--- a/libass/ass_cache.h
+++ b/libass/ass_cache.h
@@ -42,8 +42,9 @@ typedef struct {
} CompositeHashValue;
typedef struct {
- FT_Glyph glyph;
- FT_Glyph outline_glyph;
+ FT_Library lib;
+ FT_Outline *outline;
+ FT_Outline *border;
FT_BBox bbox_scaled; // bbox after scaling, but before rotation
FT_Vector advance; // 26.6, advance distance to the next bitmap in line
int asc, desc; // ascender/descender of a drawing