[pango/kill-ft-face: 16/18] fc: Make hb font immutable



commit f26f2b8f7435f7fcb1d147897c6bd137bfbdc014
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 18 12:22:56 2019 -0700

    fc: Make hb font immutable
    
    The frontend is caching this object, and we are giving
    it out to applications. We really can't allow them to
    modify it in any way.

 pango/pangofc-font.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 22f6df0c..76afdf7e 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -1029,5 +1029,7 @@ pango_fc_font_create_hb_font (PangoFont *font)
         }
     }
 
+  hb_font_make_immutable (hb_font);
+
   return hb_font;
 }


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