[pango/missing-hex-boxes: 1/3] Make our font funcs immutable



commit 3aea855f9379735898791933ca021a7ec470dd19
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 1 08:48:25 2019 -0400

    Make our font funcs immutable
    
    While of no immediate consequence, it is the
    right thing to do.

 pango/pangofc-shape.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]