[pango/kill-ft-face: 5/15] fc: Make hb font immutable



commit 6fbda2e1fe07b6ec326ec43bff8b2ab78583b29c
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 7c4f64e9..43588889 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -1197,5 +1197,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]