summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-18 12:22:56 -0700
committerMatthias Clasen <mclasen@redhat.com>2019-07-18 12:47:53 -0700
commit6fbda2e1fe07b6ec326ec43bff8b2ab78583b29c (patch)
treefb2b4052e868c4cdd7a0867ad71c891da795cf4a /pango/pangofc-font.c
parent8901ef5b832091cae2a28cd4537574ee1ae012a3 (diff)
downloadpango-6fbda2e1fe07b6ec326ec43bff8b2ab78583b29c.tar.gz
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.
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r--pango/pangofc-font.c2
1 files changed, 2 insertions, 0 deletions
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;
}