summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache_template.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-07-11 13:00:08 +0200
committerGrigori Goronzy <greg@blackbox>2011-07-11 13:05:52 +0200
commitdb6ccb3634db5ccbce1a2fdaa383085242d52c82 (patch)
tree33cf84b60230d8a6f2188af87581580cad3d8102 /libass/ass_cache_template.h
parent778c5cebe439598bf3a6f0277ed7516928f0ff00 (diff)
downloadlibass-db6ccb3634db5ccbce1a2fdaa383085242d52c82.tar.bz2
libass-db6ccb3634db5ccbce1a2fdaa383085242d52c82.tar.xz
HarfBuzz shaping support
Split up text into runs with the same direction, font face and font size, shape these runs with HarfBuzz and reorder accordingly. This noticeably improves Arabic shaping and should make shaping for many other scripts work. HarfBuzz also does kerning for Latin text.
Diffstat (limited to 'libass/ass_cache_template.h')
-rw-r--r--libass/ass_cache_template.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_cache_template.h b/libass/ass_cache_template.h
index 2339e2b..d6f7d1f 100644
--- a/libass/ass_cache_template.h
+++ b/libass/ass_cache_template.h
@@ -87,7 +87,8 @@ END(ClipMaskHashKey)
START(glyph, glyph_hash_key)
GENERIC(ASS_Font *, font)
GENERIC(double, size) // font size
- GENERIC(uint32_t, ch) // character code
+ GENERIC(int, face_index)
+ GENERIC(int, glyph_index)
GENERIC(int, bold)
GENERIC(int, italic)
GENERIC(unsigned, scale_x) // 16.16