From 4be4e017fc0685745e6e9d3d44c40d191f26ff5a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 25 Dec 2022 19:27:53 -0700 Subject: [PATCH] [cairo] Make font immutable --- src/hb-cairo.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-cairo.cc b/src/hb-cairo.cc index 3369b2091..fac32e769 100644 --- a/src/hb-cairo.cc +++ b/src/hb-cairo.cc @@ -372,7 +372,9 @@ hb_cairo_init_scaled_font (cairo_scaled_font_t *scaled_font, font = hb_font_create (face); // TODO Set variations - // TODO Set (what?) scale and slant + // TODO Set (what?) scale; Note, should NOT set slant. + + hb_font_make_immutable (font); } cairo_scaled_font_set_user_data (scaled_font,