diff options
author | Grigori Goronzy <greg@blackbox> | 2011-07-11 13:00:08 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2011-07-11 13:05:52 +0200 |
commit | db6ccb3634db5ccbce1a2fdaa383085242d52c82 (patch) | |
tree | 33cf84b60230d8a6f2188af87581580cad3d8102 /libass/ass_cache_template.h | |
parent | 778c5cebe439598bf3a6f0277ed7516928f0ff00 (diff) | |
download | libass-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_cache_template.h b/libass/ass_cache_template.h index 2339e2bc..d6f7d1fc 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 |