diff --git a/src/OT/Color/COLR/COLR.hh b/src/OT/Color/COLR/COLR.hh index d227768d5..72d05cf54 100644 --- a/src/OT/Color/COLR/COLR.hh +++ b/src/OT/Color/COLR/COLR.hh @@ -101,9 +101,7 @@ public: if (!funcs->custom_palette_color (data, color_index, &color)) { unsigned int clen = 1; - hb_face_t *face = hb_font_get_face (font); - - hb_ot_color_palette_get_colors (face, palette_index, color_index, &clen, &color); + hb_ot_color_palette_get_colors (font->face, palette_index, color_index, &clen, &color); } *is_foreground = false;