summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-08-29 20:22:37 +0200
committerGrigori Goronzy <greg@blackbox>2011-08-29 20:22:37 +0200
commita7ed3543dd282aaa2df68f394b6426f3a00d2e4a (patch)
tree72b23b0e59f617c81700ae5eda067af9e966ac3b
parent9b709240fe943d15b5ce39bea2322cabb560c0da (diff)
downloadlibass-a7ed3543dd282aaa2df68f394b6426f3a00d2e4a.tar.bz2
libass-a7ed3543dd282aaa2df68f394b6426f3a00d2e4a.tar.xz
harfbuzz: adjust to hb_buffer_t API change
-rw-r--r--libass/ass_shaper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c
index 0a1075d..a10041c 100644
--- a/libass/ass_shaper.c
+++ b/libass/ass_shaper.c
@@ -432,9 +432,10 @@ static void shape_harfbuzz(ASS_Shaper *shaper, GlyphInfo *glyphs, size_t len)
i++;
runs[run].offset = k;
runs[run].end = i;
- runs[run].buf = hb_buffer_create(i - k + 1);
+ runs[run].buf = hb_buffer_create();
runs[run].font = get_hb_font(shaper, glyphs + k);
set_run_features(shaper, glyphs + k);
+ hb_buffer_pre_allocate(runs[run].buf, i - k + 1);
hb_buffer_set_direction(runs[run].buf, direction ? HB_DIRECTION_RTL :
HB_DIRECTION_LTR);
hb_buffer_set_language(runs[run].buf, shaper->language);