diff options
-rw-r--r-- | pango/fonts.c | 2 | ||||
-rw-r--r-- | pango/pangocoretext.c | 2 | ||||
-rw-r--r-- | pango/pangofc-font.c | 2 | ||||
-rw-r--r-- | pango/pangowin32.c | 2 |
4 files changed, 2 insertions, 6 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; } diff --git a/pango/pangocoretext.c b/pango/pangocoretext.c index 70fd67d4..5faac64c 100644 --- a/pango/pangocoretext.c +++ b/pango/pangocoretext.c @@ -223,8 +223,6 @@ pango_core_text_font_create_hb_font (PangoFont *font) hb_font = hb_coretext_font_create (ctfont->priv->font_ref); hb_font_set_scale (hb_font, size, size); - hb_font_make_immutable (hb_font); - return hb_font; } diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c index 76afdf7e..22f6df0c 100644 --- a/pango/pangofc-font.c +++ b/pango/pangofc-font.c @@ -1029,7 +1029,5 @@ pango_fc_font_create_hb_font (PangoFont *font) } } - hb_font_make_immutable (hb_font); - return hb_font; } diff --git a/pango/pangowin32.c b/pango/pangowin32.c index 0e877820..32f050e2 100644 --- a/pango/pangowin32.c +++ b/pango/pangowin32.c @@ -1990,7 +1990,5 @@ pango_win32_font_create_hb_font (PangoFont *font) hb_font_set_scale (hb_font, win32font->size, win32font->size); hb_face_destroy (face); - hb_font_make_immutable (hb_font); - return hb_font; } |