From a5e40542ab9508f0ba6f822f1262d93fccb71f45 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 17 Apr 2012 12:37:19 -0400 Subject: [PATCH] Make font immutable in hb_shape() --- src/hb-shape.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-shape.cc b/src/hb-shape.cc index 3d5f56c..d97028e 100644 --- a/src/hb-shape.cc +++ b/src/hb-shape.cc @@ -121,6 +121,8 @@ hb_shape_full (hb_font_t *font, unsigned int num_features, const char * const *shaper_list) { + hb_font_make_immutable (font); /* So we can safely cache stuff on it */ + if (likely (!shaper_list)) { for (unsigned int i = 0; i < ARRAY_LENGTH (shapers); i++) if (likely (shapers[i].func (font, buffer, features, num_features))) -- 2.7.4