diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-18 16:22:35 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-18 16:23:19 -0700 |
commit | c80f0fcf71fd67c6b06039de37bc67e3ecace931 (patch) | |
tree | 461cc017dbd4a3b7392aa232ff117ed8728a7652 /pango/fonts.c | |
parent | fdd9e9e707e42131e7749d8674c59f57e0923a35 (diff) | |
download | pango-c80f0fcf71fd67c6b06039de37bc67e3ecace931.tar.gz |
Make hb fonts immutable in the frontend
It makes more sense to do this in the frontend
that hands the objects out, rather than in each
backend implementation.
Diffstat (limited to 'pango/fonts.c')
-rw-r--r-- | pango/fonts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index 4ba9d3fe..262ed15f 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -1879,6 +1879,8 @@ pango_font_get_hb_font (PangoFont *font) priv->hb_font = PANGO_FONT_GET_CLASS (font)->create_hb_font (font); + hb_font_make_immutable (priv->hb_font); + return priv->hb_font; } |