summaryrefslogtreecommitdiff
path: root/pango/pangofc-shape.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-01 08:48:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-01 08:48:25 -0400
commit3aea855f9379735898791933ca021a7ec470dd19 (patch)
tree5e3bd8c14e9bca6e00d6ca8843998ae808ff5ae9 /pango/pangofc-shape.c
parentf32f1bf71e58d72dae8a694fa8ba683a3be77da0 (diff)
downloadpango-3aea855f9379735898791933ca021a7ec470dd19.tar.gz
Make our font funcs immutable
While of no immediate consequence, it is the right thing to do.
Diffstat (limited to 'pango/pangofc-shape.c')
-rw-r--r--pango/pangofc-shape.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index a4fd9a32..2346492a 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -340,7 +340,9 @@ pango_font_get_hb_font_for_context (PangoFont *font,
hb_font_funcs_set_glyph_h_kerning_func (funcs, pango_hb_font_get_h_kerning, NULL, NULL);
hb_font_funcs_set_glyph_extents_func (funcs, pango_hb_font_get_glyph_extents, NULL, NULL);
hb_font_funcs_set_glyph_contour_point_func (funcs, pango_hb_font_get_glyph_contour_point, NULL, NULL);
- }
+
+ hb_font_funcs_make_immutable (funcs);
+ }
context->font = font;
context->parent = hb_font;